annotate configure @ 594:fd49b88b9f06

[xemacs-hg @ 2001-05-31 12:47:21 by ben] goddamn fucking cvs
author ben
date Thu, 31 May 2001 12:47:28 +0000 (2001-05-31)
parents 5ce8d1ac7bde
children cdb192350f65
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1 #! /bin/sh
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3 #### Configuration script for XEmacs. Largely divergent from FSF.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4 #### Guess values for system-dependent variables and create Makefiles.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5 #### Generated automatically using autoconf version 2.13
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #### Copyright (C) 1995, 1996 Ben Wing.
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ### autoconf
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
18 ### in the this directory. You must have autoconf version 2.13 or later.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
37 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
38 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
39 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
42 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
46 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
48
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
49
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
50
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
51 if test -n "$ZSH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
57 elif test -n "$BASH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
58 set -o posix
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
59 unset CDPATH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
60 else
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
62 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
63
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
64 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
65 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
66 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
67 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
68 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
69 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
70 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
71 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
72 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
73 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
74 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
75 srcdir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
79 x_libraries=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
80
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
81 subdirs=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 MFLAGS= MAKEFLAGS=
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
83 SHELL=${CONFIG_SHELL-/bin/sh}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
84 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
91 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
93 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
94 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
95 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
98 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106 " 1>&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108 # Strip out --no-create and --no-recursion so they do not pile up.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
113 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 # Only set these to C if already set. These must not be set unconditionally
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
135 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
137 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 # configure is in, which we can look for to find out if srcdir is correct.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
141 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
143 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
144 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
145 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
152 srcdir=..
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
157 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
158 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
166 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
173 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
176 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
186 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
189 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
191 ac_exeext=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
192 ac_objext=o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
196 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
197 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
198 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
199 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
200 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
202 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
203 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
205
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
208
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
210 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
211
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 mandir='${prefix}/man/man1'
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
219 inststaticdir='${PROGNAME}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
220 instvardir='${PROGNAME}-${version}'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
221 infodir='${datadir}/${instvardir}/info'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
222 infopath=''
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
223 install_pp=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
224 lispdir='${datadir}/${instvardir}/lisp'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
228 pkgdir='${datadir}/${instvardir}/lisp'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
229 package_path=''
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
230 etcdir='${datadir}/${instvardir}/etc'
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
231 archlibdir='${datadir}/${instvardir}/${configuration}'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
232 docdir='${archlibdir}'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
233 with_netinstall="no"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
234 with_prefix='yes'
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
235 with_site_lisp='no'
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
236 with_site_modules='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 with_scrollbars=''
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
239 with_widgets=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 with_dialogs=''
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
241 cpp='' cppflags='' libs='' ldflags=''
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
242 extra_includes=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 with_x11=''
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
245 with_msw=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
247 with_system_malloc='default'
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
248 with_dlmalloc='default'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 native_sound_lib=''
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
250 with_gtk='no'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
251 with_gnome='no'
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
252 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
253 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
254 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
255 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
256 with_dnet=""
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
257 pdump="no"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
258 with_dragndrop="no"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
260
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
261
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
262
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
265 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
268 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
270 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
273 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
274 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
275 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
276 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
279 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
281 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
282 --no-create|--no-recursion) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
283 -* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
284 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
286 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
287 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
290 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
291 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
292 val="yes" valomitted=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
296 optname="$opt"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
297 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
298
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
299 case "${valomitted}-${opt}" in yes-without_* )
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
300 opt=`echo $opt | sed 's/without/with/'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
301 valomitted="no" val="no" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
302 esac
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
303
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
304 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
305
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
306 with_site_lisp | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
307 with_prefix | \
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
308 with_site_modules | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
309 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
310 with_x11 | \
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
311 with_gtk | \
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
312 with_gnome | \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
313 with_msw | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
314 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
315 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
316 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
317 with_dnet | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
318 with_socks | \
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
319 with_dragndrop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
320 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
321 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
322 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
323 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
324 with_xface | \
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
325 with_gif | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
326 with_jpeg | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
327 with_png | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
328 with_tiff | \
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
329 with_wmcommand | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
330 with_xmu | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
331 with_purify | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
332 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
333 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
334 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
335 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
336 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
337 with_mule | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
338 with_file_coding| \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
339 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
340 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
341 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
342 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
343 with_sparcworks | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
344 with_tooltalk | \
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
345 with_ldap | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
346 with_postgresql | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
347 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
348 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
349 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
350 with_dnet | \
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
351 with_infodock | \
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
352 with_netinstall | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
353 external_widget | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
354 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
355 extra_verbose | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
356 usage_tracking | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
357 use_union_type | \
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
358 pdump | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
359 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
360 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
361 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
362 with_clash_detection | \
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
363 with_modules | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
364 quick_build )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
365 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 y | ye | yes ) val=yes ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
367 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
368 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
369 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
370 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 esac
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
372 eval "$opt=\"$val\"" ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
373
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
374
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
375 srcdir | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
376 compiler | \
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
377 xemacs_compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
378 cflags | \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
379 cpp | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
380 cppflags | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
381 libs | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
382 ldflags | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
383 cache_file | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
384 native_sound_lib| \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
385 site_lisp | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
386 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
387 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
388 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
389 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
390 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
391 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
392 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
393 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
394 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
395 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
400 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
403 rel_alloc | \
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
404 with_dlmalloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
405 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
406 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
407 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
410 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
411 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
412 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
413 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 esac
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
417 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
420 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
421 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
422 with_database_dbm=no
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
423 with_database_gdbm=no
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
425 case "$x" in
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
426 no ) ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
428 d | db | dbm ) with_database_dbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
430 * ) (echo "$progname: Usage error:"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
431 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
432 must be either \`no' or a comma-separated list
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
435 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
436 done
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
437 if test "$with_database_dbm" = "yes" -a \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
438 "$with_database_gdbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
439 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
441 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
444 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
446 "with_sound" )
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
448 case "$x" in
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
449 n | no | non | none ) new_sdefault=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
450 a | al | all | both ) new_sdefault=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
451
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
452 native ) with_native_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
453 nonative ) with_native_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
454
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
455 nas ) with_nas_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
456 nonas ) with_nas_sound=no ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
457
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
458 esd ) with_esd_sound=yes ;;
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
459 noesd ) with_esd_sound=no ;;
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
460
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
461 * ) bogus_sound=yes ;;
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
462 esac
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
463 if test "$bogus_sound" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
466 (echo "$progname: Usage error:"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
467 echo " " "Valid types for the \`--$optname' option are:
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
468 $types.
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
469 The default is to autodetect all sound support."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
471 elif test -n "$new_sdefault" ; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
472 with_native_sound=$new_sdefault
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
473 with_nas_sound=$new_sdefault
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
474 with_esd_sound=$new_sdefault
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
475 new_sdefault= # reset this
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
476 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
477 sound_notfirst=true
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
478 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
481 "with_athena" )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
482 case "$val" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
483 xa | xaw ) val=xaw ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
484 3 | 3d | xaw3d ) val=3d ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
485 ne | nex | next | naxtaw) val=next ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
486 9 | 95 | xaw95 ) val=95 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
487 xp | xpm | xawxpm ) val=xpm ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
488 * ) (echo "$progname: Usage error:"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
489 echo " " "The \`--$optname' option must have one of these values:
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
492 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
493 eval "$opt=\"$val\""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
494 ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
495
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
496 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
497 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
498 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
499 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
500 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
501 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
502 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
503 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
504 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
507 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
510 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
511 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
512 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
513 flock ) val=flock ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
514 file | dot ) val=file ;;
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
515 locking ) val=locking ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
516 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
517 echo " " "The \`--$optname' option must have one of these values:
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
520 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
521 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
522 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
523
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
524 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
525
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
527 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
528 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
545
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
546 byte_code ) error_check_byte_code=yes ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
547 nobyte_code ) error_check_byte_code=no ;;
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
548
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
549 glyphs ) error_check_glyphs=yes ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
550 noglyphs ) error_check_glyphs=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
551
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
554 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
556 if test "$error_check_default" = yes ; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 else
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
561 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
562 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
563 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
565 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 error_check_malloc=$new_default
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
571 error_check_byte_code=$new_default
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
572 error_check_glyphs=$new_default
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
579
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
582 archlibdir | docdir | package_path )
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
583 if test "$valomitted" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
584 if test "$#" = 0; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
585 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
586 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
588 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
589 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
591 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
592
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
593 case "$opt" in
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
595 Defining EXEC_PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
596 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
597 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
598 #define EXEC_PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
599 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
600 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
601 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
603 Defining LISPDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
604 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
605 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
606 #define LISPDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
607 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
608 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
609 ;;
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
611 Defining SITELISPDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
612 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
613 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
614 #define SITELISPDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
615 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
616 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
617 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
619 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
620 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
621 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
622 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
623 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
624 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
625 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
627 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
628 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
629 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
630 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
631 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
632 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
633 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
635 Defining INFODIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
636 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
637 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
638 #define INFODIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
639 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
640 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
641 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
643 Defining INFOPATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
644 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
645 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
646 #define INFOPATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
647 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
648 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
649 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
651 Defining PACKAGE_PATH_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
652 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
653 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
654 #define PACKAGE_PATH_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
655 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
656 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
657 ;;
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
658 datadir )
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
659 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
660 Defining INFODIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
661 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
662 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
663 #define INFODIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
664 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
665 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
666
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
667 { test "$extra_verbose" = "yes" && cat << \EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
668 Defining LISPDIR_USER_DEFINED
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
669 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
670 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
671 #define LISPDIR_USER_DEFINED 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
672 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
673 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
674
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
675 { test "$extra_verbose" = "yes" && cat << \EOF
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
676 Defining MODULEDIR_USER_DEFINED
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
677 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
678 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
679 #define MODULEDIR_USER_DEFINED 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
680 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
681 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
682
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
683 { test "$extra_verbose" = "yes" && cat << \EOF
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
684 Defining ETCDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
685 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
686 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
687 #define ETCDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
688 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
689 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
690
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
691 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
692 Defining DOCDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
693 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
694 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
695 #define DOCDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
696 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
697 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
698
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
699 { test "$extra_verbose" = "yes" && cat << \EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
700 Defining ARCHLIBDIR_USER_DEFINED
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
701 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
702 cat >> confdefs.h <<\EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
703 #define ARCHLIBDIR_USER_DEFINED 1
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
704 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
705 }
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
706 ;;
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
708 Defining DOCDIR_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
709 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
710 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
711 #define DOCDIR_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
712 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
713 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
714 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
716 Defining ARCHLIBDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
717 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
718 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
719 #define ARCHLIBDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
720 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
721 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
722 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
723 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
726 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
727
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
729
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
730 "with_menubars" | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
731 "with_scrollbars" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
732 "with_dialogs" | \
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
733 "with_widgets" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
734 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 m | mo | mot | moti | motif ) val=motif ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 a | at | ath | athe | athen | athena ) val=athena ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
738 n | no | non | none ) val=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
739 y | ye | yes ) val=yes ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
740 g | gt | gtk ) val=gtk ;;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
741 m | ms | msw ) val=msw ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
742 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
743 echo " " "The \`--$optname' option must have one of these values:
585
5ce8d1ac7bde [xemacs-hg @ 2001-05-29 04:21:30 by martinb]
martinb
parents: 582
diff changeset
744 \`gtk', \`lucid', \`motif', \`athena', \`yes', or \`no'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
747 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
750 "use_minimal_tagbits" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
751 "use_indexed_lrecord_implementation" | \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
752 "run_in_place" | \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
753 "const_is_losing" | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
754 "with_gnu_make" )
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
756 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
757
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
758 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
759 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
765 *-*-*) configuration="$arg" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
766
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
767 *) (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
768 echo " " "Unrecognized argument: $arg"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
774
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
775 test -n "$cpp" && CPP="$cpp"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
776 test -n "$cppflags" && CPPFLAGS="$cppflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
777 test -n "$libs" && LIBS="$libs"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
778 test -n "$ldflags" && LDFLAGS="$ldflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
779
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
782 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
783
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
784 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
785
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
787 test "$with_system_malloc" = "default" && with_system_malloc=yes
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
788 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
789
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
790
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
791
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
792 if test "$with_cde $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
793 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
794 echo " " "--with-cde requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
796 elif test "$with_tooltalk" = "no" ; then with_cde=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
798 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
799
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
800
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
801 case "$srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
802
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
803 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
805 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
806 -f "$dir/lisp/version.el" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
807 srcdir="$dir"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
808 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
809 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
810 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
811 if test -z "$srcdir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
812 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
813 echo " " "Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
814 contain the XEmacs sources. If you do not want to build XEmacs in its
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
815 source tree, you should run \`$progname' in the directory in which
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
816 you wish to build XEmacs, using the \`--srcdir' option to say where the
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
817 sources may be found."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
819 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
822 * )
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
823 if test ! -f "$srcdir/src/lisp.h" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
824 ! -f "$srcdir/lisp/version.el" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
825 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
826 echo " " "The directory specified with the \`--srcdir' option,
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
828 either run the \`$progname' script at the top of the XEmacs source
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
835 if test -z "$configuration"; then
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
837 if test -z "$configuration"; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
838 (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
839 echo " " "XEmacs has not been ported to this host type.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
840 Try explicitly specifying the CONFIGURATION when rerunning configure."
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
842 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
843 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
844
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
846 echo "configure:847: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
847
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
852 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
853 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
854 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
855 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
856 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
858 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
859 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
860 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
861 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
863
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
864 for dir in lisp etc man info tests; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
865 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
866 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
867 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
871
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
872 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
874 then blddir="$PWD"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
875 else blddir="$absolute_pwd"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
877 blddir=`echo "$blddir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
879 fi
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
880 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
881
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
882
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
883 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
885 . ) srcdir="$blddir" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
888 srcdir=`echo "$srcdir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
890 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
893 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
894 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 echo " as a build directory right now; it has been configured in its own"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 echo " use GNU make. If you do not have GNU make, then you must"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
899 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
900 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
910 . "$srcdir/version.sh" || exit 1;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
912 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
913 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
914 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
916 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
917 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
918 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
919 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
920 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
921
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
922 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
924 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
925 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
926 #define EMACS_MINOR_VERSION $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
927 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
928 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
929
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
930 if test -n "$emacs_beta_version" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
931 if test "$beta" = "yes"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
932 version="${version}-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
933 { test "$extra_verbose" = "yes" && cat << EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
934 Defining EMACS_BETA_VERSION = $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
935 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
936 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
937 #define EMACS_BETA_VERSION $emacs_beta_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
938 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
939 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
940
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
941 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
942 version="${version}.${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
943 { test "$extra_verbose" = "yes" && cat << EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
945 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
946 cat >> confdefs.h <<EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
947 #define EMACS_PATCH_LEVEL $emacs_beta_version
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
948 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
949 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
950
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
951 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
952 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
953 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
954 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
955 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
956 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
957 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
958 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
959 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
960
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
961 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
962 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
963 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
964 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
965 #define EMACS_VERSION "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
966 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
967 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
968
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
969
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
970 if test "$with_infodock" = "yes"; then
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
971 if test ! -f ../../ID-INSTALL; then
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
972 echo "Cannot build InfoDock without InfoDock sources"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
973 with_infodock=no
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
974 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
975 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
976
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
977 if test "$with_infodock" = "yes"; then
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
978 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
980 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
981 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
983 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
984 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
985
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
986 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
988 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
989 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
991 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
992 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
993
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
994 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
996 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
997 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
998 #define INFODOCK_BUILD_VERSION $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
999 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1000 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1001
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1003 PROGNAME=infodock
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1005 else
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1006 PROGNAME=xemacs
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1007 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
1008
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1009 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1010 Defining EMACS_PROGNAME = "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1011 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1012 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1013 #define EMACS_PROGNAME "$PROGNAME"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1014 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1015 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1016
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1017
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1020 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1021 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1022 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1023 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1024 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1025 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1026
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1028 Defining ERROR_CHECK_TYPECHECK
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1029 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1030 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1031 #define ERROR_CHECK_TYPECHECK 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1032 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1033 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1034
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1036 Defining ERROR_CHECK_BUFPOS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1037 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1038 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1039 #define ERROR_CHECK_BUFPOS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1040 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1041 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1042
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1044 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1045 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1046 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1047 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1048 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1049 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1050
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1052 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1053 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1054 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1055 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1056 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1057 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1058
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1060 Defining ERROR_CHECK_BYTE_CODE
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1061 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1062 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1063 #define ERROR_CHECK_BYTE_CODE 1
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1064 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1065 }
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
1066
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1068 Defining ERROR_CHECK_GLYPHS
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1069 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1070 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1071 #define ERROR_CHECK_GLYPHS 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1072 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1073 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1074
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1075 if test "${debug:=$beta}" = "yes"; then
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1076 use_assertions=yes memory_usage_stats=yes
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1078 echo " xemacs will be linked with \"debug.o\""
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1079 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1081 echo " xemacs will be linked with \"tests.o\""
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1082 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1083 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1084 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1085 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1086 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1087 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1088 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1089 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1090
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1091 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1093 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1094 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1095 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1096 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1097 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1098 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1099
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1101 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1102 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1103 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1104 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1105 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1106 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1107
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1108
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1109
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1111 echo "configure:1112: checking "host system type"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1116 echo "$ac_t""$configuration" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1118
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1119
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1120
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1121
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1122 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1123
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1124 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1125 sparc-*-* ) machine=sparc ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1126 alpha*-*-* ) machine=alpha ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1127 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1128 mips-dec-* ) machine=pmax ;;
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1129 mips-sgi-irix6* ) machine=iris6d ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1130 mips-sgi-* ) machine=iris4d ;;
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
1131 mips*-linux ) machine=mips ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1132 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1135 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1136 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1137 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1138 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1139 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1140 clipper-* ) machine=clipper ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1141 arm* ) machine=arm ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1142 ns32k-* ) machine=ns32000 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1143 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1145 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1147 *-*-netbsd* ) opsys=netbsd ;;
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1148 *-*-openbsd* ) opsys=openbsd ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1149 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1150 *-*-vms ) opsys=vms ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1151
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1155 *-dec-osf3* ) opsys=decosf3-1 ;;
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1157
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1161
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1162 *-*-aix3.1* ) opsys=aix3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1164 *-*-aix3* ) opsys=aix3-2 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1165 *-*-aix4.0* ) opsys=aix4 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1166 *-*-aix4.1* ) opsys=aix4-1 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1167 *-*-aix4* ) opsys=aix4-2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1168
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1169 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1174 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1181 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1184 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1186 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1189 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1190
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1191 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1192
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1193 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1194 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1197 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1203 *-*-openbsd* )
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1204 case "${canonical}" in
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1205 i386-*-openbsd*) machine=intel386 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1206 m68k-*-openbsd*) machine=hp9000s300 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1207 mipsel-*-openbsd*) machine=pmax ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1208 esac
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1209 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1210
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1218
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1220
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1222
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1224
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1226
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1231
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1234 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1240
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1244 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1245
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1247 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1248 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1261 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1262 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1270
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1272
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1274
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1275 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1276 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1277 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1278 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1279 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1280
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1281 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1282 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1284 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1285 *-hp-hpux10* ) opsys=hpux10 ;;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1286 *-hp-hpux11* ) opsys=hpux11 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1287 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1289
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1291 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1292 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1293
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1303
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1310
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1313
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1315
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1317
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1319
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1321
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1323
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1325
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1327
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1329
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1331
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1332 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1333 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1334 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1335 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1337 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1339 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1340 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1348
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1351
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1353
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1355
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1357
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1362
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1363 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1364 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1367 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1369 mips-nec-sysv*)
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1370 machine=mips-nec
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1371 NON_GNU_CC=/usr/ccs/bin/cc
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1372 NON_GNU_CPP=/usr/ccs/lib/cpp
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1373 ;;
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1374
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1383 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1386 *-sony-news* ) opsys=newsos5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1389
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1391 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1392 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1394 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1396 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1399
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1400 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1404 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1407 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1408 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1410 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1411 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1412
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1413 case "$canonical" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1414 *-solaris* )
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1415 opsys=sol2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1417 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1418 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1419 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1420 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1421 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1422 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1423 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1424 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1425
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1427 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1432 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1433 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1435
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1437
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1440
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1442
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1449
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1452
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1454
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1456
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1457 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1458 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1461 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1462 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1463 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1464
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1465 ns16k-whitechapel-* ) machine=mg1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1466
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1468
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1469 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1471 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1474 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1478 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1479 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1486 *-bsdi4* ) opsys=bsdos4 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1487 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1489 *-bsdi2* ) opsys=bsdos2 ;;
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
1490 *-sco3.2v5* ) opsys=sco5 ;;
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
1491 *-sysv5* ) opsys=sco7 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1492 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1493 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1494 *-nextstep* ) opsys=nextstep ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1495 *-pc-cygwin* ) opsys=cygwin32 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1496 *-pc-mingw* ) opsys=mingw32 ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1497 test -z "$with_tty" && with_tty="no";;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1498 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1502
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1506
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1507 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1508
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1509 if test -r "${srcdir}/src/m/${machine}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1510 machfile="m/${machine}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1511 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1512 Defining config_machfile = "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1513 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1514 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1515 #define config_machfile "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1516 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1517 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1518
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1519 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1520 echo "XEmacs has no builtin knowledge of \`$machine' machines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1521 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1522 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1523
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1524 if test -r "${srcdir}/src/s/${opsys}.h"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1525 opsysfile="s/${opsys}.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1526 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1527 Defining config_opsysfile = "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1528 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1529 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1530 #define config_opsysfile "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1531 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1532 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1533
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1534 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1535 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1536 echo "Using configure-time autodetection only."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1537 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1538
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1540 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1541 case "$opsys" in
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
1542 hpux* | sunos4* ) dynamic=no ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1543 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1544 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1545 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1546 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1547 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1548 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1549 decosf* ) ld_call_shared="-call_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1550 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1551 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1552 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1553 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1554 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1555 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1556 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1557 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1559 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1561 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1562
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1563 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1564 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1565 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1566 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1567 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1568 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1569 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1570 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1571
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1572
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1574 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1575 if test "$with_workshop $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1576 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1577 echo " " "--with-workshop requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1578 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1579 elif test "$with_tooltalk" = "no" ; then with_workshop=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1580 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1581 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1582
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1583 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1584 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1585 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1586 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1587 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1588 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1589 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1590 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1591
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1592 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1593 echo " xemacs will be linked with \"sunpro.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1594 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1595 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1596
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1597 if test "$with_clash_detection" != "no"; then
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1598 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1599 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1600 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1601 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1602 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1603 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1604 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1605
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1606 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1607 echo " xemacs will be linked with \"filelock.o\""
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1608 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1609 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1610
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1611 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1612 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1613 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1614
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1615 test "${cflags-unset}" != unset && CFLAGS="$cflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1616 if test "${CFLAGS-unset}" != unset
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1617 then cflags_specified=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1618 else cflags_specified=no;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1619 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1620
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1621 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1622
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1623 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1624 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1626 echo "configure:1627: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1627
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1628 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1630 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1632 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1633 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1634 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1635 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1636 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1637 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1638 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1639 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1640 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1641 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1642 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1643 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1644 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1645 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1646 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1647 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1649 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1650 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1651 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1653 echo "configure:1654: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1654
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1655 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1657 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1659 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1660 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1661 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1662 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1663 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1665 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1666 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1667 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1668 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1669 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1670 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1671 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1672 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1673 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1674 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1675 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1676 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1677 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1678 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1679 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1680 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1681 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1682 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1683 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1684 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1685 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1686 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1687 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1689 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1690 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1691 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1693 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1694
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1695 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1696 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1697 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1698 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1699 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1701 echo "configure:1702: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1702
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1703 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1705 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1707 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1708 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1709 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1710 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1711 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1712 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1713 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1714 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1715 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1716 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1717 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1718 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1719 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1720 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1721 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1722 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1723 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1724 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1725 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1728
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1731
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1733 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1734 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1735 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1737 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1738 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1740
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1741 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1742
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1743 #line 1744 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1744 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1745
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1746 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1747 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1749 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1750 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1751 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1752 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1753 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1754 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1756 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1757 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1758 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1759 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1760 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1761 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1762 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1763 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1764 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1765 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1766 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1767 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1768 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1769 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1770
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1772 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1774 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1778 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1779
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1781 echo "configure:1782: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1782
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1783 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1784 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1785 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1786 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1787 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1789 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1790 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1791 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1792 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1793
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1796 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1797 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1798 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1799 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1800 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1801
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1802 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1803 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1804 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1806 echo "configure:1807: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1808 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1810 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1811 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1812 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1813 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1814 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1815
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1816
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1817 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1818 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1819 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1820 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1821 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1822 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1823 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1824 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1825 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1826 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1827 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1828 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1829 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1830 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1831 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1832 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1833
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1834 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1835 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1836 # Extract the first word of "gcc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1837 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1839 echo "configure:1840: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1840
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1841 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1843 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1845 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1846 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1847 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1848 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1849 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1850 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1851 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1852 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1853 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1854 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1855 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1856 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1857 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1858 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1859 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1860 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1861
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1862 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1863 # Extract the first word of "cc", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1864 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1866 echo "configure:1867: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1867
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1868 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1870 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1872 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1873 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1874 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1875 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1876 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1878 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1879 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1880 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1881 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1882 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1883 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1884 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1885 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1886 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1887 # We found a bogon in the path, so make sure we never use it.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1888 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1889 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1890 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1891 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1892 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1893 # first if we set CC to just the basename; use the full file name.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1894 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1895 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1896 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1897 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1898 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1899 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1900 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1901 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1902 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1903 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1904 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1905 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1906 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1907
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1908 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1909 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1910 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1911 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1912 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1914 echo "configure:1915: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1915
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1916 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1918 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1920 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1921 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1922 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1923 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1924 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1925 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1926 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1927 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1928 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1929 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1930 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1931 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1932 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1933 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1934 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1935 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1936 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1937 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1938 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1940 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1941
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1943 echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1944
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1945 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1946 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1947 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1948 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1949 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1950 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1951 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1952 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1953
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1954 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1955
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1956 #line 1957 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1957 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1958
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1959 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1960 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1962 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1963 # If we can't run a trivial program, we are probably using a cross compiler.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1964 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1965 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1966 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1967 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1968 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1969 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1970 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1971 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1972 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1973 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1974 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1975 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1976 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1977 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
1978 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1979 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1980 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1981 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
1982 cross_compiling=no
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1983
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1985 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1987 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1991 cross_compiling=$ac_cv_prog_cc_cross
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1992
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
1994 echo "configure:1995: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1995
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1996 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1997 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1998 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1999 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2000 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2001 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2002 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2003 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2004 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2005 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2006
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2007 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2008
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2009 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2010 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2011 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2012 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2013 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2014
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2015 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2016 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2017 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2018 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2019 echo "configure:2020: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2020
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2021 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2023 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2024 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2025 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2026 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2027 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2028
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2029
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2031 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2032 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2033 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2034 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2035 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2036 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2037 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2038 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2039 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2040 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2041 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2042 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2043 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2044 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2045 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2046
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2047 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2048 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2049 # Extract the first word of "gcc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2050 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2052 echo "configure:2053: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2053
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2054 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2056 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2058 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2059 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2060 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2061 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2062 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2063 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2064 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2065 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2066 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2067 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2068 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2069 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2070 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2071 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2072 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2073 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2074
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2075 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2076 # Extract the first word of "cc", so it can be a program name with args.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2077 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2079 echo "configure:2080: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2080
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2081 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2083 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2085 ac_prog_rejected=no
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2086 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2087 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2088 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2089 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2090 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2091 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2092 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2093 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2094 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2095 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2096 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2097 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2098 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2099 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2100 # We found a bogon in the path, so make sure we never use it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2101 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2102 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2103 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2104 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2105 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2106 # first if we set CC to just the basename; use the full file name.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2107 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2108 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2109 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2110 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2111 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2112 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2113 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2114 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2115 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2116 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2117 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2118 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2119 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2120
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2121 if test -z "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2122 case "`uname -s`" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2123 *win32* | *WIN32*)
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2124 # Extract the first word of "cl", so it can be a program name with args.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2125 set dummy cl; ac_word=$2
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2127 echo "configure:2128: checking for $ac_word" >&5
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2128
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2129 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2131 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2133 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2134 for ac_dir in $ac_dummy; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2135 test -z "$ac_dir" && ac_dir=.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2136 if test -f $ac_dir/$ac_word; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2137 ac_cv_prog_CC="cl"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2138 break
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2139 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2140 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2141 IFS="$ac_save_ifs"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2142 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2143 CC="$ac_cv_prog_CC"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2144 if test -n "$CC"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2145 echo "$ac_t""$CC" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2146 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2147 echo "$ac_t""no" 1>&6
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2148 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2149 ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2150 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2151 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2153 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2154
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2156 echo "configure:2157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2157
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2158 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2159 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2160 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2161 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2162 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2163 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2164 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2165 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2166
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2167 cat > conftest.$ac_ext << EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2168
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2169 #line 2170 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2170 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2171
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2172 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2173 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2175 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2176 # If we can't run a trivial program, we are probably using a cross compiler.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2177 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2178 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2179 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2180 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2181 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2182 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2183 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2184 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2185 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2186 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2187 rm -fr conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2188 ac_ext=c
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2189 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2190 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2191 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2192 ac_cpp='$CPP '"$xe_cppflags"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2193 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2194 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2195 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2198 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2199 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2200 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2204 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2205
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2206 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2207 echo "configure:2208: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2208
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2209 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2210 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2211 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2212 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2213 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2214 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2215 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2216 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2217 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2218 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2221
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2222 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2223 GCC=yes
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2224 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2225 GCC=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2226 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2227
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2228 ac_test_CFLAGS="${CFLAGS+set}"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2229 ac_save_CFLAGS="$CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2230 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2231 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2232 echo "configure:2233: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2233
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2234 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2236 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2237 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2238 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2239 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2240 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2241
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2244 if test "$ac_test_CFLAGS" = set; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2245 CFLAGS="$ac_save_CFLAGS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2246 elif test $ac_cv_prog_cc_g = yes; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2247 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2248 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2249 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2250 CFLAGS="-g"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2251 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2252 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2253 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2254 CFLAGS="-O2"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2255 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2256 CFLAGS=
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2257 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2258 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2259
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2260 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2261 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2262
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2263
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2264 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2265
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2266 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2267
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2269 echo "configure:2270: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2270 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2271 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2272 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2273 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2274 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2275
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2276 # This must be in double quotes, not single quotes, because CPP may get
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2277 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2278 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2279 # On the NeXT, cc -E runs the code through the compiler's parser,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2280 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2281 cat > conftest.$ac_ext <<EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2282 #line 2283 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2283 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2284 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2285 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2286 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2290 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2291 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2292 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2293 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2294 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2295 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2296 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2297 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2298 cat > conftest.$ac_ext <<EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2299 #line 2300 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2300 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2301 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2302 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2303 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2305 { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2307 if test -z "$ac_err"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2308 :
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2309 else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2310 echo "$ac_err" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2311 echo "configure: failed program was:" >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2312 cat conftest.$ac_ext >&5
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2313 rm -rf conftest*
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2314 CPP="${CC-cc} -nologo -E"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2315 cat > conftest.$ac_ext <<EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2316 #line 2317 "configure"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2317 #include "confdefs.h"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2318 #include <assert.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2319 Syntax Error
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2320 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2324 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2325 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2326 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2327 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2328 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2329 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2330 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2331 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2332 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2333 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2334 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2335 rm -f conftest*
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2336 fi
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
2337 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2338 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2339 CPP="$ac_cv_prog_CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2340 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2341 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2342 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2343 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2344
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2345
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2346
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2347 echo $ac_n "checking for AIX""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2348 echo "configure:2349: checking for AIX" >&5
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2349 cat > conftest.$ac_ext <<EOF
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2350 #line 2351 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2351 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2352 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2353 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2354 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2355
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2356 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2358 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2359 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2360 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2361 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2362 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2363 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2364 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2365 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2366 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2367
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2368 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2369 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2370 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2371 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2372 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2373
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2374
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2375
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
2376 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2377 echo "configure:2378: checking for GNU libc" >&5
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2378 cat > conftest.$ac_ext <<EOF
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2379 #line 2380 "configure"
406
b8cc9ab3f761 Import from CVS: tag r21-2-33
cvs
parents: 404
diff changeset
2380 #include "confdefs.h"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2381 #include <features.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2382 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2383
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2385 #error Not a GNU libc system :-(
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2386 ******* ======= ******** &&&&&&&&
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2387 #endif
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2388
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2389 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2390 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2392 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2393 have_glibc=yes
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2394 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2395 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2396 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2397 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2398 have_glibc=no
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2399 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2400 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2401 echo "$ac_t""$have_glibc" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2402 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2403 Defining _GNU_SOURCE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2404 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2405 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2406 #define _GNU_SOURCE 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2407 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2408 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2409
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2410
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2411 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2412 sol2)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2413 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2414 Defining __EXTENSIONS__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2415 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2416 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2417 #define __EXTENSIONS__ 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2418 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2419 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2420
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2421 if test "$os_release" -ge 55; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2422 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2423 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2424 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2425 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2426 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2427 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2428 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2429
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2430 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2431 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2432 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2433 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2434 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2435 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2436 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2437
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2438 fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2439 linux)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2440 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2441 Defining _POSIX_C_SOURCE = 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2442 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2443 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2444 #define _POSIX_C_SOURCE 199506L
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2445 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2446 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2447
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2448 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2449 Defining _XOPEN_SOURCE = 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2450 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2451 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2452 #define _XOPEN_SOURCE 500
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2453 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2454 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2455
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2456 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2457 Defining _XOPEN_SOURCE_EXTENDED
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2458 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2459 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2460 #define _XOPEN_SOURCE_EXTENDED 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2461 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2462 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2463
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2464 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2465 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2466
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2467 cat > conftest.$ac_ext <<EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2468 #line 2469 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2469 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2470 int main () {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2471 #if defined __SUNPRO_C
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2472 return 11;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2473 #elif defined __DECC
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2474 return 12;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2475 #elif defined __USLC__ && defined __SCO_VERSION__
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2476 return 13;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2477 #else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2478 return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2479 #endif
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2480 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2481 EOF
505
6495d35ba9df [xemacs-hg @ 2001-05-05 08:26:03 by martinb]
martinb
parents: 473
diff changeset
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2483 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2484 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2485 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2486 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2487 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2488 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2489 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2490 case "$conftest_rc" in
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2491 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2492 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2493 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2494 esac
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2495 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2496 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2497
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2498
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2499
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2500
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2501 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2502
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2503 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2504
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2505
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2506
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2507 cat > $tempcname < confdefs.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2508 cat >> $tempcname <<EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2509 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2510 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2511 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2512 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2513 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2514 #define LD_SWITCH_X_SITE_AUX
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2515 #define OS_RELEASE $os_release
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2516
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2517 #ifdef config_opsysfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2518 #include "$srcdir/src/$opsysfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2519 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2520
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2521 #ifdef config_machfile
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2522 #include "$srcdir/src/$machfile"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2523 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2524
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2525 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2526 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2527 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2528 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2529
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2530 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2531 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2532 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2533 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2534
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2535 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2536 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2537 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2538 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2539
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2540 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2541 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2542 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2543 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2544
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2545
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2546 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2547 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2548 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2549 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2550
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2551 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2552 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2553 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2554 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2555
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2556
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2557 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2558 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2559 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2560 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2561
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2562 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2563 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2564 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2565 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2566
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2567
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2568 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2569 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2570 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2571 configure___ ld_switch_machine=LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2572
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2573 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2574 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2575 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2576 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2577
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2578
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2579 #ifndef UNEXEC
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2580 #define UNEXEC
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2581 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2582 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2583
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2584
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2585 #ifndef SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2586 #define SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2587 #endif
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2588 configure___ system_type=SYSTEM_TYPE
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2589
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2590
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2591 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2592 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2593 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2594 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2595
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2596
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2597 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2598 configure___ ordinary_ld=ORDINARY_LD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2599
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2600 #ifdef ORDINARY_LINK
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2601 #define LD ORDINARY_LD
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2602 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2603 #ifdef COFF_ENCAPSULATE
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2604 #define LD "\$(CC) -nostdlib"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2605 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2606 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2607 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2608 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2609 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2610 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2611 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2612 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2613 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2614
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2615 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2616 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2617 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2618 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2619
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2620 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2621 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2622 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2623 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2624
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2625
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2626 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2627 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2628 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2629 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2630 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2631 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2632 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2633 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2634 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2635 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2636 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2637 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2638 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2639 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2640 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2641
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2642 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2643 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2644 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2645 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2646 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2647
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2648 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2649 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2650 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2651 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2652 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2653
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2654 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2655 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2656 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2657 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2658 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2659
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2660 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2661 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2662 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2663 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2664 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2665
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2666 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2667 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2668 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2669 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2670 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2671
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2672 #ifdef MAIL_USE_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2673 configure___ mail_use_locking=yes
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2674 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2675 configure___ mail_use_locking=no
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2676 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2677
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2678 #ifdef HAVE_WIN32_PROCESSES
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2679 configure___ win32_processes=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2680 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2681 configure___ win32_processes=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2682 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2683
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2684 EOF
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2685
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2686 CPP=`eval "echo $CPP $CPPFLAGS"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2687 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2688 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2689
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2690 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2691
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2692 test -z "$system_type" && \
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2693 { test "$extra_verbose" = "yes" && cat << EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2694 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2695 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2696 cat >> confdefs.h <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2697 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2698 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2699 }
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2700
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2701
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2702 test -z "$unexec" && pdump=yes
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2703
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2704 if test "$pdump" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2705 ordinary_link="yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2706 ld="${ordinary_ld}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2707 start_files=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2708 libs_standard=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2709 unexec=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2710 lib_gcc=
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2711 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2712
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2713 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2714 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 ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2715
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2716 case "$opsys" in mingw* | cygwin*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2717 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2718 cygwin_include=`eval "dirname $cygwin_include"` ;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2719 cygwin_include="-I$cygwin_include/../include" ;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
2720 extra_includes="$cygwin_include/mingw $cygwin_include" ;
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2721 case "$opsys" in mingw*)
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2722 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
2723 esac
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2724 ;;
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2725 esac
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
2726
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2727 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2728
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2729
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2730 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2731
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2732 if test "$__USLC__" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2733 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2734 echo "configure:2735: checking for whether the -Kalloca compiler flag is needed" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2735 need_kalloca=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2736 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2737 #line 2738 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2738 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2739
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2740 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2741 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2742 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2743 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2745 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2746 :
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2747 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2748 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2749 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2750 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2751
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2752 xe_save_c_switch_system="$c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2753 c_switch_system="$c_switch_system -Kalloca"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2754 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2755 #line 2756 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2756 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2757
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2758 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2759 void *x = alloca(4);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2760 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2761 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2763 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2764 need_kalloca=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2765 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2766 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2767 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2768 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2769 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2770 c_switch_system="$xe_save_c_switch_system"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2771 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2772 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2773 echo "$ac_t""$need_kalloca" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2774 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
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2775 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2776
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2777 if test "$cflags_specified" = "no"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2778 if test "$GCC" = "yes"; then
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
464
5aa1854ad537 Import from CVS: tag r21-2-47
cvs
parents: 462
diff changeset
2780 CFLAGS="$CFLAGS -Wsign-compare"
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
2781 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2782 elif test "$__SUNPRO_C" = "yes"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2783 case "$opsys" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2784 sol2 ) CFLAGS="-v -xO4" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2785 sunos4* ) CFLAGS="-xO2";;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2786 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2787 elif test "$__DECC" = "yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2788 CFLAGS="-O3"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2789 elif test "$CC" = "xlc"; then
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2790 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2791 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2792 CFLAGS="-O" ; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2793 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2794
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2795 if test "$GCC" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2796 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2797 echo "configure:2798: checking for buggy gcc versions" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2798 GCC_VERSION=`$CC --version`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2799 case `uname -s`:`uname -m`:$GCC_VERSION in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2800 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2801 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2802 *-O2*|*-O3*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2803 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2804 *-fno-schedule-insns*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2805 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2806 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2807 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2808 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2809 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2810 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2811 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2812 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2813 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2814 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2815 Linux:alpha:egcs-2.91.*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2816 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2817 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2818 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2819 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2820 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2821 *:i*86*:2.7.2*)
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2822 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2823 *-O2*|*-O3*)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2824 case "$GCC_VERSION" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2825 2.7.2)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2826 case "$CFLAGS" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2827 *-fno-strength-reduce*) ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2828 *)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2829 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2830 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2831 echo "configure: warning: -fno-strength-reduce." 1>&2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2832 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2833 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2834 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2835 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2836 esac
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2837 case "$CFLAGS" in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2838 *-fno-caller-saves*) ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2839 *)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2840 echo "$ac_t""yes" 1>&6
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2841 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2842 echo "configure: warning: -fno-caller-saves." 1>&2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2843 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2844 ;;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
2845 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2846 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2847 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2848 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2849 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2850 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2851 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2852
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2853
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2854 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2855 set x $ld_switch_system; shift; ld_switch_system=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2856 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2857 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2858 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2859 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2860 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2861 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2862 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2863 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2864 done
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2865 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2866
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2867 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2868 set x $ld_switch_machine; shift; ld_switch_machine=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2869 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2870 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2871 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2872 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2873 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2874 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2875 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2876 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2877 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2878 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2879
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2880 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2881 set x $LDFLAGS; shift; LDFLAGS=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2882 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2883 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2884 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2885 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2886 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2887 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2888 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2889 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2890 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2891 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2892
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2893 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2894 set x $ld_call_shared; shift; ld_call_shared=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2895 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2896 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2897 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2898 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2899 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2900 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2901 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2902 shift
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2903 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2904 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2905
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2906 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2907 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2908 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2909 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2910 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2911 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2912 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2913 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2914 fi
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2915 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2916 echo " xemacs will be linked with \"dumper.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
2917 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2918
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2919 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2920 echo "configure:2921: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2921 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2922 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2923 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2924 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2925 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2926 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2927 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2928 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2929 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2930 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2931 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2932
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2933 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2934 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2935 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2936 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2937 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2938 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2939 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2940 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
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2941 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2942
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2943
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
2944 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2945
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2946 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2947 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2948 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2949 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2950 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2951 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2952 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2953 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2954 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2955 done
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2956
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2957 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2958 echo "configure:2959: checking for terminateAndUnload in -lC" >&5
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2959 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2960
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2961 xe_check_libs=" -lC "
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2962 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2963 #line 2964 "configure"
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2964 #include "confdefs.h"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2965 /* Override any gcc2 internal prototype to avoid an error. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2966 /* We use char because int might match the return type of a gcc2
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2967 builtin and then its argument prototype would still apply. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2968 char terminateAndUnload();
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2969
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2970 int main() {
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2971 terminateAndUnload()
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2972 ; return 0; }
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2973 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2975 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2976 eval "ac_cv_lib_$ac_lib_var=yes"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2977 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2978 echo "configure: failed program was:" >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2979 cat conftest.$ac_ext >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2980 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2981 eval "ac_cv_lib_$ac_lib_var=no"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2982 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2983 rm -f conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2984 xe_check_libs=""
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2985
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2987 echo "$ac_t""yes" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2988 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2989 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2990 echo "$ac_t""no" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2991 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2992
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2993
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2994 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2995 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2996 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2997 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2998
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2999
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
3000
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3001
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3002 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3003 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
3004 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3005 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3006 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3007
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3008
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3009
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3010
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
3011
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3012 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3013 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3014 for arg in $site_libraries; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3015 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3016 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3017 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3018 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3019 arg="-L${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3020 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3021 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3022 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3023 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3024
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3025 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3026 if test -n "$site_includes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3027 for arg in $site_includes; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3028 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3029 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3030 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3031 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3032 arg="-I${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3033 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3034 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3035 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3036 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3037
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3038 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3039 if test -n "$site_prefixes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3040 for dir in $site_prefixes; do
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3041 lib_dir="${dir}/lib"
416
ebe98a74bd68 Import from CVS: tag r21-2-16
cvs
parents: 414
diff changeset
3042 inc_dir="${dir}/include"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3043 if test ! -d "$dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3044 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3045 elif test ! -d "$lib_dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
3046 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3047 else
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3048 if test -d "$inc_dir"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3049 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
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
3050 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3051 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
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3052 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3053 done
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3054 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3055
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
3056
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3057 for dir in "/usr/ccs/lib"; do
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3058 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
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3059 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3060
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3061 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3062 if test -n "$site_runtime_libraries"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3063 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3064 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3065 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3066
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3067
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3068
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3069
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3070
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3071 if test -n "$add_runtime_path"; then :;
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
3072 elif test "$dynamic" = "no"; then add_runtime_path=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3073 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3074 else case "$opsys" in
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3075 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3076 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3077 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3078 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3079
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3080 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3081 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3082 echo "configure:3083: checking "for runtime libraries flag"" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3083 case "$opsys" in
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
3084 sol2 ) dash_r="-R" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3085 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3086 *)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3087 dash_r=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3088 for try_dash_r in "-R" "-R " "-rpath "; do
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3089 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3090
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3091 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3092 set x $xe_check_libs; shift; xe_check_libs=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3093 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3094 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3095 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3096 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3097 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3098 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3099 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3100 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3101 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3102 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3103 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3104 #line 3105 "configure"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3105 #include "confdefs.h"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3106
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3107 int main() {
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3108
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3109 ; return 0; }
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3110 EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3112 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3113 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3114 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3115 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3116 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3117 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3118 rm -f conftest*
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3119 xe_check_libs=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3120 test -n "$dash_r" && break
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3121 done ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3122 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3123 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3124 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3125 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3126 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3127 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3128
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3129 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3130 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3131 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3132 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3133 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3134 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3135 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3136 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3137 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3138
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3139
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3140
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3141
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3142 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3143 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
3144 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3145
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3146 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3147 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3148 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3149 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3150 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3151 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3152 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3153 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3154 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3155 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3156 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3157 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3158 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3159 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3160 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3161 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3162 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3163 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3164 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3165 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3166 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3167 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3168 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3169 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3170 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3171 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3172 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3173 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3174 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3175 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3176 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3177 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3178 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3179 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3180 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3181 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3182 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3183 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3184 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3185
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3186 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3187 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3188 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3189 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3190 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3191 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3192 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3193 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3194 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3195 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3196 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3197 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3198 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3199 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3200 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3201
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3202
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3203
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3204 GNU_MALLOC=yes
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3205 if test "$with_dlmalloc" != "no"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3206 doug_lea_malloc=yes
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3207 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3208 doug_lea_malloc=no
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3209 fi
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3210 after_morecore_hook_exists=yes
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3211 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3212 echo "configure:3213: checking for malloc_set_state" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3213
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3214 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3215 #line 3216 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3216 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3217 /* System header to define __stub macros and hopefully few prototypes,
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3218 which can conflict with char malloc_set_state(); below. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3219 #include <assert.h>
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3220 /* Override any gcc2 internal prototype to avoid an error. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3221 /* We use char because int might match the return type of a gcc2
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3222 builtin and then its argument prototype would still apply. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3223 char malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3224
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3225 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3226
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3227 /* The GNU C library defines this for functions which it implements
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3228 to always fail with ENOSYS. Some functions are actually named
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3229 something starting with __ and the normal name is an alias. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3230 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3231 choke me
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3232 #else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3233 malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3234 #endif
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3235
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3236 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3237 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3239 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3240 eval "ac_cv_func_malloc_set_state=yes"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3241 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3242 echo "configure: failed program was:" >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3243 cat conftest.$ac_ext >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3244 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3245 eval "ac_cv_func_malloc_set_state=no"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3246 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3247 rm -f conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3248
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3249 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3250 echo "$ac_t""yes" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3251 :
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3252 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3253 echo "$ac_t""no" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3254 doug_lea_malloc=no
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3255 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3256
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3257 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3258 echo "configure:3259: checking whether __after_morecore_hook exists" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3259 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3260 #line 3261 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3261 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3262 extern void (* __after_morecore_hook)();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3263 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3264 __after_morecore_hook = 0
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3265 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3266 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3268 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3269 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3270 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3271 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3272 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3273 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3274 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3275 after_morecore_hook_exists=no
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3276 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3277 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3278 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3279 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3280 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3281 - The GNU allocators don't work with this system configuration."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3282 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3283 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3284 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3285 - User chose not to use GNU allocators."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3286 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3287 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3288 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3289 - User chose to use Debugging Malloc."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3290 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3291
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3292 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3293 GNU_MALLOC_reason="
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3294 - Using Doug Lea's new malloc from the GNU C Library."
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3295 { test "$extra_verbose" = "yes" && cat << \EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3296 Defining DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3297 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3298 cat >> confdefs.h <<\EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3299 #define DOUG_LEA_MALLOC 1
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3300 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3301 }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3302
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3303 if test "$after_morecore_hook_exists" = "no" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3304 GNU_MALLOC_reason="
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
3305 - Using Doug Lea's new malloc from the Linux C Library."
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3306 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3307 Defining _NO_MALLOC_WARNING_
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3308 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3309 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3310 #define _NO_MALLOC_WARNING_ 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3311 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3312 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3313
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3314 fi
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3315 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3316
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3317
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3318
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3319
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3320 # Extract the first word of "ranlib", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3321 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3323 echo "configure:3324: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3324
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3325 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3327 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3329 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3330 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3333 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3335 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3336 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3337 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3338 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3339 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3340 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3341 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3342 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3343 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3344 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3345 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3347 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3349 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3350 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3351 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3352 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3353 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3354 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3355 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3356 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3357 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3358 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3359 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3360 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3361 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3362 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3363 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3364 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3365
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3366 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3367 # so one script is as good as another. But avoid the broken or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3368 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3369 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3370 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3371 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3372 # AIX /bin/install
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3376 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3378 echo "configure:3379: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3379 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3380
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3381 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3382 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3383 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3384 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3385 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3386 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3387 # OSF1 and SCO ODT 3.0 have their own names for install.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3388 # Don't use installbsd from OSF since it installs stuff as root
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3389 # by default.
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3390 for ac_prog in ginstall scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3391 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3392 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3393 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3394 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3395 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3396 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3397 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3398 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3399 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3400 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3401 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3402 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3403 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3404 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3405 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3406
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3407 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3408 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3409 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3410 # As a last resort, use the slow shell script. We don't cache a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3411 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3412 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3413 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3414 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3415 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3416 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3417 echo "$ac_t""$INSTALL" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3418
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3420 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3422
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3424
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3426
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3427 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3428 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3430 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3432 echo "configure:3433: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3433
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3434 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3435 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3436 else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3438 ac_dummy="$PATH"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3439 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3440 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3441 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3442 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3443 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3444 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3445 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3446 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3447 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3448 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3449 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3450 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3451 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3452 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3453 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3454
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3455 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3460 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
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3461 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3464 echo "configure:3465: checking for $ac_hdr" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3465
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3466 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3467 #line 3468 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3468 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3469 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3470 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3472 { (eval echo configure:3473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3474 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3475 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3476 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3477 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3478 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3479 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3480 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3481 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3482 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3483 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3484 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3486 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3488 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3489 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3490 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3491 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3492 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3493 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3494 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3495
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3496 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3497 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3498 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3499 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3500
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3501 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3502 echo "configure:3503: checking for sys/wait.h that is POSIX.1 compatible" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3503
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3504 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3505 #line 3506 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3506 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3507 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3508 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3509 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3510 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3511 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3512 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3513 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3514 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3515 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3516 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3517 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3519 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3520 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3522 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3523 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3524 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3525 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3526 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3527 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3528 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3529 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3530 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3531
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3532 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3533 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3534 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3535 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3536 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3537 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3538 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3539 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3540 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3541
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3542 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3543
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3544 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3545 echo "configure:3546: checking for ANSI C header files" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3546
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3547 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3548 #line 3549 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3549 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3550 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3551 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3552 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3553 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3554 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3556 { (eval echo configure:3557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3558 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3559 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3560 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3561 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3562 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3563 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3564 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3565 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3566 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3567 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3568 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3569
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3570 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3572 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3573 #line 3574 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3574 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3575 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3576 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3578 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3579 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3580 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3581 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3582 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3583 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3584 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3585
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3586 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3587
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3588 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3590 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3591 #line 3592 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3592 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3593 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3594 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3596 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3597 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3598 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3599 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3600 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3601 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3602 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3603
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3604 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3605
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3606 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3608 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3609 #line 3610 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3610 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3611 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3612 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3613 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3615 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3616 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3617 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3618
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3619 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3621 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3622 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3623 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3624 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3625 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3626 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3627 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3628 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3629 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3630 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3631 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3632
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3633 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3634 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3635 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3636 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3637 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3638 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3639 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3640 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3641 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3642
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3643 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3644
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3645 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3646 echo "configure:3647: checking whether time.h and sys/time.h may both be included" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3647
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3648 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3649 #line 3650 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3650 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3651 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3652 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3653 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3654 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3655 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3656 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3657 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3659 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3660 ac_cv_header_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3661 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3662 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3663 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3664 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3665 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3666 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3667 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3668
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3669 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3670 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3671 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3672 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3673 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3674 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3675 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3676 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3677 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3678
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3679 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3680
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3681 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3682 echo "configure:3683: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3683
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3684 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3685 #line 3686 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3688 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3689 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3690 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3691 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3692 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3693 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3694 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3695 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3696 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3698 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3699 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3700 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3701 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3702 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3703 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3704 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3705 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3706 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3707
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3708 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3710 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3711 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3712 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3713 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3714 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3715 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3716 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3717
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3718 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3720
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3721
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3722 echo $ac_n "checking for utime""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3723 echo "configure:3724: checking for utime" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3724 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3725 #line 3726 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3726 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3727 #include <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3728 #include <utime.h>
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3729 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3730 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3731 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3732 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3734 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3735 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3736 { test "$extra_verbose" = "yes" && cat << \EOF
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3737 Defining HAVE_UTIME
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3738 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3739 cat >> confdefs.h <<\EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3740 #define HAVE_UTIME 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3741 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3742 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3743
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3744 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3745 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3746 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3747 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3748 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3749 for ac_func in utimes
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3750 do
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3752 echo "configure:3753: checking for $ac_func" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3753
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3754 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3755 #line 3756 "configure"
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3756 #include "confdefs.h"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3757 /* System header to define __stub macros and hopefully few prototypes,
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3758 which can conflict with char $ac_func(); below. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3759 #include <assert.h>
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3760 /* Override any gcc2 internal prototype to avoid an error. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3761 /* We use char because int might match the return type of a gcc2
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3762 builtin and then its argument prototype would still apply. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3763 char $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3764
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3765 int main() {
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3766
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3767 /* The GNU C library defines this for functions which it implements
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3768 to always fail with ENOSYS. Some functions are actually named
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3769 something starting with __ and the normal name is an alias. */
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3771 choke me
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3772 #else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3773 $ac_func();
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3774 #endif
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3775
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3776 ; return 0; }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3777 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3779 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3780 eval "ac_cv_func_$ac_func=yes"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3781 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3782 echo "configure: failed program was:" >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3783 cat conftest.$ac_ext >&5
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3784 rm -rf conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3785 eval "ac_cv_func_$ac_func=no"
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3786 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3787 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3788
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3790 echo "$ac_t""yes" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3792 { test "$extra_verbose" = "yes" && cat << EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3793 Defining $ac_tr_func
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3794 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3795 cat >> confdefs.h <<EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3796 #define $ac_tr_func 1
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3797 EOF
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3798 }
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3799
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3800 else
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3801 echo "$ac_t""no" 1>&6
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3802 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3803 done
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3804
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3805 fi
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3806 rm -f conftest*
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
3807
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3808
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3809 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3810 echo "configure:3811: checking return type of signal handlers" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3811
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3812 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3813 #line 3814 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3814 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3815 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3816 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3817 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3818 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3819 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3820 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3821 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3822 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3823 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3824 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3825
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3826 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3827 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3828 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3829 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3831 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3832 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3833 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3834 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3835 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3836 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3837 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3838 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3839 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3840
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3841 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3842 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3843 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3844 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3845 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3846 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3847 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3848 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3850
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3851 echo $ac_n "checking for size_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3852 echo "configure:3853: checking for size_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3853
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3854 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3855 #line 3856 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3856 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3857 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3858 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3859 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3860 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3861 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3862 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3864 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3865 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3866 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3867 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3868 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3869 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3870 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3871 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3872
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3873 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3874 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3875 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3876 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3877 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3878 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3879 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3880 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3881 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3882
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3883 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3884
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3885 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3886 echo "configure:3887: checking for pid_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3887
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3888 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3889 #line 3890 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3890 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3891 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3892 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3893 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3894 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3895 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3896 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3898 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3899 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3900 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3901 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3902 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3903 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3904 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3905 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3906
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3907 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3908 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3909 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3910 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3911 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3912 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3913 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3914 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3915 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3916
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3917 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3918
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3919 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3920 echo "configure:3921: checking for uid_t in sys/types.h" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3921
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3922 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3923 #line 3924 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3924 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3925 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3926 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3928 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3929 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3930 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3931 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3932 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3933 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3934 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3935 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3936
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3937
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3938 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3939 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3940 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3941 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3942 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3943 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3944 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3945 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3946 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3947
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3948 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3949 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3950 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3951 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3952 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3953 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3954 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3955
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3956 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3957
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3958 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3959 echo "configure:3960: checking for mode_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3960
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3961 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3962 #line 3963 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3963 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3964 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3965 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3966 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3967 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3968 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3969 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
3971 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3972 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3973 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3974 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3975 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3976 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3977 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3978 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3979
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3980 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3981 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3982 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3983 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3984 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3985 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3986 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3987 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3988 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3989
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3990 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3991
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3992 echo $ac_n "checking for off_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3993 echo "configure:3994: checking for off_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3994
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3995 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
3996 #line 3997 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3997 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3998 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3999 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4000 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4001 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4002 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4003 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
4005 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4006 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4007 ac_cv_type_off_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4008 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4009 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4010 ac_cv_type_off_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4011 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4012 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4013
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4014 echo "$ac_t""$ac_cv_type_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4015 if test $ac_cv_type_off_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4016 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4017 Defining off_t = long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4018 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4019 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4020 #define off_t long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4021 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4022 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4023
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4024 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4025
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4026 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4027 echo "configure:4028: checking for ssize_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4028
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4029 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4030 #line 4031 "configure"
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4031 #include "confdefs.h"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4032 #include <sys/types.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4033 #if STDC_HEADERS
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4034 #include <stdlib.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4035 #include <stddef.h>
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4036 #endif
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4037 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4039 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4040 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4041 ac_cv_type_ssize_t=yes
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4042 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4043 rm -rf conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4044 ac_cv_type_ssize_t=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4045 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4046 rm -f conftest*
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4047
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4048 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4049 if test $ac_cv_type_ssize_t = no; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4050 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4051 Defining ssize_t = int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4052 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4053 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4054 #define ssize_t int
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4055 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4056 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4057
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4058 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
4059
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
4060
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4061 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4062 echo "configure:4063: checking for socklen_t" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4063 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4064 #line 4065 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4065 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4066 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4067 socklen_t x;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4068
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4069 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4070
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4071 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4072 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4074 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4075 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4076 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4077 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4078 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4079 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4080
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4081 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4082 #line 4083 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4083 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4084 #include <sys/socket.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4085 int accept (int, struct sockaddr *, size_t *);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4086
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4087 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4088
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4089 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4090 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4091 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4092 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4093
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4094 echo "$ac_t""size_t" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4095 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4096 Defining socklen_t = size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4097 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4098 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4099 #define socklen_t size_t
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4100 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4101 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4102
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4103 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4104 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4105 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4106 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4107
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4108 echo "$ac_t""int" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4109 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4110 Defining socklen_t = int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4111 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4112 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4113 #define socklen_t int
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4114 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4115 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4116
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4117 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4118 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4119 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4120 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4121
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4123 echo "configure:4124: checking for struct timeval" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4124 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4125 #line 4126 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4126 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4127 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4128 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4129 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4130 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4131 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4132 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4133 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4134 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4135 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4136 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4137 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4138 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4139 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4140 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4141 if { (eval echo configure:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4142 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4143 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4144 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4145 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4146 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4147 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4148 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4149 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4150 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4151 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4152
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4153 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4154 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4155 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4156 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4157 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4158 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4159 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4160 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4161
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4163 echo "configure:4164: checking whether struct tm is in sys/time.h or time.h" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4164
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4165 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4166 #line 4167 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4167 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4168 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4169 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4170 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4171 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4172 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4173 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4175 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4176 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4177 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4178 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4179 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4180 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4181 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4182 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4183 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4185 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4186 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4187 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4188 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4189 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4190 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4191 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4192 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4193 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4195 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4198 echo "configure:4199: checking for tm_zone in struct tm" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4199
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4200 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4201 #line 4202 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4202 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4203 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4204 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4205 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4206 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4207 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4208 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4209 if { (eval echo configure:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4210 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4211 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4212 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4213 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4214 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4215 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4216 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4217 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4218 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4220 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4221 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4222 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4223 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4224 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4225 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4226 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4227 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4228 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4229
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4230 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4232 echo "configure:4233: checking for tzname" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4233
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4234 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4235 #line 4236 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4236 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4237 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4238 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4240 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4241 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4242 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4243 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4244 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4246 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4247 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4248 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4249 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4250 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4251 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4252 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4253 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4254 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4256 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4257 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4258 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4259 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4260 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4261 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4262 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4263 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4264 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4265
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4266 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4267 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4270 echo $ac_n "checking for working const""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4271 echo "configure:4272: checking for working const" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4272
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4273 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4274 #line 4275 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4275 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4276
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4277 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4279 /* Ultrix mips cc rejects this. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4280 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4281 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4282 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4283 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4284 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4285 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4286 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4287 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4288 It does not let you subtract one const X* pointer from another in an arm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4289 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4290 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4291 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4292 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4293 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4294 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4295 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4296 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4297 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4298 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4300 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4301 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4303 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4304 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4305 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4306 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4308 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4309 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4310 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4311 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4312 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4314 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4315 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4316 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4318 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4319 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4320
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4321 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4322 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4324 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4325 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4326 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4327 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4328 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4329 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4330 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4331 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4332 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4333
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4334 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4335 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4336 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4337 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4339 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4340 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4341 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4342 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4343
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4345
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4348 echo "configure:4349: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4350
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4351 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4352 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4353 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4354 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4356 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4357 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4358 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4359 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4360 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4361 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4362 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4363 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4364 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4365 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4366 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4367 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4368 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4369 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4370
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4371
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4373 echo "configure:4374: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4374
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4375 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4376 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4377 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4378 #line 4379 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4379 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4380 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4381 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4382 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4383
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4385 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4386 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4387 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4388 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4390 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4391 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4392 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4393 #line 4394 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4394 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4395 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4396 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4397 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4399 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4400 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4401 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4402 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4403 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4404 if { (eval echo configure:4405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4405 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4406 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4407 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4408 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4409 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4410 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4411 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4412 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4413 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4414 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4415 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4416 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4417 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4418 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4419 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4420 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4421 #line 4422 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4422 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4423 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4424 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4425 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4426 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4427 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4428 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4429 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4430 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4431 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4432 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4433 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4435 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4436 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4437 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4438 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4439 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4440 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4441 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4442 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4443 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4444 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4445 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4446
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4447 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4448 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4449 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4450 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4451 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4454 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4456
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4457 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4458
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4459
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4460 echo $ac_n "checking size of short""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4461 echo "configure:4462: checking size of short" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4462
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4463 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4464 #line 4465 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4465 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4466 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4467 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4468 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4469 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4470 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4471 fprintf(f, "%d\n", sizeof(short));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4472 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4473 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4474 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4476 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4477 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4478 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4479 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4480 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4481 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4482 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4483 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4484 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4485 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4486 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4487 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4488 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4489 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4490 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4491 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4492 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4493 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4494
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4495
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4496 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4497 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4498 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4499 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4500 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4501 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4502 echo $ac_n "checking size of int""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4503 echo "configure:4504: checking size of int" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4504
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4505 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4506 #line 4507 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4507 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4508 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4509 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4510 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4511 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4512 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4513 fprintf(f, "%d\n", sizeof(int));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4514 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4515 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4516 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4518 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4519 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4520 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4521 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4522 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4523 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4524 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4525 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4526 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4527 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4528 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4529 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4530 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4531 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4532 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4533 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4534 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4535 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4536
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4537
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4538 echo $ac_n "checking size of long""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4539 echo "configure:4540: checking size of long" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4540
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4541 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4542 #line 4543 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4543 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4544 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4545 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4546 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4547 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4548 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4549 fprintf(f, "%d\n", sizeof(long));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4550 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4551 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4552 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4554 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4555 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4556 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4557 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4558 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4559 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4560 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4561 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4562 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4563 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4564 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4565 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4566 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4567 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4568 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4569 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4570 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4571 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4572
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4573
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4574 echo $ac_n "checking size of long long""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4575 echo "configure:4576: checking size of long long" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4576
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4577 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4578 #line 4579 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4579 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4580 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4581 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4582 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4583 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4584 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4585 fprintf(f, "%d\n", sizeof(long long));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4586 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4587 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4588 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4590 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4591 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4592 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4593 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4594 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4595 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4596 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4597 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4598 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4599 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4600 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4601 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4602 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4603 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4604 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4605 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4606 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4607 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4608
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4609
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4610 echo $ac_n "checking size of void *""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4611 echo "configure:4612: checking size of void *" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4612
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4613 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4614 #line 4615 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4615 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4616 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4617 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4618 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4619 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4620 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4621 fprintf(f, "%d\n", sizeof(void *));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4622 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4623 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4624 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4626 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4627 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4628 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4629 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4630 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4631 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4632 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4633 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4634 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4635 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4636 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4637 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4638 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4639 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4640 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4641 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4642 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4643 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4644
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4645
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4646
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4647 echo $ac_n "checking for long file names""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4648 echo "configure:4649: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4649
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4650 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4651 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4652 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4653 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4654 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4655 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4656 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4657 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4658 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4659 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4660 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4661 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4662 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4663 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4664 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4665 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4666 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4667 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4668 test -w $ac_dir || continue # It is less confusing to not echo anything here.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4669 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4670 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4671 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4672 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4673 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4674 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4675 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4676 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4677 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4678 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4680 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4681 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4682 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4683 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4684 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4685 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4686 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4687 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4688 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4690 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4691
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4692
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4693 echo $ac_n "checking for sin""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4694 echo "configure:4695: checking for sin" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4695
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4696 cat > conftest.$ac_ext <<EOF
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4697 #line 4698 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4698 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4699 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4700 which can conflict with char sin(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4701 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4702 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4703 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4704 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4705 char sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4706
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4707 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4708
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4709 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4710 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4711 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4712 #if defined (__stub_sin) || defined (__stub___sin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4713 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4714 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4715 sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4716 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4717
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4718 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4719 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4721 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4722 eval "ac_cv_func_sin=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4723 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4724 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4725 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4726 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4727 eval "ac_cv_func_sin=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4728 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4729 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4730
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4731 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4732 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4733 :
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4734 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4735 echo "$ac_t""no" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4736
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4737 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4738 echo "configure:4739: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4739 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4741 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4742 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4743 #line 4744 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4744 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4745 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4746 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4747 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4748 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4749
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4750 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4751 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4752 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4753 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4755 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4756 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4757 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4758 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4759 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4760 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4761 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4762 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4763 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4764 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4765
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4767 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4768 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4770 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4771 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4772 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4773 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4774 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4775 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4776 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4777
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4778 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4779
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4780 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4781 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4782 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4783
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4784
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4785 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4786
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4787
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4788 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4789 Defining LISP_FLOAT_TYPE
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4790 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4791 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4792 #define LISP_FLOAT_TYPE 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4793 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4794 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4796
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4797 cat > conftest.$ac_ext <<EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4798 #line 4799 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4799 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4800 #include <math.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4801 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4802 return atanh(1.0) + asinh(1.0) + acosh(1.0);
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4803 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4804 EOF
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4806 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4807 { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4808 Defining HAVE_INVERSE_HYPERBOLIC
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4809 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4810 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4811 #define HAVE_INVERSE_HYPERBOLIC 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4812 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4813 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4814
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4815 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4816 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4817 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4818 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4819 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4820
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4821 for ac_func in mkstemp
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4822 do
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4824 echo "configure:4825: checking for $ac_func" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4825
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4826 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4827 #line 4828 "configure"
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4828 #include "confdefs.h"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4829 /* System header to define __stub macros and hopefully few prototypes,
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4830 which can conflict with char $ac_func(); below. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4831 #include <assert.h>
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4832 /* Override any gcc2 internal prototype to avoid an error. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4833 /* We use char because int might match the return type of a gcc2
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4834 builtin and then its argument prototype would still apply. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4835 char $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4836
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4837 int main() {
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4838
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4839 /* The GNU C library defines this for functions which it implements
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4840 to always fail with ENOSYS. Some functions are actually named
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4841 something starting with __ and the normal name is an alias. */
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4843 choke me
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4844 #else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4845 $ac_func();
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4846 #endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4847
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4848 ; return 0; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4849 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4851 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4852 eval "ac_cv_func_$ac_func=yes"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4853 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4854 echo "configure: failed program was:" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4855 cat conftest.$ac_ext >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4856 rm -rf conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4857 eval "ac_cv_func_$ac_func=no"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4858 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4859 rm -f conftest*
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4860
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4862 echo "$ac_t""yes" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4864 { test "$extra_verbose" = "yes" && cat << EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4865 Defining $ac_tr_func
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4866 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4867 cat >> confdefs.h <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4868 #define $ac_tr_func 1
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4869 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4870 }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4871
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4872 else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4873 echo "$ac_t""no" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4874 fi
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4875 done
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4876
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4877
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4878 echo "checking type of mail spool file locking" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4879 echo "configure:4880: checking type of mail spool file locking" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4880 for ac_func in lockf flock
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4881 do
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4883 echo "configure:4884: checking for $ac_func" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4884
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4885 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4886 #line 4887 "configure"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4887 #include "confdefs.h"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4888 /* System header to define __stub macros and hopefully few prototypes,
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4889 which can conflict with char $ac_func(); below. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4890 #include <assert.h>
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4891 /* Override any gcc2 internal prototype to avoid an error. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4892 /* We use char because int might match the return type of a gcc2
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4893 builtin and then its argument prototype would still apply. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4894 char $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4895
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4896 int main() {
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4897
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4898 /* The GNU C library defines this for functions which it implements
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4899 to always fail with ENOSYS. Some functions are actually named
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4900 something starting with __ and the normal name is an alias. */
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4902 choke me
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4903 #else
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4904 $ac_func();
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4905 #endif
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4906
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4907 ; return 0; }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4908 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4910 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4911 eval "ac_cv_func_$ac_func=yes"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4912 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4913 echo "configure: failed program was:" >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4914 cat conftest.$ac_ext >&5
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4915 rm -rf conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4916 eval "ac_cv_func_$ac_func=no"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4917 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4918 rm -f conftest*
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4919
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4921 echo "$ac_t""yes" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4923 { test "$extra_verbose" = "yes" && cat << EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4924 Defining $ac_tr_func
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4925 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4926 cat >> confdefs.h <<EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4927 #define $ac_tr_func 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4928 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4929 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4930
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4931 else
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4932 echo "$ac_t""no" 1>&6
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4933 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4934 done
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4935
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4936 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4937 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4938 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4939 if test -z "$mail_locking"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4940 case "$opsys" in cygwin* | mingw*)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4941 mail_locking=pop ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4942 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4943 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4944
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4945 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4946 Defining MAIL_LOCK_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4947 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4948 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4949 #define MAIL_LOCK_LOCKF 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4950 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4951 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4952
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4953 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4954 Defining MAIL_LOCK_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4955 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4956 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4957 #define MAIL_LOCK_FLOCK 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4958 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4959 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4960
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4961 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4962 Defining MAIL_LOCK_LOCKING
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4963 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4964 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4965 #define MAIL_LOCK_LOCKING 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4966 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4967 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4968
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4969 elif test "$mail_locking" = "pop"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4970 with_pop=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
4971 mail_locking=
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4972 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4973 Defining MAIL_LOCK_DOT
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4974 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4975 cat >> confdefs.h <<\EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4976 #define MAIL_LOCK_DOT 1
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4977 EOF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4978 }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4979
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4980 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4981 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4982 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4983 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4984 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4985 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
4986 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4987
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4988 case "$opsys" in decosf*)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4989
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4990 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4991 echo "configure:4992: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4992 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4993
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4994 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4995 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
4996 #line 4997 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4997 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4998 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4999 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5000 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5001 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5002
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5003 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5004 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5005 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5006 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5008 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5009 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5010 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5011 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5012 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5013 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5014 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5015 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5016 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5017 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5018
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5020 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5021 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5022 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5023 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5024 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5025 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5026 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5027 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5028 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5029 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5030
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5031 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5032
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5033 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5034 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5035 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5036
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5037
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5038 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5039 c_switch_site="$c_switch_site -threads" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5040 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5041
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5042 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5043 echo "configure:5044: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5044 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5045 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5046 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5047 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
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5048 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5049 else echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5050 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5051
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5052 if test "$opsys" = "sol2"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5053 if test "$os_release" -ge 56; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5054 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5055 echo "configure:5056: checking for \"-z ignore\" linker flag" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5056 case "`ld -h 2>&1`" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5057 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5058 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5059 *) echo "$ac_t""no" 1>&6 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5060 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
5061 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5062 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5063
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5064
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5065 echo "checking "for specified window system"" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5066 echo "configure:5067: checking "for specified window system"" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5067
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5068
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5069 GNOME_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5070 GTK_CONFIG=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5071
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5072 if test "$with_gnome" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5073 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5074 echo "configure:5075: checking for GNOME configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5075 for possible in gnome-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5076 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5077 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5078 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5079 GNOME_CONFIG="${possible}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5080 with_gnome=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5081 with_gtk=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5082 break
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5083 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5084 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5085 echo "$ac_t""${GNOME_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5086 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5087
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5088 if test "${GNOME_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5089 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5090 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5091 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5092 Defining HAVE_GNOME
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5093 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5094 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5095 #define HAVE_GNOME 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5096 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5097 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5098
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5099 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5100 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5101 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5102
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5103 if test "$with_gtk" != "no";then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5104 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5105 echo "configure:5106: checking for GTK configuration script" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5106 for possible in gtk12-config gtk14-config gtk-config
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5107 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5108 possible_version=`${possible} --version 2> /dev/null`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5109 if test "x${possible_version}" != "x"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5110 GTK_CONFIG="${possible}"
527
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5111 case "${possible_version}" in
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5112 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5113 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5114 1.2.*)
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5115 with_gtk=yes
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5116 break
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5117 ;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5118 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
7b35ad872326 [xemacs-hg @ 2001-05-10 08:09:13 by yoshiki]
yoshiki
parents: 505
diff changeset
5119 esac
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5120 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5121 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5122 echo "$ac_t""${GTK_CONFIG}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5123 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5124
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5125 if test "${GTK_CONFIG}" != "no"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5126 echo $ac_n "checking gtk version""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5127 echo "configure:5128: checking gtk version" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5128 GTK_VERSION=`${GTK_CONFIG} --version`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5129 echo "$ac_t""${GTK_VERSION}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5130
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5131 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5132 echo "configure:5133: checking gtk libs" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5133 GTK_LIBS=`${GTK_CONFIG} --libs`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5134 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5135 echo "$ac_t""${GTK_LIBS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5136
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5137 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5138 echo "configure:5139: checking gtk cflags" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5139 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5140 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5141 echo "$ac_t""${GTK_CFLAGS}" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5142
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5143
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5144 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5145 echo "configure:5146: checking for main in -lgdk_imlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5146 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5147
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5148 xe_check_libs=" -lgdk_imlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5149 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5150 #line 5151 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5151 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5152
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5153 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5154 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5155 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5156 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5158 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5159 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5160 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5161 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5162 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5163 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5164 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5165 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5166 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5167 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5168
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5170 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5171 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5172 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5173 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5174 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5175
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5176
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5177
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5178 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5179 echo "configure:5180: checking for Imlib_init in -lImlib" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5180 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5181
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5182 xe_check_libs=" -lImlib "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5183 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5184 #line 5185 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5185 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5186 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5187 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5188 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5189 char Imlib_init();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5190
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5191 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5192 Imlib_init()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5193 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5194 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5196 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5197 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5198 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5199 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5200 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5201 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5202 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5203 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5204 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5205 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5206
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5208 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5209 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5210 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5211 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5212 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5213
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5214
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5215 for ac_func in gdk_imlib_init
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5216 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5218 echo "configure:5219: checking for $ac_func" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5219
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5220 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5221 #line 5222 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5222 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5223 /* System header to define __stub macros and hopefully few prototypes,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5224 which can conflict with char $ac_func(); below. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5225 #include <assert.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5226 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5227 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5228 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5229 char $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5230
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5231 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5232
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5233 /* The GNU C library defines this for functions which it implements
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5234 to always fail with ENOSYS. Some functions are actually named
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5235 something starting with __ and the normal name is an alias. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5237 choke me
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5238 #else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5239 $ac_func();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5240 #endif
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5241
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5242 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5243 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5245 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5246 eval "ac_cv_func_$ac_func=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5247 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5248 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5249 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5250 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5251 eval "ac_cv_func_$ac_func=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5252 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5253 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5254
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5256 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5258 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5259 Defining $ac_tr_func
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5260 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5261 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5262 #define $ac_tr_func 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5263 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5264 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5265
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5266 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5267 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5268 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5269 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5270
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5271
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5272 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5273 Defining HAVE_XPM
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5274 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5275 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5276 #define HAVE_XPM 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5277 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5278 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5279
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5280 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5281 Defining HAVE_GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5282 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5283 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5284 #define HAVE_GTK 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5285 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5286 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5287
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5288
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5289
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5290 window_system=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5291 with_gtk=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5292 with_x11=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5293
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5294 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5295 test "${with_toolbars}" != no && with_toolbars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5296 test "${with_menubars}" != "no" && with_menubars=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5297 test "${with_dialogs}" != "no" && with_dialogs=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5298 test "${with_widgets}" != "no" && with_widgets=gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5299
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5300 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5301 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5302 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5303 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5304 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5305 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5306 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5307 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5308 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5309 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5310 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5311 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5312
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5313 OLD_CFLAGS="${CFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5314 OLD_LDFLAGS="${LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5315 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5316 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5317 for ac_hdr in glade/glade.h glade.h
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5318 do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5321 echo "configure:5322: checking for $ac_hdr" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5322
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5323 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5324 #line 5325 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5325 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5326 #include <$ac_hdr>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5327 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5329 { (eval echo configure:5330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5331 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5332 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5333 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5334 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5335 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5336 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5337 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5338 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5339 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5340 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5341 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5343 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5345 { test "$extra_verbose" = "yes" && cat << EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5346 Defining $ac_tr_hdr
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5347 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5348 cat >> confdefs.h <<EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5349 #define $ac_tr_hdr 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5350 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5351 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5352
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5353 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5354 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5355 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5356 done
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5357
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5358
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5359 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5360 echo "configure:5361: checking for main in -lxml" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5361 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5362
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5363 xe_check_libs=" -lxml "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5364 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5365 #line 5366 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5366 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5367
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5368 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5369 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5370 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5371 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5373 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5374 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5375 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5376 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5377 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5378 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5379 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5380 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5381 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5382 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5383
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5385 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5386 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5387 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5388 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5389 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5390
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5391
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5392
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5393 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5394 echo "configure:5395: checking for main in -lglade" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5395 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5396
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5397 xe_check_libs=" -lglade "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5398 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5399 #line 5400 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5400 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5401
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5402 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5403 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5404 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5405 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5407 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5408 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5409 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5410 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5411 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5412 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5413 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5414 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5415 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5416 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5417
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5419 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5420 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5421 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5422 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5423 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5424
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5425
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5426
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5427 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5428 echo "configure:5429: checking for main in -lglade-gnome" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5429 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5430
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5431 xe_check_libs=" -lglade-gnome "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5432 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5433 #line 5434 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5434 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5435
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5436 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5437 main()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5438 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5439 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5441 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5442 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5443 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5444 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5445 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5446 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5447 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5448 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5449 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5450 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5451
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5453 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5454 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5455 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5456 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5457 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5458
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5459
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5460 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5461 #line 5462 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5462 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5463 #include <glade/glade-xml.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5464 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5466 egrep "char \*txtdomain;" >/dev/null 2>&1; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5467 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5468 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5469 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5470 Defining LIBGLADE_XML_TXTDOMAIN = 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5471 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5472 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5473 #define LIBGLADE_XML_TXTDOMAIN 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5474 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5475 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5476
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5477 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5478 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5479 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5480 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5481 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5482
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5483 CFLAGS="${OLD_CFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5484 LDFLAGS="${OLD_LDFLAGS}"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5485 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
5486
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5487
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5488 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5489 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5490 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5491
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5492
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5493 if test "$x_includes $x_libraries" = "NONE NONE" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5494 -a -n "$OPENWINHOME" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5495 -a "$OPENWINHOME" != "/usr/openwin" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5496 -a -d "$OPENWINHOME"; then
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5497 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5498 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5499 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5500 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5501
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5502 if test "$x_includes" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5503 for dir in "/usr/X11" "/usr/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5504 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5505 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5506 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5507
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5508 if test "$x_libraries" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5509 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5510 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5511 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5512 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
5513
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5514 # If we find X, set shell vars x_includes and x_libraries to the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5515 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5516 # Uses ac_ vars as temps to allow command line to override cache and checks.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5517 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5518 echo $ac_n "checking for X""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5519 echo "configure:5520: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5520
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5521 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5522 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5523 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5524 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5525 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5526
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5527 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5528 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5529 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5530 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5531 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5532 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5533 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5534 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5535 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5536
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5537 # One or both of the vars are not set, and there is no cached value.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5538 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5539 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5540 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5541 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5542 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5543 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5544 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5545 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5546 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5547 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5548 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5550 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5551 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5552 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5553 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5554 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5555 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5556 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5557 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5558 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5559 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5560 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5561 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5562 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5563 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5564 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5565 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5566 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5567 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5568 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5569 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5570 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5571 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5572
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5573 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5574 # Guess where to find include files, by looking for this one X11 .h file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5575 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5576
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5577 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5578 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5579 #line 5580 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5580 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5581 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5582 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5584 { (eval echo configure:5585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
5585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5586 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5587 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5588 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5589 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5590 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5591 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5592 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5593 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5594 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5595 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5596 # Check X11 before X11Rn because it is often a symlink to the current release.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5597 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5598 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5599 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5600 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5601 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5602 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5603 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5604 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5605 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5606 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5607 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5608 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5609 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5610 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5611 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5612 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5613 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5614 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5615 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5616 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5617 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5618 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5619 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5620 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5621 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5622 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5623 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5624 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5625 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5626 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5627 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5628 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5629 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5630 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5631 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5632 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5633 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5634 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5635 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5636 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5637 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5638 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5639 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5640 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5641
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5642 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5643 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5644
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5645 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5646 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5647
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5648 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5649 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5650 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5651 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5652 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5653 #line 5654 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5654 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5655
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5656 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5657 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5658 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5659 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5661 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5662 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5663 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5664 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5665 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5666 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5667 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5668 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5669 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5670 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5671 # Check X11 before X11Rn because it is often a symlink to the current release.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5672 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5673 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5674 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5675 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5676 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5677 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5678 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5679 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5680 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5681 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5682 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5683 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5684 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5685 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5686 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5687 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5688 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5689 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5690 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5691 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5692 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5693 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5694 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5695 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5696 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5697 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5698 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5699 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5700 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5701 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5702 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5703 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5704 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5705 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5706 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5707 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5708 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5709 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5710 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5711 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5712 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5713 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5714 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5715 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5716 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5717 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5718 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5720 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5721 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5722 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5723 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5724 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5725 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5726 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5727 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5728 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5729 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5730 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5731
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5732 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5733 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5734 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5735 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5736 # If each of the values was on the command line, it overrides each guess.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5737 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5738 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5739 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5740 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5741 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5742 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5743 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5744
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5745 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5746 # Not all programs may use this symbol, but it does not hurt to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5747 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5748 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5749 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5750 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5751 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5752 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5753 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5755 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5756 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5757 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5758 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5759 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5760
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5761 # It would also be nice to do this for all -L options, not just this one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5762 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5763 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5764 # For Solaris; some versions of Sun CC require a space after -R and
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5765 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5766 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5767 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5768 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5769 echo "configure:5770: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5770 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5771 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5772 #line 5773 "configure"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5773 #include "confdefs.h"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5774
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5775 int main() {
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5776
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5777 ; return 0; }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5778 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5780 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5781 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5782 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5783 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5784 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5785 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5786 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5787 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5788 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5789 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5790 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5791 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5792 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5793 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5794 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5795 #line 5796 "configure"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5796 #include "confdefs.h"
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5797
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5798 int main() {
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5799
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5800 ; return 0; }
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5801 EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5803 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5804 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5805 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5806 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5807 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5808 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5809 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5810 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5811 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5812 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5813 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5814 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5815 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5816 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5817 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5818 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5819 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5820 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5821 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5822
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5823 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5824 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5825 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5826
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5827 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5829 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5830 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5831 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5832 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5833 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5834 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5835 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5836
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5837 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5838 echo "configure:5839: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5839 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5840
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5841 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5842 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5843 #line 5844 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5844 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5845 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5846 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5847 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5848 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5850 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5851 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5852 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5853 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5855 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5856 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5857 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5858 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5859 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5860 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5861 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5862 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5863 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5864 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5865
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5867 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5869 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5870 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5871 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5872
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5873 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5874
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5875 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5876
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5877 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5878 echo "configure:5879: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5879 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5880
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5881 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5882 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5883 #line 5884 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5884 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5885 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5886 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5887 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5888 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5889
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5890 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5891 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5892 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5893 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5895 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5896 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5897 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5898 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5899 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5900 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5901 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5902 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5903 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5904 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5905
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5907 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5908 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5909 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5910 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5911 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5912
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5913
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5914 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5915
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5916 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5917 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5918 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5919 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5920 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5921 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5922 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5923 echo "configure:5924: checking for gethostbyname" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5924
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5925 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5926 #line 5927 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5927 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5928 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5929 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5930 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5931 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5932 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5933 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5934 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5935
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5936 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5937
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5938 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5939 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5940 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5941 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5942 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5943 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5944 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5945 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5946
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5947 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5948 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5950 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5951 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5952 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5953 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5954 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5955 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5956 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5957 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5958 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5960 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5961 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5962 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5963 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5964 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5965 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5966
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5967 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5968
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5969 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5970 echo "configure:5971: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5971 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5972
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5973 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5974 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5975 #line 5976 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5976 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5977 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5978 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5979 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5980 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5981
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5982 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5983 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5984 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5985 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
5986 if { (eval echo configure:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5987 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5988 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5989 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5990 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5991 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5992 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5993 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5994 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5995 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5996 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5997
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5999 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6001 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6002 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6003 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6004
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6006 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6007
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6009 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6011 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6012 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6013 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6014 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6015 echo $ac_n "checking for connect""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6016 echo "configure:6017: checking for connect" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6017
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6018 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6019 #line 6020 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6020 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6021 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6022 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6023 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6024 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6025 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6026 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6027 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6028
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6029 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6030
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6031 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6032 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6033 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6034 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6035 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6036 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6037 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6038 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6039
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6040 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6041 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6043 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6044 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6045 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6046 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6047 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6048 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6049 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6050 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6051 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6052
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6053 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6054 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6055 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6056 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6057 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6058 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6059
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6060 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6061
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6062 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6063 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6064 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6065 echo "configure:6066: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6066 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6067
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6068 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6069 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6070 #line 6071 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6071 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6072 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6073 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6074 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6075 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6076
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6077 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6078 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6079 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6080 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6082 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6083 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6084 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6085 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6086 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6087 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6088 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6089 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6090 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6091 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6092
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6094 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6096 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6097 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6098 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6099
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6101 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6102
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6103 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6104 echo $ac_n "checking for remove""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6105 echo "configure:6106: checking for remove" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6106
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6107 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6108 #line 6109 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6109 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6110 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6111 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6112 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6113 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6114 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6115 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6116 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6117
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6118 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6119
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6120 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6121 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6122 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6123 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6124 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6125 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6126 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6127 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6128
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6129 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6130 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6131 if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6132 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6133 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6134 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6135 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6136 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6137 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6138 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6139 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6140 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6141
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6142 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6143 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6144 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6145 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6146 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6147 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6148
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6149 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6150
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6151 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6152 echo "configure:6153: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6153 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6154
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6155 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6156 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6157 #line 6158 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6158 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6159 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6160 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6161 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6162 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6163
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6164 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6165 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6166 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6167 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6168 if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6169 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6170 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6171 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6172 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6173 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6174 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6175 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6176 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6177 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6178 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6179
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6181 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6183 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6184 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6186
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6187
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6188 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6189
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6190 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6191 echo $ac_n "checking for shmat""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6192 echo "configure:6193: checking for shmat" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6193
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6194 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6195 #line 6196 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6196 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6197 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6198 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6199 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6200 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6201 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6202 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6203 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6204
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6205 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6207 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6208 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6209 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6210 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6211 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6212 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6213 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6214 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6215
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6216 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6217 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6218 if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6219 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6220 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6221 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6222 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6223 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6224 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6225 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6226 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6227 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6229 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6230 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6231 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6232 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6233 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6234 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6235
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6236 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6237
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6238 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6239 echo "configure:6240: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6240 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6241
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6242 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6243 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6244 #line 6245 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6245 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6246 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6247 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6248 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6249 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6250
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6251 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6252 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6253 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6254 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6256 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6257 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6258 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6259 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6260 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6261 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6262 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6263 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6264 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6265 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6266
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6268 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6270 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6271 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6272 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6273
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6274
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6275 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6276 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6277
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6278 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6279 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6280 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6281 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6282 # check for ICE first), but we must link in the order -lSM -lICE or
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6283 # we get undefined symbols. So assume we have SM if we have ICE.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6284 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6285 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6286 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6287
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6288 xe_msg_checking="for IceConnectionNumber in -lICE"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6289 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6290 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6291 echo "configure:6292: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6292 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6293
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6294 xe_check_libs=" -lICE $X_EXTRA_LIBS"
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6295 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6296 #line 6297 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6297 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6298 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6299 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6300 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6301 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6303 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6304 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6305 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6306 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6307 if { (eval echo configure:6308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6308 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6309 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6310 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6311 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6312 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6313 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6314 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6315 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6316 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6317 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6318
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6320 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6321 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6322 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6323 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6324 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6325
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6326
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6327 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6329 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6330 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6331 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6332 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6333 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6334 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6335 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6336
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6337
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6338 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6339 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6340 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6341 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6342 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6343 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6344 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6345 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6346
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6347 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
6348 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6349
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6350 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6351 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6352 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6353 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6354 x_libraries="$lib_dir $x_libraries"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6355 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6356 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6357 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6358 x_includes="$inc_dir $x_includes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6359 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6360 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6361 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6362 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6363
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6364 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6365 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6366 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6367 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6368 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6369 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6370 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6371 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6372 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6373 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6374 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6375 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6376 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6377
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6378 case "$opsys" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6379 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 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6380 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6381
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6382 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6383
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6384
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6385 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6386 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
6387 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6388
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6389 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6390 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6391 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6392 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6393 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6394 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6395 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6396 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6397 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6398 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6399 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6400 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6401 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6402 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6403 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6404 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6405 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6406 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6407 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6408 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6409 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6410 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6411 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6412 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6413 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6414 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6415 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6416 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
6417 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6418 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6419 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6420 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6421 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6422 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6423 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6424 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
6425 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6426 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6427 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6428
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6429 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6430 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6431 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6432 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6433 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6434 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6435 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6436 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6437 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6438 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6439 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6440 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6441 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6442 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6443 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6444
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6445
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6446 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6447 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6448 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6449 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6450 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6451
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6452 bitmapdirs=
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6453 if test "$x_includes" != NONE; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6454 for i in $x_includes; do
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6455 if test -d "$i/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6456 bitmapdirs="$i/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6457 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6458 if test -d "$i/X11/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6459 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6460 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6461 done
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6462 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6463 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6464 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6465 Defining BITMAPDIR = "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6466 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6467 cat >> confdefs.h <<EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6468 #define BITMAPDIR "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6469 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6470 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6471
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6472
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6473 echo "checking for X defines extracted by xmkmf" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6474 echo "configure:6475: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6475 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6476 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6477 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6478 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6479 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6480 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6481 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6482 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6484 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6485 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6486 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6487 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6488 for word in $xmkmf_defines; do
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
6489 case "$word" in
473
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6490 -D__STDC__*) ;;
77c75d85635e [xemacs-hg @ 2001-04-18 09:07:27 by martinb]
martinb
parents: 464
diff changeset
6491 -D* )
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6492 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6493 case "$word" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6494 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6495 * ) val=1 ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6496 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6497 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6498 if test "$val" = "1"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6499 then { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6500 Defining $sym
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6501 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6502 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6503 #define $sym 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6504 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6505 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6506
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6507 else { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6508 Defining $sym = $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6509 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6510 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6511 #define $sym $val
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6512 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6513 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6514
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6515 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6516 fi ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6517 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6518 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6519 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
6520
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6521 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6522 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6523 echo "configure:6524: checking for X11/Intrinsic.h" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6524
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6525 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6526 #line 6527 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6527 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6528 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6529 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6531 { (eval echo configure:6532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6533 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6534 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6535 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6536 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6537 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6538 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6539 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6540 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6541 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6542 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6543 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6545 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6546 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6547 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6548 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6549 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6550 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6551
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6552
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6553
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6554 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6555 echo "configure:6556: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6556 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6557
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6558 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6559 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6560 #line 6561 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6561 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6562 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6563 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6564 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6565 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6566
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6567 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6568 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6569 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6570 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6572 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6573 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6574 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6575 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6576 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6577 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6578 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6579 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6580 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6581 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6582
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6584 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6585 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6586 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6587 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6588 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6589
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6590
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6591 if test "$have_lib_x11" != "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6592
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6593 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6594 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6595 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6596 echo "configure:6597: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6597 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6598
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6599 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6600 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6601 #line 6602 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6602 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6603 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6604 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6605 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6606 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6607
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6608 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6609 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6610 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6611 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6613 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6614 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6615 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6616 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6617 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6618 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6619 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6620 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6621 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6622 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6623
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6625 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6626 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6627 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6628 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6629 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6630 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6631
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6632
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6633 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6634 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6635 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6636
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6637
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6638 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6639 echo "configure:6640: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6640 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6641
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6642 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6643 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6644 #line 6645 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6645 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6646 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6647 /* We use char because int might match the return type of a gcc2
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6648 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6649 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6650
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6651 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6652 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6653 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6654 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6656 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6657 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6658 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6659 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6660 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6661 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6662 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6663 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6664 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6665 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6666
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6668 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6669 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6670 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6671 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6672 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6673
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6674
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
6675
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6676
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6678 echo "configure:6679: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6679 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6682 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6683 #line 6684 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6687 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688 char XtOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6690 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6691 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6697 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6698 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6699 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6703 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6707 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6708 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6710 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
6711 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6712 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6713
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6714
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6715
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6716 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6717 echo "configure:6718: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6718 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6719 #line 6720 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6720 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6721 #include <X11/Intrinsic.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6722 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6723 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6725 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6726 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6727 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6728 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6729 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6730 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6731 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6732 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6733 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6734 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6735 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6736 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6737 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6738 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6739 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6740 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6741 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6742 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6743
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6744
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6745 if test "${x11_release}" = "4"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6746 case "$with_widgets" in
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6747 "" | "no") with_widgets=no ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6748 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6749 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6750 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6751
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6752 for ac_func in XConvertCase
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6753 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6755 echo "configure:6756: checking for $ac_func" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6756
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6757 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6758 #line 6759 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6759 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6760 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6761 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6762 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6763 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6764 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6765 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6766 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6767
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6768 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6769
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6770 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6771 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6772 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6774 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6775 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6776 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6777 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6778
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6779 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6780 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6782 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6783 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6784 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6785 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6786 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6787 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6788 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6789 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6790 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6791
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6793 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6795 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6796 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6797 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6798 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6799 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6800 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6801 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6802
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6803 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6804 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6805 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6806 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6807
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
6808
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6809 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6810 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6813 echo "configure:6814: checking for $ac_hdr" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6814
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6815 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6816 #line 6817 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6817 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6818 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6819 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6821 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
6822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6823 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6824 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6825 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6826 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6827 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6828 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6829 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6830 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6831 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6832 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6833 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6835 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6837 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6838 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6839 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6840 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6841 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6842 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6843 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6844
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6845 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6846 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6847 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6848 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6849
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6850
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6851 for ac_func in XRegisterIMInstantiateCallback
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6852 do
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6854 echo "configure:6855: checking for $ac_func" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6855
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6856 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6857 #line 6858 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6858 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6859 /* System header to define __stub macros and hopefully few prototypes,
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6860 which can conflict with char $ac_func(); below. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6861 #include <assert.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6862 /* Override any gcc2 internal prototype to avoid an error. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6863 /* We use char because int might match the return type of a gcc2
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6864 builtin and then its argument prototype would still apply. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6865 char $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6866
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6867 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6868
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6869 /* The GNU C library defines this for functions which it implements
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6870 to always fail with ENOSYS. Some functions are actually named
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6871 something starting with __ and the normal name is an alias. */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6873 choke me
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6874 #else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6875 $ac_func();
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6876 #endif
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6877
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6878 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6879 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6881 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6882 eval "ac_cv_func_$ac_func=yes"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6883 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6884 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6885 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6886 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6887 eval "ac_cv_func_$ac_func=no"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6888 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6889 rm -f conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6890
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6892 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6894 { test "$extra_verbose" = "yes" && cat << EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6895 Defining $ac_tr_func
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6896 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6897 cat >> confdefs.h <<EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6898 #define $ac_tr_func 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6899 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6900 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6901
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6902 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6903 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6904 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6905 done
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6906
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6907 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6908 echo "configure:6909: checking for standard XRegisterIMInstantiateCallback prototype" >&5
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6909 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6910 #line 6911 "configure"
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6911 #include "confdefs.h"
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6912
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6913 #define NeedFunctionPrototypes 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6914 #include <X11/Xlib.h>
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6915 extern Bool XRegisterIMInstantiateCallback(
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6916 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6917
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6918 int main() {
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6919
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6920 ; return 0; }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6921 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6922 if { (eval echo configure:6923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6923 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6924 echo "$ac_t""yes" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6925 else
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6926 echo "configure: failed program was:" >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6927 cat conftest.$ac_ext >&5
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6928 rm -rf conftest*
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6929 echo "$ac_t""no" 1>&6
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6930 { test "$extra_verbose" = "yes" && cat << \EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6931 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6932 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6933 cat >> confdefs.h <<\EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6934 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6935 EOF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6936 }
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6937
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6938 fi
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
6939 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6940
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6941 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6942 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6943 echo "configure:6944: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6944 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6945
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6946 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6947 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6948 #line 6949 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6949 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6950 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6951 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6952 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6953 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6954
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6955 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6956 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6957 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6958 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6960 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6961 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6962 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6963 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6964 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6965 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6966 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6967 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6968 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6969 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6970
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6972 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6973 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6974 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6975 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6976 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6977 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6978
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6979 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6980 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6981 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6982 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6983 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
6984 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6985 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6986 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6987 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6988 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6989 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6990 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6991 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6992 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6993
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6994 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6995
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6996
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6997 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
6998 echo "configure:6999: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6999 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7000
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7001 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7002 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7003 #line 7004 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7004 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7006 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7007 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7008 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7009 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7011 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7012 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7013 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7014 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7015 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7016 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7017 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7018 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7019 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7020 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7021
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7023 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7024 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7025 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7026 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7027 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7028
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7029
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7030
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7031 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7032 if test "$GCC" = "yes"; then
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7033 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7034 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7035 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7036 case "$CC" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7037 "xlc" ) CC="xlc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7038 "xlC" ) CC="xlC_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7039 "cc" ) CC="cc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7040 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7041 fi
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7042 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7043
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7044 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7045 if test "$with_msw" != "no"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7046 echo "checking for MS-Windows" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7047 echo "configure:7048: checking for MS-Windows" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7048
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7049 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7050 echo "configure:7051: checking for main in -lgdi32" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7051 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7052
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7053 xe_check_libs=" -lgdi32 "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7054 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7055 #line 7056 "configure"
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7056 #include "confdefs.h"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7057
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7058 int main() {
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7059 main()
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7060 ; return 0; }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7061 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7062 if { (eval echo configure:7063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7063 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7064 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7065 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7066 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7067 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7068 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7069 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7070 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7071 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7072 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7073
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7075 echo "$ac_t""yes" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7076 with_msw=yes
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7077 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7078 echo "$ac_t""no" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7079 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7080
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7081
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7082 if test "$with_msw" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7083 { test "$extra_verbose" = "yes" && cat << \EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7084 Defining HAVE_MS_WINDOWS
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7085 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7086 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7087 #define HAVE_MS_WINDOWS 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7088 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7089 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7090
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
7091
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7092 if test "$with_netinstall" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7093 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7094 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7095 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7096 fi
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
7097
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7098 install_pp="$blddir/lib-src/installexe.sh"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7099 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
7100 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7101 if test "$window_system" != x11; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7102 window_system=msw
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7103 test "$with_scrollbars" != "no" && with_scrollbars=msw \
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7104 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7105 echo " xemacs will be linked with \"scrollbar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7106 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7107 test "$with_menubars" != "no" && with_menubars=msw \
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7108 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7109 echo " xemacs will be linked with \"menubar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7110 fi
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7111 test "$with_toolbars" != "no" && with_toolbars=msw \
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7112 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7113 echo " xemacs will be linked with \"toolbar-msw.o\""
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7114 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7115 test "$with_dialogs" != "no" && with_dialogs=msw \
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7116 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7117 echo " xemacs will be linked with \"dialog-msw.o\""
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7118 fi
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7119 test "$with_widgets" != "no" && with_widgets=msw
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7120 else
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
7121 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7122 echo " xemacs will be linked with \"scrollbar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7123 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7124 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7125 echo " xemacs will be linked with \"menubar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7126 fi
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7127 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7128 echo " xemacs will be linked with \"toolbar-msw.o\""
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7129 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
7130 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7131 echo " xemacs will be linked with \"dialog-msw.o\""
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7132 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7133 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7134 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7135 #line 7136 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7136 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7137 #include <fcntl.h>
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7138 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7139 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7141 then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7142 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7143 Defining HAVE_MSG_SELECT
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7144 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7145 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7146 #define HAVE_MSG_SELECT 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7147 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7148 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7149
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7150 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7151 conftest_rc="$?"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7152 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7153 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7154 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7155 rm -fr conftest*
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7156 with_file_coding=yes
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
7157 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
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
7158 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\""
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7159 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7160 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7161 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
7162
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7163
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
7164
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7165 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7166
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7167 if test "$window_system" = "none"; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7168 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7169 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7170 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7171 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7172 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7173 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7174 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7175 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7176 test -z "$with_toolbars" && with_toolbars=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7177 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7178
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7179 if test "$with_msw" != "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7180 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7181 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7182 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7183 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7184 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7185 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7186 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7187 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7188 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7189 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7190
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7191 if test "$with_x11" != "yes"; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
7192 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7193 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7194 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7195 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7196 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7197 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7198 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7199 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7200
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7201 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7202 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7203 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7204 echo "configure:7205: checking for X11/extensions/shape.h" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7205
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7206 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7207 #line 7208 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7208 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7209 #include <X11/extensions/shape.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7210 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7212 { (eval echo configure:7213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7214 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7215 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7216 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7217 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7218 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7219 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7220 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7221 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7222 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7223 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7224 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7226 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7227
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7228 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7229 Defining HAVE_BALLOON_HELP
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7230 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7231 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7232 #define HAVE_BALLOON_HELP 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7233 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7234 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7235
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7236 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7237 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7238 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7239 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7240 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7241 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7242
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7243 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7244
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7245 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7246
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7247 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7248 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7249 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7250 gtk )
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7251 HAVE_X_WINDOWS=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7252 test "$with_gnome" = "yes" && echo " Using GNOME."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7253 test "$with_gnome" = "no" && echo " Using GTK."
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7254 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
7255 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7256 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7257
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7258 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7259 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7260 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7261 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7262
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7263 echo "checking for WM_COMMAND option" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7264 echo "configure:7265: checking for WM_COMMAND option" >&5;
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7265 if test "$with_wmcommand" != "no"; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7266 { test "$extra_verbose" = "yes" && cat << \EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7267 Defining HAVE_WMCOMMAND
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7268 EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7269 cat >> confdefs.h <<\EOF
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
7270 #define HAVE_WMCOMMAND 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7271 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7272 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7273
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7274 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
7275
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7276 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7277 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7278 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7279 echo "configure:7280: checking for X11/Xauth.h" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7280
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7281 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7282 #line 7283 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7283 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7284 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7285 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7287 { (eval echo configure:7288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7289 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7290 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7291 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7292 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7293 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7294 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7295 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7296 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7297 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7298 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7299 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7301 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7302 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7303 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7304 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7305 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7306 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7307 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7308 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7309 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7310 echo "configure:7311: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7311 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7312
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7313 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7314 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7315 #line 7316 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7316 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7317 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7318 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7319 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7320 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7321
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7322 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7323 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7324 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7325 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7327 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7328 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7329 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7330 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7331 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7332 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7333 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7334 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7335 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7336 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7337
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7339 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7340 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7341 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7342 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7343 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7345
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7346 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7347 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7348 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7349 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7350 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7351 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7352 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7353 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7354 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7355 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7356
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7357
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7358 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7359 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
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7360 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7361
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7362 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7363
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7364
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
7365
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7366
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7367 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7368 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7369 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7370 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7371 echo "configure:7372: checking for ${dir}tt_c.h" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7372
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7373 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7374 #line 7375 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7375 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7376 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7377 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7381 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7382 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7383 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7384 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7385 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7386 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7387 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7388 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7389 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7390 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7391 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7393 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7394 tt_c_h_file="${dir}tt_c.h"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7395 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7396 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7397 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7398
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7399 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7400 if test -z "$tt_c_h_file"; then
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7401 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7402 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7403 echo " " "Unable to find required tooltalk header files."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7404 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7405 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7406 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7407 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7408 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7409 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7410 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7411
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7412 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7413 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7414 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7415 echo "configure:7416: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7416 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7417
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7418 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7419 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7420 #line 7421 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7421 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7422 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7423 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7424 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7425 char tt_message_create();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7426
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7427 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7428 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7429 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7430 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7432 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7433 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7434 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7435 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7436 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7437 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7438 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7439 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7440 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7441 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7442
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7444 echo "$ac_t""yes" 1>&6
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7445 tt_libs="-ltt $extra_libs"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7446 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7447 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7448 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7449 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7450
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7452 done
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7453 if test -z "$tt_libs"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7454 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7455 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7456 echo " " "Unable to find required tooltalk libraries."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7457 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7458 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7459 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7460 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7461 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
7462 test -z "$with_tooltalk" && with_tooltalk=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7463 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7464 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7465 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7466 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7467 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7468 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7469 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7470 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7471
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7472 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7473 Defining TT_C_H_FILE = "$tt_c_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7474 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7475 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7476 #define TT_C_H_FILE "$tt_c_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7477 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7478 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7479
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7480 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7481 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7482 echo " xemacs will be linked with \"tooltalk.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7483 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7484 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7485
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7486 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7487 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7488 echo "configure:7489: checking for Dt/Dt.h" >&5
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7489
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7490 cat > conftest.$ac_ext <<EOF
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7491 #line 7492 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7492 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7493 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7494 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7496 { (eval echo configure:7497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7498 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7499 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7500 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7501 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7502 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7503 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7504 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7505 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7506 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7507 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7508 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7510 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7511 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7512 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7513 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7514 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
7515 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
7516 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7517 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7518 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7519 echo "configure:7520: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7520 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7521
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7522 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7523 cat > conftest.$ac_ext <<EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7524 #line 7525 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7525 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7526 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7527 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7528 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7529 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7531 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7532 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7533 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7534 EOF
567
4a2749e56f92 [xemacs-hg @ 2001-05-24 11:21:32 by yoshiki]
yoshiki
parents: 561
diff changeset
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7536 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7537 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7538 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7539 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7540 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7541 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7542 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7543 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7544 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7545 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7546
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7548 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7549 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7550 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7551 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7552 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7553 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7554
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7555 }
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7556 if test "$with_dragndrop" = "no" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7557 if test "$with_cde" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7558 echo "configure: warning: --with-cde forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7559 fi
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7560 with_cde=no
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7561 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7562 test -z "$with_cde" && with_cde=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7563 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7564 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7565 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7566 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7567 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7568 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7569 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7570 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7571
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7572 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7573 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7574 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
7575 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7576 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7577
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7578 test "$window_system" != "x11" && with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7579 if test "$with_xmu" != yes -a "$with_x11" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7580 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7581 echo "configure: warning: --with-offix forced to \`no'; no real Xmu support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7582 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7583 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7584 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7585 if test "$with_dragndrop" = no; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7586 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7587 echo "configure: warning: --with-offix forced to \`no'; no generic Drag'n'Drop support" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7588 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7589 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7590 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7591 if test "$with_cde" = yes; then
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7592 if test "$with_offix" = "yes" ; then
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7593 echo "configure: warning: --with-offix forced to \`no'; CDE already found" 1>&2
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7594 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7595 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7596 fi
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
7597 test -z "$with_offix" && with_offix=no
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7598 if test "$with_offix" = "yes"; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7599 { test "$extra_verbose" = "yes" && cat << \EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7600 Defining HAVE_OFFIX_DND
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7601 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7602 cat >> confdefs.h <<\EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7603 #define HAVE_OFFIX_DND 1
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7604 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7605 }
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7606
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7607 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7608 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7609 fi
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7610 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7611 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
7612 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
7613
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7614 if test "$with_dragndrop" != "no" ; then
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 444
diff changeset
7615 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7616 echo "configure:7617: checking if drag and drop API is needed" >&5
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7617 if test -n "$dragndrop_proto" ; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7618 with_dragndrop=yes
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7619 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7620 { test "$extra_verbose" = "yes" && cat << \EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7621 Defining HAVE_DRAGNDROP
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7622 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7623 cat >> confdefs.h <<\EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7624 #define HAVE_DRAGNDROP 1
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7625 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7626 }
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7627
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7628 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7629 else
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7630 with_dragndrop=no
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7631 echo "$ac_t""no" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7632 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7633 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
7634
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7635 echo "checking for LDAP" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7636 echo "configure:7637: checking for LDAP" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7637 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7638 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7639 echo "configure:7640: checking for ldap.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7640
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7641 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7642 #line 7643 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7643 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7644 #include <ldap.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7645 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7647 { (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7649 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7650 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7651 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7652 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7653 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7654 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7655 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7656 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7657 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7658 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7659 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7661 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7662 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7663 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7664 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7665 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7666 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7667 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7668 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7669 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7670 echo "configure:7671: checking for lber.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7671
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7672 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7673 #line 7674 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7674 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7675 #include <lber.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7676 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7678 { (eval echo configure:7679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
7679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7680 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7681 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7682 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7683 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7684 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7685 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7686 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7687 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7688 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7689 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7690 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7692 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7693 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7694 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7695 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7696 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7697 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7698 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7699 if test "$with_ldap" != "no"; then
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7700
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7701 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7702 echo "configure:7703: checking for ldap_search in -lldap" >&5
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7703 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7704
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7705 xe_check_libs=" -lldap "
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7706 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7707 #line 7708 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7708 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7709 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7710 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7711 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7712 char ldap_search();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7713
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7714 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7715 ldap_search()
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7716 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7717 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7719 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7720 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7721 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7722 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7723 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7724 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7725 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7726 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7727 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7728 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7729
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7731 echo "$ac_t""yes" 1>&6
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7732 with_ldap_nolber=yes
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7733 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7734 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7735 with_ldap_nolber=no
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7736 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7737
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7738
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7739 test "$with_ldap_nolber" = "no" && {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7740 xe_msg_checking="for ldap_open in -lldap"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7741 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7742 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7743 echo "configure:7744: checking "$xe_msg_checking"" >&5
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7744 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7745
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7746 xe_check_libs=" -lldap -llber"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7747 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7748 #line 7749 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7749 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7750 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7751 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7752 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7753 char ldap_open();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7754
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7755 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7756 ldap_open()
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7757 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7758 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7760 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7761 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7762 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7763 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7764 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7765 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7766 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7767 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7768 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7769 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7770
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7772 echo "$ac_t""yes" 1>&6
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7773 with_ldap_lber=yes
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7774 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7775 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7776 with_ldap_lber=no
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7777 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7778
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7779 }
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7780 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7781 xe_msg_checking="for ldap_open in -lldap"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7782 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7783 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7784 echo "configure:7785: checking "$xe_msg_checking"" >&5
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7785 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7786
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7787 xe_check_libs=" -lldap -llber -lkrb"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7788 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7789 #line 7790 "configure"
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7790 #include "confdefs.h"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7791 /* Override any gcc2 internal prototype to avoid an error. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7792 /* We use char because int might match the return type of a gcc2
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7793 builtin and then its argument prototype would still apply. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7794 char ldap_open();
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7795
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7796 int main() {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7797 ldap_open()
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7798 ; return 0; }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7799 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7800 if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7801 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7802 eval "ac_cv_lib_$ac_lib_var=yes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7803 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7804 echo "configure: failed program was:" >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7805 cat conftest.$ac_ext >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7806 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7807 eval "ac_cv_lib_$ac_lib_var=no"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7808 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7809 rm -f conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7810 xe_check_libs=""
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7811
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7813 echo "$ac_t""yes" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7814 with_ldap_krb=yes
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7815 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7816 echo "$ac_t""no" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7817 with_ldap_krb=no
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7818 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7819
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7820 }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7821 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7822 xe_msg_checking="for ldap_open in -lldap"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7823 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7824 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7825 echo "configure:7826: checking "$xe_msg_checking"" >&5
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7826 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7827
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7828 xe_check_libs=" -lldap -llber -lkrb -ldes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7829 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7830 #line 7831 "configure"
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7831 #include "confdefs.h"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7832 /* Override any gcc2 internal prototype to avoid an error. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7833 /* We use char because int might match the return type of a gcc2
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7834 builtin and then its argument prototype would still apply. */
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7835 char ldap_open();
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7836
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7837 int main() {
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7838 ldap_open()
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7839 ; return 0; }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7840 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7842 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7843 eval "ac_cv_lib_$ac_lib_var=yes"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7844 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7845 echo "configure: failed program was:" >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7846 cat conftest.$ac_ext >&5
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7847 rm -rf conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7848 eval "ac_cv_lib_$ac_lib_var=no"
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7849 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7850 rm -f conftest*
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7851 xe_check_libs=""
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7852
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7854 echo "$ac_t""yes" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7855 with_ldap_krbdes=yes
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7856 else
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7857 echo "$ac_t""no" 1>&6
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7858 with_ldap_krbdes=no
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7859 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7860
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7861 }
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7862 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
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7863 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7864 if test "$with_ldap" = "yes"; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7865 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7866 Defining HAVE_LDAP
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7867 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7868 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7869 #define HAVE_LDAP 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7870 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7871 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7872
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7873 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7874 echo " xemacs will be linked with \"eldap.o\""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7875 fi
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7876 if test "$with_ldap_nolber" = "yes" ; then
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7877 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7878 else
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7879 if test "$with_ldap_krb" = "yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7880 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7881 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7882 if test "$with_ldap_krbdes" = "yes" ; then
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7883 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7884 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
7885 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7886 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7887 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7888 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7889 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7890 do
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7892 echo "configure:7893: checking for $ac_func" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7893
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7894 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7895 #line 7896 "configure"
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7896 #include "confdefs.h"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7897 /* System header to define __stub macros and hopefully few prototypes,
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7898 which can conflict with char $ac_func(); below. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7899 #include <assert.h>
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7900 /* Override any gcc2 internal prototype to avoid an error. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7901 /* We use char because int might match the return type of a gcc2
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7902 builtin and then its argument prototype would still apply. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7903 char $ac_func();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7904
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7905 int main() {
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7906
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7907 /* The GNU C library defines this for functions which it implements
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7908 to always fail with ENOSYS. Some functions are actually named
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7909 something starting with __ and the normal name is an alias. */
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7911 choke me
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7912 #else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7913 $ac_func();
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7914 #endif
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7915
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7916 ; return 0; }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7917 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
418
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7919 rm -rf conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7920 eval "ac_cv_func_$ac_func=yes"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7921 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7922 echo "configure: failed program was:" >&5
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7923 cat conftest.$ac_ext >&5
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7924 rm -rf conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7925 eval "ac_cv_func_$ac_func=no"
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7926 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7927 rm -f conftest*
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7928
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7930 echo "$ac_t""yes" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7932 { test "$extra_verbose" = "yes" && cat << EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7933 Defining $ac_tr_func
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7934 EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7935 cat >> confdefs.h <<EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7936 #define $ac_tr_func 1
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7937 EOF
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7938 }
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7939
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7940 else
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7941 echo "$ac_t""no" 1>&6
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7942 fi
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7943 done
e804706bfb8c Import from CVS: tag r21-2-17
cvs
parents: 416
diff changeset
7944
404
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 400
diff changeset
7945 fi
2f8bb876ab1d Import from CVS: tag r21-2-32
cvs
parents: 400
diff changeset
7946
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7947 if test "$with_postgresql" != "no"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7948 echo "checking for PostgreSQL" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7949 echo "configure:7950: checking for PostgreSQL" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7950
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7951 for header_dir in "" "pgsql/" "postgresql/"; do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7952 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7953 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7954 echo "configure:7955: checking for ${header_dir}libpq-fe.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7955
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7956 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7957 #line 7958 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7958 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7959 #include <${header_dir}libpq-fe.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7960 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7962 { (eval echo configure:7963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7964 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7965 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7966 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7967 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7968 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7969 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7970 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7971 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7972 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7973 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7974 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7976 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7977 libpq_fe_h_file=${header_dir}libpq-fe.h; break
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7978 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7979 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7980 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7981
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7982 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7983
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7984 test -n "$libpq_fe_h_file" && {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7985 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7986 echo "configure:7987: checking for PQconnectdb in -lpq" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7987 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7988
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7989 xe_check_libs=" -lpq "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7990 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
7991 #line 7992 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7992 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7993 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7994 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7995 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7996 char PQconnectdb();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7997
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7998 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
7999 PQconnectdb()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8000 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8001 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8002 if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8003 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8004 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8005 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8006 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8007 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8008 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8009 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8010 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8011 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8012 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8013
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8015 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8016 have_libpq=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8017 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8018 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8019 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8020
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8021 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8022
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8023 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8024 with_postgresql=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8025 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8026 Defining HAVE_POSTGRESQL
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8027 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8028 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8029 #define HAVE_POSTGRESQL 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8030 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8031 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8032
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8033
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8034 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8035 echo "configure:8036: checking for PQconnectStart in -lpq" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8036 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8037
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8038 xe_check_libs=" -lpq "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8039 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8040 #line 8041 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8041 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8042 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8043 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8044 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8045 char PQconnectStart();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8046
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8047 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8048 PQconnectStart()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8049 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8050 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8052 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8053 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8054 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8055 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8056 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8057 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8058 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8059 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8060 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8061 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8062
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8064 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8065 with_postgresqlv7=yes;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8066 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8067 Defining HAVE_POSTGRESQLV7
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8068 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8069 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8070 #define HAVE_POSTGRESQLV7 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8071 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8072 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8073
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8074 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8075 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8076 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8077
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8078
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8079 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8080 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8081 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8082 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8083 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8084 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8085 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8086
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8087 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8088 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8089 echo " xemacs will be linked with \"postgresql.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8090 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8091 elif test "$with_postgresql" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8092 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8093 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8094 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8095
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8096
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8097 if test "$window_system" != "none"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8098 echo "checking for graphics libraries" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8099 echo "configure:8100: checking for graphics libraries" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8100
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8101 xpm_problem=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8102 if test -z "$with_xpm"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8103 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8104 echo "configure:8105: checking for Xpm - no older than 3.4f" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8105 xe_check_libs=-lXpm
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8106 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8107 #line 8108 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8108 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
8109 #define XPM_NUMBERS
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8110 #include <X11/xpm.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8111 int main(int c, char **v) {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8112 return c == 1 ? 0 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8113 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8114 XpmIncludeVersion < 30406 ? 2 : 0 ;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8115 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8117 then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8118 ./conftest dummy_arg; xpm_status=$?;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8119 if test "$xpm_status" = "0"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8120 with_xpm=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8121 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8122 with_xpm=no;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8123 if test "$xpm_status" = "1"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8124 xpm_problem="Xpm library version and header file version don't match!"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8125 elif test "$xpm_status" = "2"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8126 xpm_problem="Xpm library version is too old!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8127 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8128 xpm_problem="Internal xpm detection logic error!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8129 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8130 echo "
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8131 *** WARNING *** $xpm_problem
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8132 I'm not touching that with a 10-foot pole!
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8133 If you really want to use the installed version of Xpm, rerun
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8134 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8135 fi
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8136 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8137 conftest_rc="$?"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8138 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8139 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8140 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8141 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8142 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
8143 rm -fr conftest*
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8144 xe_check_libs=
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8145 echo "$ac_t""$with_xpm" 1>&6
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8146 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8147 if test "$with_xpm" = "yes"; then
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
8148 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8149 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8150 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8151 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8152 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8153 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8154 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8155
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8156 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8157 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8158 echo "configure:8159: checking for \"FOR_MSW\" xpm" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8159 xe_check_libs=-lXpm
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8160 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8161 #line 8162 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8162 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8163
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8164 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8165 XpmCreatePixmapFromData()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8166 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8167 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8168 if { (eval echo configure:8169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8169 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8170 xpm_for_msw=no
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8171 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8172 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8173 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8174 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8175 xpm_for_msw=yes
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8176 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8177 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8178 xe_check_libs=
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8179 echo "$ac_t""$xpm_for_msw" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8180 if test "$xpm_for_msw" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8181 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8182 Defining FOR_MSW
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8183 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8184 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8185 #define FOR_MSW 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8186 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8187 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8188
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8189 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8190 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8191
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8192 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8193 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8194 echo "configure:8195: checking for compface.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8195
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8196 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8197 #line 8198 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8198 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8199 #include <compface.h>
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8200 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8202 { (eval echo configure:8203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8204 if test -z "$ac_err"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8205 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8206 eval "ac_cv_header_$ac_safe=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8207 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8208 echo "$ac_err" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8209 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8210 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8211 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8212 eval "ac_cv_header_$ac_safe=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8213 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8214 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8216 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8217 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8218 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8219 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8220 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8221 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8222 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8223 test -z "$with_xface" && {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8224 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8225 echo "configure:8226: checking for UnGenFace in -lcompface" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8226 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8227
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8228 xe_check_libs=" -lcompface "
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8229 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8230 #line 8231 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8231 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8232 /* Override any gcc2 internal prototype to avoid an error. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8233 /* We use char because int might match the return type of a gcc2
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8234 builtin and then its argument prototype would still apply. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8235 char UnGenFace();
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8236
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8237 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8238 UnGenFace()
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8239 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8240 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8242 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8243 eval "ac_cv_lib_$ac_lib_var=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8244 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8245 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8246 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8247 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8248 eval "ac_cv_lib_$ac_lib_var=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8249 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8250 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8251 xe_check_libs=""
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8252
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8254 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8255 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8256 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8257 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8258 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8259 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8260
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8261 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8262 test -z "$with_xface" && with_xface=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8263 if test "$with_xface" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8264 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8265 Defining HAVE_XFACE
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8266 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8267 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8268 #define HAVE_XFACE 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8269 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8270 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8271
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8272 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8273 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
8274
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8275 if test "$with_gif" != "no"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8276 with_gif="yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8277 { test "$extra_verbose" = "yes" && cat << \EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8278 Defining HAVE_GIF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8279 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8280 cat >> confdefs.h <<\EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8281 #define HAVE_GIF 1
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8282 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8283 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8284
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8285 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8286 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8287 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8288 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8289
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8290 if test "$with_png $with_tiff" != "no no"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8291
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8292 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8293 echo "configure:8294: checking for inflate in -lc" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8294 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8295
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8296 xe_check_libs=" -lc "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8297 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8298 #line 8299 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8299 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8300 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8301 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8302 builtin and then its argument prototype would still apply. */
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8303 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8304
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8305 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8306 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8307 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8308 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8310 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8311 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8312 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8313 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8314 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8315 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8316 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8317 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8318 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8319 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8320
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8322 echo "$ac_t""yes" 1>&6
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8323 :
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8324 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8325 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8326
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8327 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8328 echo "configure:8329: checking for inflate in -lz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8329 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8330
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8331 xe_check_libs=" -lz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8332 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8333 #line 8334 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8334 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8335 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8336 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8337 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8338 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8339
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8340 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8341 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8342 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8343 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8345 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8346 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8347 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8348 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8349 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8350 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8351 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8352 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8353 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8354 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8355
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8357 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8358 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8359 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8360 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8361
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8362 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8363 echo "configure:8364: checking for inflate in -lgz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8364 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8365
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8366 xe_check_libs=" -lgz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8367 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8368 #line 8369 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8369 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8370 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8371 /* We use char because int might match the return type of a gcc2
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8372 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8373 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8374
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8375 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8376 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8377 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8378 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8379 if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8380 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8381 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8382 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8383 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8384 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8385 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8386 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8387 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8388 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8389 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8390
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8392 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8393 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8394 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8395 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8396 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8397
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8398
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8399 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8400
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8401
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8402 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8403
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8404
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8405 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8406
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8407 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8408 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8409 echo "configure:8410: checking for jpeglib.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8410
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8411 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8412 #line 8413 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8413 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8414 #include <jpeglib.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8415 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8419 if test -z "$ac_err"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8420 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8421 eval "ac_cv_header_$ac_safe=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8422 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8423 echo "$ac_err" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8424 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8425 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8426 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8427 eval "ac_cv_header_$ac_safe=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8428 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8429 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8431 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8432 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8433 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8434 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8435 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8436 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8437 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8438 test -z "$with_jpeg" && {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8439 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8440 echo "configure:8441: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8441 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8442
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8443 xe_check_libs=" -ljpeg "
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8444 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8445 #line 8446 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8446 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8447 /* Override any gcc2 internal prototype to avoid an error. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8448 /* We use char because int might match the return type of a gcc2
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8449 builtin and then its argument prototype would still apply. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8450 char jpeg_destroy_decompress();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8451
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8452 int main() {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8453 jpeg_destroy_decompress()
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8454 ; return 0; }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8455 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8457 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8458 eval "ac_cv_lib_$ac_lib_var=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8459 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8460 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8461 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8462 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8463 eval "ac_cv_lib_$ac_lib_var=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8464 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8465 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8466 xe_check_libs=""
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8467
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8469 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8470 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8471 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8472 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8473 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8474 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8475
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8476 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8477 test -z "$with_jpeg" && with_jpeg=yes
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8478 if test "$with_jpeg" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8479 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8480 Defining HAVE_JPEG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8481 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8482 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8483 #define HAVE_JPEG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8484 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8485 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8486
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8487 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8488 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8489
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8490 png_problem=""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8491 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8492 echo "configure:8493: checking for pow" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8493
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8494 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8495 #line 8496 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8496 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8497 /* System header to define __stub macros and hopefully few prototypes,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8498 which can conflict with char pow(); below. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8499 #include <assert.h>
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8500 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8501 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8502 builtin and then its argument prototype would still apply. */
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8503 char pow();
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8504
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8505 int main() {
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8506
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8507 /* The GNU C library defines this for functions which it implements
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8508 to always fail with ENOSYS. Some functions are actually named
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8509 something starting with __ and the normal name is an alias. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8510 #if defined (__stub_pow) || defined (__stub___pow)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8511 choke me
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8512 #else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8513 pow();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8514 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8515
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8516 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8517 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8519 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8520 eval "ac_cv_func_pow=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8521 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8522 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8523 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8524 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8525 eval "ac_cv_func_pow=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8526 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8527 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8528
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8529 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8530 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8531 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8532 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8533 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8534 with_png=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8535 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8536 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8537 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8538 echo $ac_n "checking for png.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8539 echo "configure:8540: checking for png.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8540
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8541 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8542 #line 8543 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8543 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8544 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8545 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8547 { (eval echo configure:8548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8549 if test -z "$ac_err"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8550 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8551 eval "ac_cv_header_$ac_safe=yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8552 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8553 echo "$ac_err" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8554 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8555 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8556 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8557 eval "ac_cv_header_$ac_safe=no"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8558 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8559 rm -f conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8561 echo "$ac_t""yes" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8562 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8563 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8564 echo "$ac_t""no" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8565 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8566 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8567 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8568 test -z "$with_png" && {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8569 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8570 echo "configure:8571: checking for png_read_image in -lpng" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8571 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8572
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8573 xe_check_libs=" -lpng "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8574 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8575 #line 8576 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8576 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8577 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8578 /* We use char because int might match the return type of a gcc2
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8579 builtin and then its argument prototype would still apply. */
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8580 char png_read_image();
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8581
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8582 int main() {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8583 png_read_image()
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8584 ; return 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8585 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8587 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8588 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8589 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8590 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8591 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8592 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8593 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8594 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8595 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8596 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8597
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8599 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8600 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8601 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8602 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8603 with_png=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8604 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8605
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8606 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8607 if test -z "$with_png"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8608 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8609 echo "configure:8610: checking for workable png version information" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8610 xe_check_libs="-lpng -lz"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8611 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8612 #line 8613 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8613 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8614 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8615 int main(int c, char **v) {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8616 if (c == 1) return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8617 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8618 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8619 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8621 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8622 ./conftest dummy_arg; png_status=$?;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8623 if test "$png_status" = "0"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8624 with_png=yes;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8625 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8626 with_png=no;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8627 if test "$png_status" = "1"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8628 png_problem="PNG library version and header file don't match!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8629 elif test "$png_status" = "2"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8630 png_problem="PNG library version too old (pre 1.0.2)!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8631 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8632 echo "
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8633 *** WARNING *** $png_problem
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8634 I'm not touching that with a 10-foot pole!
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8635 If you really want to use the installed version of libPNG, rerun
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8636 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8637 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8638 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8639 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8640 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8641 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8642 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8643 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8644 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8645 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8646 xe_check_libs=
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8647 echo "$ac_t""$with_png" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
8648 fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8649 if test "$with_png" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8650 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8651 Defining HAVE_PNG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8652 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8653 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8654 #define HAVE_PNG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8655 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8656 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8657
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8658 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8659 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8660
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8661 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8662 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8663 echo "configure:8664: checking for tiffio.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8664
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8665 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8666 #line 8667 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8667 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8668 #include <tiffio.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8669 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
8672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8673 if test -z "$ac_err"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8674 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8675 eval "ac_cv_header_$ac_safe=yes"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8676 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8677 echo "$ac_err" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8678 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8679 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8680 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8681 eval "ac_cv_header_$ac_safe=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8682 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8683 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8685 echo "$ac_t""yes" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8686 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8687 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8688 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8689 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8690 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8691 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8692 test -z "$with_tiff" && {
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8693 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8694 echo "configure:8695: checking for TIFFClientOpen in -ltiff" >&5
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8695 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8696
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8697 xe_check_libs=" -ltiff "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8698 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8699 #line 8700 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8700 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8701 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8702 /* We use char because int might match the return type of a gcc2
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8703 builtin and then its argument prototype would still apply. */
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8704 char TIFFClientOpen();
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8705
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8706 int main() {
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8707 TIFFClientOpen()
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8708 ; return 0; }
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
8709 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8711 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8712 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8713 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8714 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8715 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8716 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8717 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8718 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8719 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8720 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8721
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
8723 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8724 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8725 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8726 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8727 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8728 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8729
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8730 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8731 test -z "$with_tiff" && with_tiff=yes
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8732 if test "$with_tiff" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8733 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8734 Defining HAVE_TIFF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8735 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8736 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8737 #define HAVE_TIFF 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8738 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8739 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8740
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8741 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8742 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8743 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8744
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8745
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8746 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8747 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8748 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8749 echo "configure:8750: checking for compface.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8750
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8751 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8752 #line 8753 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8753 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8754 #include <compface.h>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8755 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8757 { (eval echo configure:8758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8759 if test -z "$ac_err"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8760 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8761 eval "ac_cv_header_$ac_safe=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8762 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8763 echo "$ac_err" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8764 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8765 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8766 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8767 eval "ac_cv_header_$ac_safe=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8768 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8769 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8771 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8772 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8773 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8774 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8775 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8776 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8777 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8778 test -z "$with_xface" && {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8779 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8780 echo "configure:8781: checking for UnGenFace in -lcompface" >&5
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8781 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8782
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8783 xe_check_libs=" -lcompface "
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8784 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8785 #line 8786 "configure"
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8786 #include "confdefs.h"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8787 /* Override any gcc2 internal prototype to avoid an error. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8788 /* We use char because int might match the return type of a gcc2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8789 builtin and then its argument prototype would still apply. */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8790 char UnGenFace();
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8791
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8792 int main() {
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8793 UnGenFace()
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8794 ; return 0; }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8795 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8797 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8798 eval "ac_cv_lib_$ac_lib_var=yes"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8799 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8800 echo "configure: failed program was:" >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8801 cat conftest.$ac_ext >&5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8802 rm -rf conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8803 eval "ac_cv_lib_$ac_lib_var=no"
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8804 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8805 rm -f conftest*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8806 xe_check_libs=""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8807
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8809 echo "$ac_t""yes" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8810 :
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8811 else
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8812 echo "$ac_t""no" 1>&6
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8813 with_xface=no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8814 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8815
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8816 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8817 test -z "$with_xface" && with_xface=yes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8818 if test "$with_xface" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8819 { test "$extra_verbose" = "yes" && cat << \EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8820 Defining HAVE_XFACE
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8821 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8822 cat >> confdefs.h <<\EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8823 #define HAVE_XFACE 1
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8824 EOF
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8825 }
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8826
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8827 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8828 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8829 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8830
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8831
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
8832
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8833 if test "$with_x11" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8834
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
8835 echo "checking for X11 graphics libraries" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8836 echo "configure:8837: checking for X11 graphics libraries" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8837
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8838 echo "checking for the Athena widgets" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8839 echo "configure:8840: checking for the Athena widgets" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8840
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8841 case "$with_athena" in
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8842 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8843 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8844 "next") athena_variant=neXtaw athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8845 "95") athena_variant=Xaw95 athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8846 "xpm") athena_variant=XawXpm athena_3d=yes ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8847 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8848 esac
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8849
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8850 if test "$athena_3d" = "no"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8851
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8852 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8853 echo "configure:8854: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8854 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8855
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8856 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8857 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8858 #line 8859 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8859 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8860 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8861 /* We use char because int might match the return type of a gcc2
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8862 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8863 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8864
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8865 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8866 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8867 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8868 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8870 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8871 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8872 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8873 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8874 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8875 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8876 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8877 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8878 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8879 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8880
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8882 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8883
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8884 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8885 echo "configure:8886: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8886 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8887
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8888 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8889 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8890 #line 8891 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8891 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8892 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8893 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8894 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8895 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8896
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8897 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8898 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8899 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8900 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8902 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8903 eval "ac_cv_lib_$ac_lib_var=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8904 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8905 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8906 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8907 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8908 eval "ac_cv_lib_$ac_lib_var=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8909 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8910 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8911 xe_check_libs=""
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8912
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8914 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8915 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8916 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8917 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8918 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8919 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8920
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8921
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8922
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8923 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8924 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8925 echo "configure: warning: Could not find an Athena widget library." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8926 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8927
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8928
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8929 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8930
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8931 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8932 echo "configure:8933: checking for threeDClassRec in -l$athena_variant" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8933 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8934
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8935 xe_check_libs=" -l$athena_variant "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8936 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8937 #line 8938 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8938 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8939 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8940 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8941 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8942 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8943
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8944 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8945 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8946 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8947 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8949 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8950 eval "ac_cv_lib_$ac_lib_var=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8951 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8952 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8953 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8954 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8955 eval "ac_cv_lib_$ac_lib_var=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8956 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8957 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8958 xe_check_libs=""
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8959
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8961 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8962 athena_lib=$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8963 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8964 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8965 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8966 echo "configure:8967: checking for threeDClassRec in -lXaw" >&5
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8967 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8968
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8969 xe_check_libs=" -lXaw "
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8970 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8971 #line 8972 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8972 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8973 /* Override any gcc2 internal prototype to avoid an error. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8974 /* We use char because int might match the return type of a gcc2
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8975 builtin and then its argument prototype would still apply. */
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8976 char threeDClassRec();
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8977
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8978 int main() {
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8979 threeDClassRec()
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8980 ; return 0; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8981 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
8982 if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8983 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8984 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8985 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8986 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8987 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8988 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8989 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8990 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8991 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8992 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8993
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8995 echo "$ac_t""yes" 1>&6
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
8996 athena_lib=Xaw;
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
8997 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8998
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
8999 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9000 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9001 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9002 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9003
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9004
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9005 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9006
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9007
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9008 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9009
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9010 if test "$athena_3d" = "no"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9011 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9012 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9013 echo "configure:9014: checking for X11/Xaw/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9014
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9015 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9016 #line 9017 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9017 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9018 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9019 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9021 { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9023 if test -z "$ac_err"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9024 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9025 eval "ac_cv_header_$ac_safe=yes"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9026 else
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9027 echo "$ac_err" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9028 echo "configure: failed program was:" >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9029 cat conftest.$ac_ext >&5
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9030 rm -rf conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9031 eval "ac_cv_header_$ac_safe=no"
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9032 fi
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9033 rm -f conftest*
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9035 echo "$ac_t""yes" 1>&6
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9036 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9037 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9038 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9039 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9040 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9041 echo "configure:9042: checking for X11/Xaw/XawInit.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9042
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9043 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9044 #line 9045 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9045 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9046 #include <X11/Xaw/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9047 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9051 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9052 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9053 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9054 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9055 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9056 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9057 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9058 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9059 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9060 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9061 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9063 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9064 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9065 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9066 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9067 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9068 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9069
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9070 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9071
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9072 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9073 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9074 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9075 echo "configure:9076: checking for X11/$athena_variant/XawInit.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9076
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9077 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9078 #line 9079 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9079 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9080 #include <X11/$athena_variant/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9081 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9083 { (eval echo configure:9084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9085 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9086 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9087 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9088 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9089 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9090 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9091 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9092 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9093 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9094 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9095 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9097 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9098 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9099 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9100 echo "configure:9101: checking for X11/$athena_variant/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9101
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9102 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9103 #line 9104 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9104 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9105 #include <X11/$athena_variant/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9106 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9108 { (eval echo configure:9109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9110 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9111 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9112 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9113 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9114 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9115 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9116 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9117 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9118 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9119 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9120 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9122 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9123 athena_h_path=X11/$athena_variant
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9124 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9125 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9126 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9127
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9128 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9129 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9130 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9131
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9132
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9133 if test -z "$athena_h_path"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9134 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9135 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9136 echo "configure:9137: checking for $athena_variant/XawInit.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9137
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9138 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9139 #line 9140 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9140 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9141 #include <$athena_variant/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9142 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9146 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9147 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9148 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9149 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9150 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9151 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9152 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9153 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9154 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9155 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9156 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9158 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9159 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9160 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9161 echo "configure:9162: checking for $athena_variant/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9162
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9163 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9164 #line 9165 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9165 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9166 #include <$athena_variant/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9167 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9169 { (eval echo configure:9170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9171 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9172 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9173 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9174 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9175 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9176 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9177 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9178 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9179 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9180 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9181 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9183 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9184 athena_h_path=$athena_variant
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9185 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9186 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9187 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9188
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9189 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9190 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9191 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9192
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9193 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9194
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9195 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9196 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9197 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9198 echo "configure:9199: checking for X11/Xaw3d/XawInit.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9199
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9200 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9201 #line 9202 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9202 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9203 #include <X11/Xaw3d/XawInit.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9204 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9206 { (eval echo configure:9207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9208 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9209 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9210 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9211 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9212 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9213 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9214 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9215 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9216 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9217 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9218 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9220 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9221 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9222 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9223 echo "configure:9224: checking for X11/Xaw3d/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9224
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9225 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9226 #line 9227 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9227 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9228 #include <X11/Xaw3d/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9229 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9231 { (eval echo configure:9232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9233 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9234 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9235 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9236 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9237 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9238 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9239 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9240 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9241 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9242 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9243 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9245 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9246
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9247 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9248 athena_h_path=X11/Xaw3d
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9249
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9250 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9251 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9252 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9253
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9254 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9255 echo "$ac_t""no" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9256 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9257
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9258 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9259
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9260 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9261 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9262 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9263 echo "configure:9264: checking for Xaw3d/XawInit.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9264
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9265 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9266 #line 9267 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9267 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9268 #include <Xaw3d/XawInit.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9269 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9271 { (eval echo configure:9272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9273 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9274 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9275 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9276 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9277 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9278 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9279 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9280 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9281 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9282 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9283 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9285 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9286 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9287 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9288 echo "configure:9289: checking for Xaw3d/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9289
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9290 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9291 #line 9292 "configure"
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9292 #include "confdefs.h"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9293 #include <Xaw3d/ThreeD.h>
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9294 EOF
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9296 { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9298 if test -z "$ac_err"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9299 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9300 eval "ac_cv_header_$ac_safe=yes"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9301 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9302 echo "$ac_err" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9303 echo "configure: failed program was:" >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9304 cat conftest.$ac_ext >&5
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9305 rm -rf conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9306 eval "ac_cv_header_$ac_safe=no"
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9307 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9308 rm -f conftest*
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9310 echo "$ac_t""yes" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9311
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9312 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9313 athena_h_path=Xaw3d
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9314
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9315 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9316 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9317 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9318
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9319 else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9320 echo "$ac_t""no" 1>&6
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9321 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9322
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9323 fi
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9324
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9325 if test -z "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9326 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9327 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9328 echo "configure:9329: checking for X11/Xaw/ThreeD.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9329
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9330 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9331 #line 9332 "configure"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9332 #include "confdefs.h"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9333 #include <X11/Xaw/ThreeD.h>
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9334 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9336 { (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9338 if test -z "$ac_err"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9339 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9340 eval "ac_cv_header_$ac_safe=yes"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9341 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9342 echo "$ac_err" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9343 echo "configure: failed program was:" >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9344 cat conftest.$ac_ext >&5
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9345 rm -rf conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9346 eval "ac_cv_header_$ac_safe=no"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9347 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9348 rm -f conftest*
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9350 echo "$ac_t""yes" 1>&6
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9351
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9352 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9353 athena_h_path=X11/Xaw
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9354
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9355 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9356 echo "$ac_t""no" 1>&6
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9357 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9358 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9359
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9360 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9361 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9362
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9363 if test -n "$athena_lib" -a -n "$athena_h_path"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9364 have_xaw=yes
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9365 else
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9366 have_xaw=no
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9367 fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9368
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9369 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9370 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9371 echo "configure:9372: checking for Xm/Xm.h" >&5
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9372
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9373 cat > conftest.$ac_ext <<EOF
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9374 #line 9375 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9375 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9376 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9377 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9379 { (eval echo configure:9380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9381 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9382 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9383 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9384 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9385 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9386 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9387 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9388 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9389 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9390 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9391 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9393 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9394
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9395 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9396 echo "configure:9397: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9397 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9398
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9399 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9400 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9401 #line 9402 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9402 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9403 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9404 /* We use char because int might match the return type of a gcc2
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9405 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9406 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9407
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9408 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9409 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9410 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9411 EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9413 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9414 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9415 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9416 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9417 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9418 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9419 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9420 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9421 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9422 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9423
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9425 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9426 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9427 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9428 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9429 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9430 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9431
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9432
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9433 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9434 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9435 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9436 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9437
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9438
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9439 if test "$have_motif" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9440 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9441 echo "configure:9442: checking for Lesstif" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9442 cat > conftest.$ac_ext <<EOF
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
9443 #line 9444 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9444 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9445 #include <Xm/Xm.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9446 #ifdef LESSTIF_VERSION
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9447 yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9448 #endif
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9449
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9450 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9452 egrep "yes" >/dev/null 2>&1; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9453 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9454 have_lesstif=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9455 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9456 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9457 have_lesstif=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9458 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9459 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9460
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9461 echo "$ac_t""$have_lesstif" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9462 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9463
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
9464 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9465
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9466 case "$with_menubars" in "" | "yes" | "athena" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9467 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9468 esac
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
9469 case "$with_dialogs" in "" | "yes" | "lucid" )
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9470 if test "$have_motif" = "yes"; then with_dialogs="motif"
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9471 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9472 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9473 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9474 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9475 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9476 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9477 esac
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9478 case "$with_widgets" in "" | "yes" | "lucid")
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9479 if test "$have_motif" = "yes"; then with_widgets="motif"
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9480 elif test "$have_xaw" = "yes"; then with_widgets="athena"
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9481 else with_widgets=no
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9482 fi ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9483 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9484
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9485 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
9486
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9487 case "$all_widgets" in
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9488 *athena* )
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9489 if test "$have_xaw" != "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9490 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9491 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9492
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9493 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9494
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9495 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9496
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9497 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9498 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9499 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9500 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9501 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9502 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9503 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9504
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9505 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9506 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9507 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9508 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9509 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9510 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9511 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9512
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9513 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9514 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9515 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9516 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9517 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9518 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9519 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9520
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9521 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9522 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9523 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9524 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9525 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9526 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9527 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9528
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9529 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9530 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9531 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9532 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9533 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9534 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9535 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9536
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9537 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9538 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9539 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9540 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9541 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9542 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9543 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9544
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9545 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9546 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9547 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9548 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9549 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9550 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9551 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9552
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9553 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9554 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9555 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9556 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9557 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9558 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9559 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9560
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9561 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9562 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9563 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9564 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9565 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9566 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9567 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9568
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9569 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9570 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9571 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9572 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9573 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9574 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9575 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9576
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9577
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9578 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9579 Defining LWLIB_USES_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9580 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9581 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9582 #define LWLIB_USES_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9583 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9584 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9585
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9586 { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9587 Defining NEED_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9588 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9589 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9590 #define NEED_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9591 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9592 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9593
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
9594 need_athena="yes"
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9595
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9596 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9597 { test "$extra_verbose" = "yes" && cat << \EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9598 Defining HAVE_ATHENA_3D
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9599 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9600 cat >> confdefs.h <<\EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9601 #define HAVE_ATHENA_3D 1
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9602 EOF
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9603 }
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9604
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9605 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9606 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9607 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9608
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9609 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9610 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9611 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9612 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9613 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9614 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9615 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9616 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9617
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9618 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9619 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9620 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9621 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9622 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9623 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9624 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9625
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9626 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9627 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9628 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9629
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9630 test "$with_menubars" = "lucid" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
9631 test "$with_menubars" = "motif" && lwlib_objs="$lwlib_objs xlwmenu.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwmenu.o\" to \$lwlib_objs"; fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9632 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9633 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9634 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9635 case "$with_widgets" in athena* )
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9636 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;;
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9637 esac
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9638 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9639 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9640 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9641 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9642 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9643 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9644 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9645 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9646
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9647 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9648 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9649
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9650
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
9651
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9652 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9653 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9654 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9655 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9656 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9658 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9659
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9660 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9661 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9662 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9663 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9664 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9665 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9666 }
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9667
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9668
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9669 if test "$athena_3d" = "yes"; then
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9670 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9671 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9672 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9673 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9674 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9675 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9676 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9677
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9678 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9679 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9680 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9681 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9682 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9683 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9684 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9685
434
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9686 fi
9d177e8d4150 Import from CVS: tag r21-2-25
cvs
parents: 432
diff changeset
9687
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9688 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9689 Defining LWLIB_WIDGETS_ATHENA
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9690 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9691 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9692 #define LWLIB_WIDGETS_ATHENA 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9693 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9694 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9695 ;; esac
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9696 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9697 { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9698 Defining LWLIB_TABS_LUCID
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9699 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9700 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9701 #define LWLIB_TABS_LUCID 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9702 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9703 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9704
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9705
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9706 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9707 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9708 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9709 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9710 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9711 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9712 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9713
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9714 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9715 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9716 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9717 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9718 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9719 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9720 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9721
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9722 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9723 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9724 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9725 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9726 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9727 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9728 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9729
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9730 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9731 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9732 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9733 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9734 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9735 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9736 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9737
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9738 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9739 Defining HAVE_WIDGETS
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9740 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9741 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9742 #define HAVE_WIDGETS 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9743 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9744 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9745
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9746
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9747 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9748 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9749 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9750 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9751 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9752 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9753 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9755 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9756 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9757 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9758 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9759 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9760 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9761 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9762
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9763
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9764 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9765 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9766 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9767 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9768 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9769 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9770 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9771
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9772 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9773 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9774 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9775 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9776 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9777 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9778 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9779
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9780 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9781 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9782 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9783 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9784 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9785 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9786 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9787
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9788 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9789 Defining LWLIB_WIDGETS_MOTIF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9790 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9791 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9792 #define LWLIB_WIDGETS_MOTIF 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9793 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9794 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
9795
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
9796
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9797 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9798 echo " xemacs will be linked with \"menubar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9799 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9800 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9801 echo " xemacs will be linked with \"scrollbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9802 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9803 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9804 echo " xemacs will be linked with \"dialog.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9805 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9806 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9807 echo " xemacs will be linked with \"toolbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9808 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9809
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9810 if test "$with_gtk" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9811 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9812 echo " xemacs will be linked with \"menubar-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9813 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9814 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9815 echo " xemacs will be linked with \"scrollbar-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9816 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9817 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9818 echo " xemacs will be linked with \"dialog-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9819 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9820 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9821 echo " xemacs will be linked with \"toolbar-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9822 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9823 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9824 echo " xemacs will be linked with \"gui-gtk.o\""
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9825 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9826 fi
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
9827
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9828 if test "$with_x11" = "yes"; then
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9829 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9830 echo " xemacs will be linked with \"menubar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9831 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9832 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9833 echo " xemacs will be linked with \"scrollbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9834 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9835 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9836 echo " xemacs will be linked with \"dialog-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9837 fi
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
9838 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9839 echo " xemacs will be linked with \"toolbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9840 fi
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9841 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9842 echo " xemacs will be linked with \"gui-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9843 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9844 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9845
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9846
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9847 test -z "$with_mule" && with_mule=no
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9848
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9849
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9850 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9851 echo "configure: warning: --with-file-coding forced to \`yes': Required for Mule support" 1>&2
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9852 with_file_coding=yes
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
9853 fi
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9854
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9855 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9856 { test "$extra_verbose" = "yes" && cat << \EOF
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9857 Defining FILE_CODING
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9858 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9859 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9860 #define FILE_CODING 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9861 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9862 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9863
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9864 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9865 echo " xemacs will be linked with \"file-coding.o\""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9866 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9867 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9868
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9869 test -z "$with_file_coding" && with_file_coding=no
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9870
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9871 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9872 echo "checking for Mule-related features" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9873 echo "configure:9874: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9874 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9875 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9876 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9877 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9878 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9879 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9880 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9881
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
9882 { test "$extra_verbose" = "yes" && cat << \EOF
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9883 Defining FILE_CODING
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9884 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9885 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9886 #define FILE_CODING 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9887 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9888 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
9889
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9890 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9891 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9892 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9893
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9894 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9895 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9898 echo "configure:9899: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9899
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9900 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9901 #line 9902 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9902 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9903 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9904 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9906 { (eval echo configure:9907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
9907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9908 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9909 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9910 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9911 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9912 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9913 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9914 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9915 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9916 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9917 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9918 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9920 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9922 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9923 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9924 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9925 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9926 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9927 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9928 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9929
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9930 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9931 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9932 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9933 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9934
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9935
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9936 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9937 echo "configure:9938: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9938 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9939
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9940 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9941 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9942 #line 9943 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9943 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9944 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9945 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9946 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9947 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9948
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9949 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9950 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9951 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9952 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9954 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9955 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9956 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9957 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9958 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9959 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9960 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9961 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9962 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9963 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9964
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9966 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9967 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9969 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9970 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9971 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9972 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9973 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9974 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9975 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9976
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9977 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9978
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9979 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9980 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9981 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9982
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9983
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9985 echo "checking for Mule input methods" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9986 echo "configure:9987: checking for Mule input methods" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9987 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9988 echo "checking for XIM" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9989 echo "configure:9990: checking for XIM" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9990
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9991 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9992 echo "configure:9993: checking for XOpenIM in -lX11" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9993 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9994
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9995 xe_check_libs=" -lX11 "
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9996 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
9997 #line 9998 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9998 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9999 /* Override any gcc2 internal prototype to avoid an error. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10000 /* We use char because int might match the return type of a gcc2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10001 builtin and then its argument prototype would still apply. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10002 char XOpenIM();
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10003
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10004 int main() {
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10005 XOpenIM()
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10006 ; return 0; }
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10007 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10009 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10010 eval "ac_cv_lib_$ac_lib_var=yes"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10011 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10012 echo "configure: failed program was:" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10013 cat conftest.$ac_ext >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10014 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10015 eval "ac_cv_lib_$ac_lib_var=no"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10016 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10017 rm -f conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10018 xe_check_libs=""
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10019
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10021 echo "$ac_t""yes" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10022 with_xim=xlib
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10023 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10024 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10025 with_xim=no
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10026 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10027
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10028
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10029 if test "$have_motif $have_lesstif" = "yes no"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10030
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10031 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10032 echo "configure:10033: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10033 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10034
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10035 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10036 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10037 #line 10038 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10038 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10039 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10040 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10041 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10042 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10043
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10044 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10045 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10046 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10047 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10049 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10050 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10051 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10052 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10053 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10054 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10055 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10056 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10057 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10058 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10059
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10061 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10062 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10063 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10064 echo "$ac_t""no" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10065 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10066
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10067
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10068 fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10069 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10070 if test "$with_xim" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10071 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10072 Defining HAVE_XIM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10073 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10074 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10075 #define HAVE_XIM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10076 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10077 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10078
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10079 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10080 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10081 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10082 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10083 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10084 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10085 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10086 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10087
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10088 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10089 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10090 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10091 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10092 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10093 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10094 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10095 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10096 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10097 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10098 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10099 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10100
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10101 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10102 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10103 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10104 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10105 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10106 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10107 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10108 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10109 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10110
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10111 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10112 echo "checking for XFontSet" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10113 echo "configure:10114: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10114
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10115 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10116 echo "configure:10117: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10117 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10118
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10119 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10120 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10121 #line 10122 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10122 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10123 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10124 /* We use char because int might match the return type of a gcc2
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10125 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10126 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10127
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10128 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10129 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10130 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10131 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10133 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10134 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10135 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10136 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10137 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10138 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10139 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10140 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10141 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10142 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10143
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10145 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10146 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10147 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10148 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10149 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10150 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10151
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10152
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10153 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10154 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10155 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10156 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10157 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10158 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10159 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10160 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10161
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10162 if test "$with_xim" = "no" ; then
450
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
10163 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
98528da0b7fc Import from CVS: tag r21-2-40
cvs
parents: 448
diff changeset
10164 echo " xemacs will be linked with \"input-method-xlib.o\""
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10165 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
10166 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
10167 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10168 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10169 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10170 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10171 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10172 echo "configure:10173: checking for wnn/jllib.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10173
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10174 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10175 #line 10176 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10176 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10177 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10178 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10182 if test -z "$ac_err"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10183 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10184 eval "ac_cv_header_$ac_safe=yes"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10185 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10186 echo "$ac_err" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10187 echo "configure: failed program was:" >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10188 cat conftest.$ac_ext >&5
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10189 rm -rf conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10190 eval "ac_cv_header_$ac_safe=no"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10191 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10192 rm -f conftest*
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10194 echo "$ac_t""yes" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10195 :
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10196 else
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10197 echo "$ac_t""no" 1>&6
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10198 with_wnn=no
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10199 fi
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10200 }
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10201 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10202 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10203 echo "configure:10204: checking for wnn/commonhd.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10204
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10205 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10206 #line 10207 "configure"
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10207 #include "confdefs.h"
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10208 #include <wnn/commonhd.h>
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10209 EOF
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10211 { (eval echo configure:10212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10213 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10214 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10215 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10216 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10217 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10218 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10219 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10220 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10221 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10222 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10223 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10225 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10226 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10227 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10228 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10229 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10230 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10231 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10232 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10233 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10234 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10236 echo "configure:10237: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10237
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10238 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10239 #line 10240 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10240 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10241 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10242 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10243 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10244 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10245 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10246 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10247 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10248
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10249 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10250
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10251 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10252 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10253 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10255 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10256 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10257 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10258 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10259
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10260 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10261 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10263 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10264 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10265 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10266 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10267 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10268 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10269 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10270 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10271 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10272
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10274 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10276 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10277 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10278 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10279 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10280 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10281 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10282 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10283
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10284 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10285 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10286 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10287 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10288
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10289 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10290 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10291 echo "configure:10292: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10292 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10293
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10294 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10295 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10296 #line 10297 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10297 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10298 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10299 /* We use char because int might match the return type of a gcc2
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10300 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10301 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10302
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10303 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10304 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10305 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10306 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10308 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10309 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10310 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10311 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10312 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10313 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10314 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10315 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10316 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10317 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10318
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10320 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10321 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10323 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10324 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10325 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10326 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10327 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10328 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10329 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10330
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10331 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10332
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10333 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10334 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10335 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10336
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10337 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
10338 fi
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10339 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10340
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10341 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10342 echo "configure:10343: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10343 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10344
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10345 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10346 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10347 #line 10348 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10348 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10349 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10350 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10351 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10352 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10353
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10354 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10355 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10356 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10357 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10359 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10360 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10361 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10362 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10363 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10364 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10365 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10366 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10367 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10368 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10369
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10371 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10372 libwnn=wnn
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10373 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10374 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10375 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10376 echo "configure:10377: checking for jl_dic_list_e in -lwnn4" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10377 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10378
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10379 xe_check_libs=" -lwnn4 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10380 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10381 #line 10382 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10382 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10383 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10384 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10385 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10386 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10387
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10388 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10389 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10390 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10391 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10393 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10394 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10395 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10396 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10397 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10398 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10399 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10400 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10401 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10402 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10403
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10405 echo "$ac_t""yes" 1>&6
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10406 libwnn=wnn4
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10407 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10408 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10409 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10410 echo "configure:10411: checking for jl_dic_list_e in -lwnn6" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10411 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10412
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10413 xe_check_libs=" -lwnn6 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10414 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10415 #line 10416 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10416 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10417 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10418 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10419 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10420 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10421
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10422 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10423 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10424 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10425 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10426 if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10427 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10428 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10429 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10430 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10431 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10432 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10433 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10434 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10435 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10436 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10437
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10439 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10440 libwnn=wnn6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10441 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10442 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10443 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10444 echo "configure:10445: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10445 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10446
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10447 xe_check_libs=" -lwnn6_fromsrc "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10448 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10449 #line 10450 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10450 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10451 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10452 /* We use char because int might match the return type of a gcc2
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10453 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10454 char dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10455
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10456 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10457 dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10458 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10459 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10461 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10462 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10463 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10464 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10465 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10466 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10467 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10468 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10469 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10470 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10471
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10473 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10474 libwnn=wnn6_fromsrc
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10475 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10476 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10477 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10478 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10479
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10480
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10481 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10482
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10483
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10484 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10485
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10486
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10487 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10488
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10489
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10490 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10491 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10492 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10493 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10494 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10495 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10496 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10497 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10498 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10499 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10500
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10501 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10502 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10503 echo " xemacs will be linked with \"mule-wnnfns.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10504 fi
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
10505 if test "$with_wnn6" != "no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
10506
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10507 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10508 echo "configure:10509: checking for jl_fi_dic_list in -l$libwnn" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10509 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10510
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10511 xe_check_libs=" -l$libwnn "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
10512 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10513 #line 10514 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10514 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10515 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10516 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10517 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10518 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10519
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10520 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10521 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10522 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10523 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10525 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10526 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10527 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10528 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10529 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10530 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10531 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10532 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10533 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10534 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10535
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10537 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10538 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10539 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10540 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10541 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10542
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10543
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
10544 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10545 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10546 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10547 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10548 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10549 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10550 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10551
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
10552 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10553 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10554
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10555 canna_includes_found=no
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10556 if test "$with_canna" != "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10557 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10558 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10559 echo "configure:10560: checking for canna/jrkanji.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10560
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10561 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10562 #line 10563 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10563 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10564 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10565 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10567 { (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10569 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10570 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10571 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10572 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10573 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10574 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10575 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10576 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10577 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10578 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10579 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10581 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10582 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10583 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10584 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10585 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10586
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10587 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10588 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10589 -d "/usr/local/canna/include"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10590 save_c_switch_site="$c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10591 c_switch_site="$c_switch_site -I/usr/local/canna/include"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10592 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10593 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10594 echo "configure:10595: checking for canna/jrkanji.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10595
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10596 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10597 #line 10598 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10598 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10599 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10600 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10604 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10605 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10606 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10607 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10608 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10609 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10610 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10611 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10612 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10613 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10614 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10616 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10617 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10618 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10619 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10620 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10621
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10622 if test "$canna_includes_found" != "yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10623 c_switch_site="$save_c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10624 with_canna="no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10625 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10626 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10627
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
10628 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10629 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10630 echo "configure:10631: checking for canna/RK.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10631
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10632 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10633 #line 10634 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10634 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10635 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10636 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10638 { (eval echo configure:10639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
10639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10640 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10641 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10642 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10643 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10644 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10645 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10646 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10647 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10648 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10649 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10650 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10652 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10653 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10654 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10655 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10656 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10657 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10658 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10659 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10660 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10661 echo "configure:10662: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10662 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10663
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10664 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10665 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10666 #line 10667 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10667 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10668 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10669 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10670 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10671 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10672
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10673 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10674 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10675 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10676 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10678 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10679 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10680 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10681 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10682 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10683 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10684 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10685 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10686 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10687 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10688
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10690 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10691 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10692 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10693 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10694 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10695 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10696
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10697 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10698 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10699 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10700 echo "configure:10701: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10701 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10702
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10703 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10704 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10705 #line 10706 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10706 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10707 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10708 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10709 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10710 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10711
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10712 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10713 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10714 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10715 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10717 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10718 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10719 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10720 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10721 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10722 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10723 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10724 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10725 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10726 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10727
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10729 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10730 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10731 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10732 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10733 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10734 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10735
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10736 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10737 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10738 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10739 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10740 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10741 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10742 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10743 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10744 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10745 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10746
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10747 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10748 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10749 echo " xemacs will be linked with \"mule-canna.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10750 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10751 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10752
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10753 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10754 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
10755 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10756 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10757 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10758 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10759 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10760
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10761 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10762 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10763
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10764 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10765 echo "configure:10766: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10766 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10767
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10768 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10769 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10770 #line 10771 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10771 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10772 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10773 /* We use char because int might match the return type of a gcc2
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10774 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10775 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10776
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10777 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10778 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10779 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10780 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10782 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10783 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10784 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10785 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10786 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10787 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10788 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10789 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10790 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10791 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10792
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10794 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10795 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10796 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10797 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10798 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10799
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
10800
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10801
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10802 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10803 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
10804 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10805
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10806 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10807 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10808 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10809 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10810 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10811 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10812 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10813 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10814 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10815 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10816 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10817 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10818 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10819 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
10820 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10821 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10822 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10823 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10824 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10825 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10826 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10827 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10828 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10829 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10830 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
10831 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10832 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10833 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
10834 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10835 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10836 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10837 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10838 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10839 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10840 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10841 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10842 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10843 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10844 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10845
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10846 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10847 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10848 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10849 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
10850 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
10851 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10852 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10853 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10854 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10855 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10856 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
10857 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10858 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10859 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10860 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10861
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10862 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10863
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
10864 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
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10865 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10867 echo "configure:10868: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10868
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10869 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10870 #line 10871 "configure"
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10871 #include "confdefs.h"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10872 /* System header to define __stub macros and hopefully few prototypes,
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10873 which can conflict with char $ac_func(); below. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10874 #include <assert.h>
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10875 /* Override any gcc2 internal prototype to avoid an error. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10876 /* We use char because int might match the return type of a gcc2
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10877 builtin and then its argument prototype would still apply. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10878 char $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10879
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10880 int main() {
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10881
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10882 /* The GNU C library defines this for functions which it implements
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10883 to always fail with ENOSYS. Some functions are actually named
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10884 something starting with __ and the normal name is an alias. */
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10886 choke me
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10887 #else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10888 $ac_func();
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10889 #endif
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10890
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10891 ; return 0; }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10892 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10894 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10895 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10896 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10897 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10898 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10899 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10900 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10901 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10902 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10903
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10905 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10907 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10908 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10909 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10910 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10911 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10912 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10913 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10914
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10915 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10916 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10917 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10918 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10919
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10920
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
10921
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
10922 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10923 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10925 echo "configure:10926: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10926
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10927 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10928 #line 10929 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10929 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10930 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10931 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10932 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10933 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10934 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10935 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10936 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10937
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10938 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10939
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10940 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10941 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10942 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10944 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10945 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10946 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10947 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10948
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10949 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10950 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10952 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10953 eval "ac_cv_func_$ac_func=yes"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10954 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10955 echo "configure: failed program was:" >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10956 cat conftest.$ac_ext >&5
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10957 rm -rf conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10958 eval "ac_cv_func_$ac_func=no"
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10959 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10960 rm -f conftest*
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10961
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10963 echo "$ac_t""yes" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10965 { test "$extra_verbose" = "yes" && cat << EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10966 Defining $ac_tr_func
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10967 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10968 cat >> confdefs.h <<EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10969 #define $ac_tr_func 1
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10970 EOF
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10971 }
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10972
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10973 else
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10974 echo "$ac_t""no" 1>&6
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10975 fi
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10976 done
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10977
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
10978
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10979 echo $ac_n "checking for openpty""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10980 echo "configure:10981: checking for openpty" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10981
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10982 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
10983 #line 10984 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10984 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10985 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10986 which can conflict with char openpty(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10987 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10988 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10989 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10990 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10991 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10992
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10993 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10994
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10995 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10996 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10997 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10998 #if defined (__stub_openpty) || defined (__stub___openpty)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
10999 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11000 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11001 openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11002 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11003
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11004 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11005 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11006 if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11007 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11008 eval "ac_cv_func_openpty=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11009 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11010 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11011 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11012 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11013 eval "ac_cv_func_openpty=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11014 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11015 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11016
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11017 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11018 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11019 have_openpty=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11020 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11021 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11022
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11023
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11024 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11025 echo "configure:11026: checking for openpty in -lutil" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11026 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11027
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11028 xe_check_libs=" -lutil "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11029 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11030 #line 11031 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11031 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11032 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11033 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11034 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11035 char openpty();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11036
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11037 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11038 openpty()
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11039 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11040 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11042 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11043 eval "ac_cv_lib_$ac_lib_var=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11044 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11045 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11046 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11047 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11048 eval "ac_cv_lib_$ac_lib_var=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11049 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11050 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11051 xe_check_libs=""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11052
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11054 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11055 have_openpty=yes need_libutil=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11056 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11057 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11058 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11059
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11060
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11061 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11062
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11063 if test "$have_openpty" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11064 { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11065 Defining HAVE_OPENPTY
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11066 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11067 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11068 #define HAVE_OPENPTY 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11069 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11070 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11071
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11072 for ac_hdr in libutil.h util.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11073 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11076 echo "configure:11077: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11077
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11078 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11079 #line 11080 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11080 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11081 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11082 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11084 { (eval echo configure:11085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11086 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11087 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11088 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11089 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11090 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11091 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11092 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11093 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11094 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11095 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11096 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11098 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11100 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11101 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11102 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11103 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11104 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11105 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11106 }
458
c33ae14dd6d0 Import from CVS: tag r21-2-44
cvs
parents: 452
diff changeset
11107 break
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11108 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11109 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11110 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11111 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11112
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11113 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11114 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11115
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11116 case "$opsys" in
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11117 hpux*) for ac_hdr in sys/ptyio.h
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11118 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11121 echo "configure:11122: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11122
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11123 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11124 #line 11125 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11125 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11126 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11127 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11131 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11132 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11133 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11134 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11135 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11136 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11137 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11138 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11139 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11140 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11141 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11143 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11145 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11146 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11147 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11148 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11149 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11150 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11151 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11152
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11153 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11154 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11155 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11156 done
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11157 ;;
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11158 *) for ac_hdr in pty.h
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11159 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11162 echo "configure:11163: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11163
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11164 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11165 #line 11166 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11166 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11167 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11168 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11170 { (eval echo configure:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11172 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11173 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11174 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11175 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11176 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11177 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11178 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11179 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11180 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11181 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11182 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11184 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11186 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11187 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11188 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11189 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11190 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11191 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11192 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11193
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11194 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11195 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11196 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11197 done
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11198
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11199 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11200 do
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11203 echo "configure:11204: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11204
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11205 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11206 #line 11207 "configure"
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11207 #include "confdefs.h"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11208 #include <$ac_hdr>
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11209 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11211 { (eval echo configure:11212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11213 if test -z "$ac_err"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11214 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11215 eval "ac_cv_header_$ac_safe=yes"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11216 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11217 echo "$ac_err" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11218 echo "configure: failed program was:" >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11219 cat conftest.$ac_ext >&5
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11220 rm -rf conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11221 eval "ac_cv_header_$ac_safe=no"
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11222 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11223 rm -f conftest*
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11225 echo "$ac_t""yes" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11227 { test "$extra_verbose" = "yes" && cat << EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11228 Defining $ac_tr_hdr
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11229 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11230 cat >> confdefs.h <<EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11231 #define $ac_tr_hdr 1
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11232 EOF
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11233 }
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11234
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11235 else
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11236 echo "$ac_t""no" 1>&6
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11237 fi
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11238 done
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11239
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11240 ;;
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11241 esac
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
11242
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11243 for ac_hdr in stropts.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11244 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11247 echo "configure:11248: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11248
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11249 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11250 #line 11251 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11251 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11252 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11253 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11255 { (eval echo configure:11256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11257 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11258 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11259 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11260 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11261 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11262 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11263 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11264 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11265 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11266 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11267 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11269 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11271 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11272 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11273 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11274 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11275 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11276 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11277 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11278
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11279 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11280 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11281 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11282 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11283
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11284 if test "$ac_cv_header_stropts_h" = "yes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11285 for ac_func in isastream
410
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11286 do
de805c49cfc1 Import from CVS: tag r21-2-35
cvs
parents: 408
diff changeset
11287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11288 echo "configure:11289: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11289
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11290 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11291 #line 11292 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11292 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11293 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11294 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11295 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11296 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11297 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11298 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11299 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11300
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11301 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11302
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11303 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11304 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11305 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11307 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11308 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11309 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11310 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11311
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11312 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11313 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11315 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11316 eval "ac_cv_func_$ac_func=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11317 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11318 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11319 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11320 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11321 eval "ac_cv_func_$ac_func=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11322 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11323 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11324
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11326 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11328 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11329 Defining $ac_tr_func
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11330 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11331 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11332 #define $ac_tr_func 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11333 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11334 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11335
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11336 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11337 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11338 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11339 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11340
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11341 for ac_hdr in strtio.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11342 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11345 echo "configure:11346: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11346
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11347 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11348 #line 11349 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11349 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11350 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11351 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11355 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11356 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11357 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11358 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11359 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11360 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11361 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11362 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11363 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11364 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11365 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11367 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11369 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11370 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11371 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11372 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11373 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11374 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11375 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11376
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11377 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11378 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11379 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11380 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11381 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11382
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11383 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11384 echo " xemacs will be linked with \"realpath.o\""
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11385 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11386
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11387 for ac_func in getloadavg
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11388 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11390 echo "configure:11391: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11391
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11392 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11393 #line 11394 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11394 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11395 /* System header to define __stub macros and hopefully few prototypes,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11396 which can conflict with char $ac_func(); below. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11397 #include <assert.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11398 /* Override any gcc2 internal prototype to avoid an error. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11399 /* We use char because int might match the return type of a gcc2
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11400 builtin and then its argument prototype would still apply. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11401 char $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11402
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11403 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11404
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11405 /* The GNU C library defines this for functions which it implements
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11406 to always fail with ENOSYS. Some functions are actually named
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11407 something starting with __ and the normal name is an alias. */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11409 choke me
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11410 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11411 $ac_func();
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11412 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11413
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11414 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11415 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11416 if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11417 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11418 eval "ac_cv_func_$ac_func=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11419 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11420 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11421 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11422 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11423 eval "ac_cv_func_$ac_func=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11424 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11425 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11426
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11428 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11430 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11431 Defining $ac_tr_func
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11432 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11433 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11434 #define $ac_tr_func 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11435 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11436 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11437
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11438 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11439 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11440 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11441 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11443
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11444 if test "$ac_cv_func_getloadavg" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11445 for ac_hdr in sys/loadavg.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11446 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11449 echo "configure:11450: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11450
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11451 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11452 #line 11453 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11453 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11454 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11455 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11457 { (eval echo configure:11458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11459 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11460 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11461 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11462 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11463 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11464 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11465 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11466 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11467 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11468 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11469 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11471 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11473 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11474 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11475 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11476 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11477 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11478 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11479 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11480
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11481 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11482 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11483 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11484 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11485
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11486 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11487 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11488 echo " xemacs will be linked with \"getloadavg.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11489 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11490
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11491
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11492 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11493 echo "configure:11494: checking for kstat_open in -lkstat" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11494 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11495
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11496 xe_check_libs=" -lkstat "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11497 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11498 #line 11499 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11499 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11500 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11501 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11502 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11503 char kstat_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11504
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11505 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11506 kstat_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11507 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11508 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11510 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11511 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11512 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11513 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11514 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11515 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11516 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11517 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11518 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11519 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11520
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11522 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11523 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
11525 { test "$extra_verbose" = "yes" && cat << EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11526 Defining $ac_tr_lib
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
11527 EOF
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
11528 cat >> confdefs.h <<EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11529 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11530 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11531 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11532
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11533 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11534
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11535 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11536 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11537 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11538
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11539
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11540 for ac_hdr in kstat.h
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11541 do
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11544 echo "configure:11545: checking for $ac_hdr" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11545
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11546 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11547 #line 11548 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11548 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11549 #include <$ac_hdr>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11550 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11552 { (eval echo configure:11553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11554 if test -z "$ac_err"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11555 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11556 eval "ac_cv_header_$ac_safe=yes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11557 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11558 echo "$ac_err" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11559 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11560 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11561 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11562 eval "ac_cv_header_$ac_safe=no"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11563 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11564 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11566 echo "$ac_t""yes" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11568 { test "$extra_verbose" = "yes" && cat << EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11569 Defining $ac_tr_hdr
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11570 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11571 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11572 #define $ac_tr_hdr 1
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11573 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11574 }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11575
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11576 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11577 echo "$ac_t""no" 1>&6
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11578 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11579 done
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11580
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11581
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11582
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11583 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11584 echo "configure:11585: checking for kvm_read in -lkvm" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11585 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11586
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11587 xe_check_libs=" -lkvm "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11588 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11589 #line 11590 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11590 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11591 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11592 /* We use char because int might match the return type of a gcc2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11593 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11594 char kvm_read();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11595
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11596 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11597 kvm_read()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11598 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11599 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11600 if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11601 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11602 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11603 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11604 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11605 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11606 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11607 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11608 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11609 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11610 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11611
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11613 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11614 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11616 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11617 Defining $ac_tr_lib
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11618 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11619 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11620 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11621 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11622 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11623
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11624 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11625
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11626 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11627 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11628 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11629
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11630
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11631 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11632
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11633 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11634 echo "configure:11635: checking whether netdb declares h_errno" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11635 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11636 #line 11637 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11637 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11638 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11639 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11640 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11641 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11642 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11643 if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11644 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11645 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11646 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11647 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11648 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11649 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11650 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11651 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11652 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11653
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11654 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11655 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11656 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11657 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11658 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11659 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11660 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11661
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11662 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11663 echo "configure:11664: checking for sigsetjmp" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11664 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11665 #line 11666 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11666 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11667 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11668 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11669 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11670 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11671 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11672 if { (eval echo configure:11673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11673 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11674 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11675 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11676 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11677 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11678 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11679 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11680 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11681 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11682
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11683 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11684 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11685 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11686 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11687 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11688 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11689 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11690
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11691 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11692 echo "configure:11693: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11693
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11694 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11695 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11696 #line 11697 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11697 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11698 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11699 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11700 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11701 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11702 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11703 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11704 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11705 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11706 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11707 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11708 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11709 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11710 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11711 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11712 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11713 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11714 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11715 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11716 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11717 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11718 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11719 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11720 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11721 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11722 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11723 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11724 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11725 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11726 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11727 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11728 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11729 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11730 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11732 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11733 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11734 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
11735 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11736 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11737 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11738 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11739 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11740 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11741 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11742 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11743 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11744 # since we can't invalidate the cache if we don't have tzset.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11745 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11746 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11747 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11748 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11749 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11750 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11751 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11752 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11753 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11754 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11755 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11756
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11757 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11758
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11759 if test "$HAVE_TIMEVAL" = "yes"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11760 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11761 echo "configure:11762: checking whether gettimeofday accepts one or two arguments" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11762 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11763 #line 11764 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11764 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11765
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11766 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11767 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11768 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11769 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11770 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11771 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11772 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11773 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11774 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11775 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11776
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11777 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11778
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11779 struct timeval time;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11780 gettimeofday (&time, 0);
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11781
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11782 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11783 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11785 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11786 echo "$ac_t""two" 1>&6
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11787 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11788 echo "configure: failed program was:" >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11789 cat conftest.$ac_ext >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11790 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
11791 echo "$ac_t""one" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11792 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11793 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11794 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11795 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11796 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11797 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11798 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11800 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11801 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11802 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11804
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11805 echo $ac_n "checking for inline""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11806 echo "configure:11807: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11807
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11808 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11809 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11810 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11811 #line 11812 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11812 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11813
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11814 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11815 } $ac_kw foo() {
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11816 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11817 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11819 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11820 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11821 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11822 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11823 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11824 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11825 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11826 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11827
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11828
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11829 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11830 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11831 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11832 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11833 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11834 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11835 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11836 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11837 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11838 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11839 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11840 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11841 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11842 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11843 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11844 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11845 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11846 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11847 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11848 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11849
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
11850 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11851 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11852 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11853
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11854
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11855 if test "$__DECC" != "yes"; then
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
11856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11857 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11858 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11859 echo "configure:11860: checking for working alloca.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11860
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11861 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11862 #line 11863 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11863 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11864 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11865 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11866 char *p = alloca(2 * sizeof(int));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11867 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11868 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11869 if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11870 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11871 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11872 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11873 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11874 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11875 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11876 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11877 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11878 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11879
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11880 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11881 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11882 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11883 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11884 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11885 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11886 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11887 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11888 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11889
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11890 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11891
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11892 echo $ac_n "checking for alloca""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11893 echo "configure:11894: checking for alloca" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11894
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11895 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11896 #line 11897 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11897 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11898
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11899 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11900 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11901 #else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11902 # ifdef _MSC_VER
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11903 # include <malloc.h>
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11904 # define alloca _alloca
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11905 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11906 # if HAVE_ALLOCA_H
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11907 # include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11908 # else
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11909 # ifdef _AIX
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11910 #pragma alloca
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11911 # else
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11912 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11913 char *alloca ();
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11914 # endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11915 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11916 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11917 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11918 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11920 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11921 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11922 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11923 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11925 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11926 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11927 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11928 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11929 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11930 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11931 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11932 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11933 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11934
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11935 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11936 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11937 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11938 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11939 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11940 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11941 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11942 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11943 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11944
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11945 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11946
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11947 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11948 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11949 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11950 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11951 # use ar to extract alloca.o from them instead of compiling alloca.c.
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
11952 ALLOCA=alloca.${ac_objext}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11953 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11954 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11955 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11956 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11957 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11958 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11959 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11960
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11961
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11963 echo "configure:11964: checking whether alloca needs Cray hooks" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11964
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11965 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11966 #line 11967 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11967 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11968 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11969 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11970 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11971 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11972 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11973
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11974 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11976 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11977 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11978 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11979 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11980 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11981 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11982 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11983 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11985
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11986 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11987 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11988 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11990 echo "configure:11991: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11991
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11992 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
11993 #line 11994 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11994 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11995 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11996 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11997 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11998 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11999 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12000 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12001 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12002
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12003 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12004
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12005 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12006 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12007 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12009 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12010 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12011 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12012 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12013
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12014 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12015 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12017 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12018 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12019 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12020 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12021 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12022 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12023 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12024 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12025 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12026
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12028 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12029 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12030 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12031 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12032 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12033 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12034 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12035 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12036
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12037 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12038 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12039 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12040 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12041
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12042 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12043 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12045 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12046 echo "configure:12047: checking stack direction for C alloca" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12047
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12048 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12049 #line 12050 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12050 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12051 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12052 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12053 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12054 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12055 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12056 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12057 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12058 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12059 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12060 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12061 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12062 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12063 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12064 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12065 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12066 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12067 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12069 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12070 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12071 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12072 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12073 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12074 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12075 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12076 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12077 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12078 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12079
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12080 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12081 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12082 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12083 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12084 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12085 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12086 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12087 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12088
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12089 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12090
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
12091 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12092 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12093 fi
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
12094 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12095
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12096 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12097 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12098 echo "configure:12099: checking for vfork.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12099
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12100 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12101 #line 12102 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12102 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12103 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12104 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12106 { (eval echo configure:12107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12108 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12109 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12110 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12111 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12112 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12113 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12114 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12115 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12116 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12117 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12118 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12120 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12121 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12122 Defining HAVE_VFORK_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12123 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12124 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12125 #define HAVE_VFORK_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12126 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12127 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12128
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12129 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12130 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12131 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12132
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12133 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12134 echo "configure:12135: checking for working vfork" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12135
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12136 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12137 #line 12138 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12138 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12139 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12140 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12141 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12142 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12143 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12144 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12145 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12146 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12147 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12148 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12149 /* On some sparc systems, changes by the child to local and incoming
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12150 argument registers are propagated back to the parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12151 The compiler is told about this with #include <vfork.h>,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12152 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12153 Test for this by using a static variable whose address
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12154 is put into a register that is clobbered by the vfork. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12155 static
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12156 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12157 sparc_address_test (int arg)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12158 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12159 sparc_address_test (arg) int arg;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12160 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12161 {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12162 static pid_t child;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12163 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12164 child = vfork ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12165 if (child < 0) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12166 perror ("vfork");
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12167 _exit(2);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12168 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12169 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12170 arg = getpid();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12171 write(-1, "", 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12172 _exit (arg);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12173 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12174 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12175 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12176 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12177 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12178 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12179
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12180 sparc_address_test ();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12182 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12184 if (child == 0) {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12185 /* Here is another test for sparc vfork register problems.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12186 This test uses lots of local variables, at least
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12187 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12188 including compiler temporaries. 4 locals are enough for
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12189 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12190 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12191 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12192 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12193 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12194 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12195 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12196 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12197 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12198 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12199 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12200 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12201 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12202 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12203
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12204 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12205 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12206 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12207 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12208 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12209 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12210 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12211 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12212 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12214 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12215 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12216 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12217 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12218 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12220 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12221 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12223 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12224 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12225
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12226 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12227 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12228 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12229 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12230 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12231 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12233 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12234 ac_cv_func_vfork_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12235 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12236 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12237 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12238 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12239 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12240 ac_cv_func_vfork_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12241 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12242 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12243
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12244 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12245 if test $ac_cv_func_vfork_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12246 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12247 Defining vfork = fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12248 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12249 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12250 #define vfork fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12251 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12252 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12253
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12254 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12257 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12258 echo "configure:12259: checking for working strcoll" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12259
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12260 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12261 #line 12262 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12262 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12263 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12264 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12265 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12266 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12267 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12268 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12269 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12270 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12272 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12273 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12274 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12275 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12276 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12277 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12278 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12279 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12280 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12281 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12282
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12283 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12284 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12285 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12286 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12287 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12288 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12289 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12290 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12291 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12293 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12295
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12296 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12297 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12299 echo "configure:12300: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12300
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12301 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12302 #line 12303 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12303 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12304 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12305 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12306 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12307 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12308 /* We use char because int might match the return type of a gcc2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12309 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12310 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12311
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12312 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12313
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12314 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12315 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12316 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12318 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12319 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12320 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12321 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12322
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12323 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12324 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12325 if { (eval echo configure:12326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12326 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12327 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12328 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12329 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12330 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12331 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12332 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12333 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12334 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12335
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12337 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12339 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12340 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12341 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12342 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12343 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12344 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12345 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12346
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12347 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12348 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12349 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12350 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12351
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12352 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12353 echo "configure:12354: checking whether getpgrp takes no argument" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12354
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12355 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12356 #line 12357 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12357 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12358
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12359 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12360 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12361 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12362 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12363 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12364 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12365 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12366 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12367
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12368 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12369 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12370 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12371
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12372 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12373 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12374 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12375 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12376 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12377 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12378 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12379
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12380 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12381 * If all of these values are the same, it's pretty sure that
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12382 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12383 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12384 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12385 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12386
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12387 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12388 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12389 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12390 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12391 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12392 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12393 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12394 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12395 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12396 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12397 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12398 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12399 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12400 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12401 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12402 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12403 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12404 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12405 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12406 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12407 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12408 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12409
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12410 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12412 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12413 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12414 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12415 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12416 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12417 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12418 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12419 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12420 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12421 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12422
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12423
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12424 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12425 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12426 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12427 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12428 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12429 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12430 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12431 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12432 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12433
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12434 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12435
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12436
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12437 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12438 echo "configure:12439: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12439 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12440 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12441 #line 12442 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12442 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12443 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12444 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12445 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12446 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12447
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12448 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12449 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12450 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12451
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12452 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12453 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12454 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12455
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12456 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12457 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12458 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12459 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12460 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12461 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12462 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12463 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12464 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12465 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12466 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12467 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12468 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12469 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12470 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12471 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12472 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12473 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12475 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12476 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12477 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12478 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12479 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12480 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12481 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12482 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12483 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12484 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12485 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12486 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
12487 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12488 Defining HAVE_MMAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12489 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12490 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12491 #define HAVE_MMAP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12492 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12493 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12494
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 410
diff changeset
12495
535
c69610198c35 [xemacs-hg @ 2001-05-14 04:52:02 by martinb]
martinb
parents: 527
diff changeset
12496 case "$opsys" in cygwin*)
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
12497 test "$rel_alloc" = "default" && rel_alloc=no ;;
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
12498 esac
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12499 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12500 if test "$rel_alloc $have_mmap" = "default yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12501 if test "$doug_lea_malloc" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12502 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12503 echo "configure:12504: checking for M_MMAP_THRESHOLD" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12504 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12505 #line 12506 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12506 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12507 #include <malloc.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12508 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12509
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12510 #ifndef M_MMAP_THRESHOLD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12511 #error No M_MMAP_THRESHOLD :-(
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12512 !@+$%^&*_)(_ - unlikely to compile...
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12513 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12514
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12515 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12516 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12517 if { (eval echo configure:12518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12518 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12519 rel_alloc=no; echo "$ac_t""yes" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12520 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12521 echo "configure: failed program was:" >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12522 cat conftest.$ac_ext >&5
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12523 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12524 rel_alloc=yes; echo "$ac_t""no" 1>&6;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12525 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12526 rm -f conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12527 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12528 rel_alloc=yes
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12529 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
12530 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12531 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12532 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12533 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12534 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12535 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12536 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12537 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12539
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12540 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12541 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12542 echo "configure:12543: checking for termios.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12543
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12544 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12545 #line 12546 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12546 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12547 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12548 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12550 { (eval echo configure:12551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12552 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12553 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12554 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12555 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12556 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12557 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12558 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12559 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12560 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12561 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12562 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12564 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12565 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12566 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12567 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12568 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12569 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12570 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12571 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12572
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12573 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12574 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12575 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12576 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12577 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12578 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12579 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12580
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12581 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12582 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12583 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12584 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12585 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12586 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12587 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12588
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12589 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12590 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12591 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12592 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12593 echo "configure:12594: checking for termio.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12595 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12596 #line 12597 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12597 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12598 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12599 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12603 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12604 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12605 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12606 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12607 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12608 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12609 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12610 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12611 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12612 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12613 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12615 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12616 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12617 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12618 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12619 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12620 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12621 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12622 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12623
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12624 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12625 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12626 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12627
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12628 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12629
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12630
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
12631
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12632 echo $ac_n "checking for socket""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12633 echo "configure:12634: checking for socket" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12634
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12635 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12636 #line 12637 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12637 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12638 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12639 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12640 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12641 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12642 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12643 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12644 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12645
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12646 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12647
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12648 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12649 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12650 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12651 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12652 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12653 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12654 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12655 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12656
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12657 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12658 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12660 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12661 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12662 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12663 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12664 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12665 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12666 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12667 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12668 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12669
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12670 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12671 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12672 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12673 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12674 echo "configure:12675: checking for netinet/in.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12675
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12676 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12677 #line 12678 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12678 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12679 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12680 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12682 { (eval echo configure:12683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12684 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12685 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12686 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12687 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12688 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12689 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12690 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12691 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12692 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12693 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12694 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12696 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12697 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12698 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12699 echo "configure:12700: checking for arpa/inet.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12700
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12701 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12702 #line 12703 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12703 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12704 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12705 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12709 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12710 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12711 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12712 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12713 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12714 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12715 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12716 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12717 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12718 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12719 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12721 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12722
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12723 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12724 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12725 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12726 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12727 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12728 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12729 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12730
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12731 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12732 echo "configure:12733: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12733 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12734 #line 12735 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12735 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12736
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12737 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12738 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12739 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12741 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12742 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12743 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12744 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12746 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12747 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12748 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12749 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12750 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12751 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12752 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12753 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12755 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12756 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12757 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12758 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12759 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12760 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12761 rm -f conftest*
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12762 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12763 echo "configure:12764: checking "for ip_mreq struct in netinet/in.h"" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12764 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12765 #line 12766 "configure"
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
12766 #include "confdefs.h"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
12767
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
12768 #include <sys/types.h>
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12769 #include <netinet/in.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12770
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12771 int main() {
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12772 static struct ip_mreq x;
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12773 ; return 0; }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12774 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12776 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12777 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12778 Defining HAVE_MULTICAST
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12779 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12780 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12781 #define HAVE_MULTICAST 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12782 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12783 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12784
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12785 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12786 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12787 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12788 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12789 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12790 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
12791 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12792 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12793 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12794 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12796 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12797 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12798 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12799
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12800 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12801 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12802 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12804
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12805 echo $ac_n "checking for msgget""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12806 echo "configure:12807: checking for msgget" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12807
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12808 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12809 #line 12810 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12810 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12811 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12812 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12813 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12814 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12815 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12816 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12817 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12818
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12819 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12820
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12821 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12822 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12823 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12824 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12825 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12826 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12827 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12828 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12829
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12830 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12831 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12832 if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12833 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12834 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12835 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12836 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12837 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12838 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12839 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12840 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12841 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12842
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12843 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12844 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12845 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12846 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12847 echo "configure:12848: checking for sys/ipc.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12848
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12849 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12850 #line 12851 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12851 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12852 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12853 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12855 { (eval echo configure:12856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12857 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12858 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12859 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12860 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12861 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12862 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12863 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12864 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12865 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12866 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12867 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12869 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12870 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12871 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12872 echo "configure:12873: checking for sys/msg.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12873
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12874 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12875 #line 12876 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12876 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12877 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12878 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12880 { (eval echo configure:12881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12882 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12883 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12884 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12885 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12886 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12887 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12888 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12889 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12890 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12891 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12892 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12894 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12895 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12896 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12897 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12898 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12899 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12900 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12901 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12902
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12903 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12904 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12905 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12906
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12907 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12908 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12909 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12910
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12911 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12912 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12913 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12914
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12915
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12916 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12917 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12918 echo "configure:12919: checking for dirent.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12919
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12920 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12921 #line 12922 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12922 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12923 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12924 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12926 { (eval echo configure:12927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12928 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12929 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12930 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12931 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12932 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12933 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12934 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12935 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12936 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12937 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12938 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12940 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12941 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12942 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12943 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12944 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12945 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12946 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12947 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12948
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12949 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12950 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12951 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12952 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12953 echo "configure:12954: checking for sys/dir.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12954
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12955 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12956 #line 12957 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12957 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12958 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12959 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12961 { (eval echo configure:12962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
12962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12963 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12964 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12965 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12966 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12967 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12968 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12969 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12970 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12971 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12972 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12973 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12975 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12976 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12977 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12978 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12979 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12980 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12981 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12982 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12983 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12984 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12985 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12986
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12987 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12988
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12989 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12990
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12991
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12992 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12993 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12994 echo "configure:12995: checking for nlist.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12995
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12996 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
12997 #line 12998 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12998 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12999 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13000 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13002 { (eval echo configure:13003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13004 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13005 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13006 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13007 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13008 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13009 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13010 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13011 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13012 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13013 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13014 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13016 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13017 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13018 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13019 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13020 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13021 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13022 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13023 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13024
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13025 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13026 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13027 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13028
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13029
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13030
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13031 echo "checking "for sound support"" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13032 echo "configure:13033: checking "for sound support"" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13033 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13034
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13035 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13036 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13037 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13038 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13039 echo "configure:13040: checking for multimedia/audio_device.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13040
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13041 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13042 #line 13043 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13043 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13044 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13045 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13047 { (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13049 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13050 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13051 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13052 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13053 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13054 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13055 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13056 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13057 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13058 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13059 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13061 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13062 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13063 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13064 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13065 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13066 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13067 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13068 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13069
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13070 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13071
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13072 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13073 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13074 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13075 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13076 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13077 if test -d "/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13078 then sound_cflags="-I/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13079 else sound_cflags="-I/usr/demo/SOUND"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13080 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13081 if test -z "$native_sound_lib" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13082 if test -r "/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13083 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13084 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13085 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13086 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13087 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13088
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13089 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13090 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13091 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13092 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13093
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13094 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13095 echo "configure:13096: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13096 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13097
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13098 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13099 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13100 #line 13101 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13101 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13102 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13103 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13104 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13105 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13107 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13108 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13109 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13110 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13111 if { (eval echo configure:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13112 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13113 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13114 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13115 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13116 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13117 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13118 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13119 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13120 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13121 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13122
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13124 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13125 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13126 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13127 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13128 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13129
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13130
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13131 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13132 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13133 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13134 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13135 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13136 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13137 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13138 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13139 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13140
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13141 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13142 echo "configure:13143: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13143 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13145 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13146 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13147 #line 13148 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13148 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13149 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13150 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13151 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13152 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13153
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13154 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13155 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13156 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13157 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13158 if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13159 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13160 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13161 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13162 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13163 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13164 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13165 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13166 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13167 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13168 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13169
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13171 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13172 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13173 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13174 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13175 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13176
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13177
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13178 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13179 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13180 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13181 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13182 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13183 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
13184 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13185 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13186 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13187 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13188 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13189 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13190 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13191
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13192 if test -z "$sound_found"; then
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13193 if test "$with_msw" = "yes"; then
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13194 sound_found=yes
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13195 native_sound_lib=
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13196 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13197 echo " xemacs will be linked with \"ntplay.o\""
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13198 fi
553
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13199 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13200 fi
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13201
5c6dc7d576ad [xemacs-hg @ 2001-05-21 08:02:46 by yoshiki]
yoshiki
parents: 551
diff changeset
13202 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13203 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13204 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13205 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13206 echo "configure:13207: checking for ${dir}/soundcard.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13207
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13208 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13209 #line 13210 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13210 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13211 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13212 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13214 { (eval echo configure:13215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13216 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13217 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13218 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13219 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13220 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13221 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13222 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13223 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13224 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13225 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13226 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13228 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13229 sound_found=yes
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13230 need_miscplay=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13231 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13232 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13233 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13234 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13235 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13236 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13237 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13238 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13239 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13240 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13241
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13242 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13243 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13244 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13245 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13246
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13247 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
13248 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13249
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13250 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13251 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13253 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13254 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13255 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13256 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13257 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13258 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13259 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13260 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13261
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13262 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13263 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13264
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13265 if test "$with_nas_sound" != "no"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13266 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13267 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13268 echo "configure:13269: checking for audio/audiolib.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13269
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13270 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13271 #line 13272 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13272 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13273 #include <audio/audiolib.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13274 EOF
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13276 { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13278 if test -z "$ac_err"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13279 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13280 eval "ac_cv_header_$ac_safe=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13281 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13282 echo "$ac_err" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13283 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13284 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13285 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13286 eval "ac_cv_header_$ac_safe=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13287 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13288 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13290 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13291
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13292
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13293 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13294 echo "configure:13295: checking for AuOpenServer in -laudio" >&5
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13295 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13296
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13297 xe_check_libs=" -laudio "
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13298 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13299 #line 13300 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13300 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13301 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13302 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13303 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13304 char AuOpenServer();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13305
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13306 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13307 AuOpenServer()
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13308 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13309 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13311 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13312 eval "ac_cv_lib_$ac_lib_var=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13313 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13314 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13315 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13316 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13317 eval "ac_cv_lib_$ac_lib_var=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13318 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13319 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13320 xe_check_libs=""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13321
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13323 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13324 have_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13325 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13326 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13327 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13328
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13329
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13330 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13331 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13332 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13333
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13334 if test "$have_nas_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13335 with_nas_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13336 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13337 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13338 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13339 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13340 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13341 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13342 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13343
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13344 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13345 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13346 fi
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13347 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13348 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13349 #line 13350 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13350 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13351 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13352 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13354 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13355 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13356 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13357 rm -rf conftest*
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13358 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13359 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13360 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13361 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13362 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13363 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13364 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13365
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13366 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13367 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13368
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13369 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13370 test "$with_nas_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13371 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13372 with_nas_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13373 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13374 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13375
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13376 if test "$with_esd_sound" != "no"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13377 # Extract the first word of "esd-config", so it can be a program name with args.
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13378 set dummy esd-config; ac_word=$2
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13380 echo "configure:13381: checking for $ac_word" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13381
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13382 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13383 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13384 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13386 ac_dummy="$PATH"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13387 for ac_dir in $ac_dummy; do
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13388 test -z "$ac_dir" && ac_dir=.
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13389 if test -f $ac_dir/$ac_word; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13390 ac_cv_prog_have_esd_config="yes"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13391 break
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13392 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13393 done
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13394 IFS="$ac_save_ifs"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13395 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13396 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13397 have_esd_config="$ac_cv_prog_have_esd_config"
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13398 if test -n "$have_esd_config"; then
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13399 echo "$ac_t""$have_esd_config" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13400 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13401 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13402 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13403
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13404 if test "$have_esd_config" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13405 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13406 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
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13407 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13408 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13409 echo "configure:13410: checking for esd_play_stream" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13410
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13411 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13412 #line 13413 "configure"
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13413 #include "confdefs.h"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13414 /* System header to define __stub macros and hopefully few prototypes,
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13415 which can conflict with char esd_play_stream(); below. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13416 #include <assert.h>
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13417 /* Override any gcc2 internal prototype to avoid an error. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13418 /* We use char because int might match the return type of a gcc2
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13419 builtin and then its argument prototype would still apply. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13420 char esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13421
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13422 int main() {
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13423
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13424 /* The GNU C library defines this for functions which it implements
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13425 to always fail with ENOSYS. Some functions are actually named
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13426 something starting with __ and the normal name is an alias. */
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13427 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13428 choke me
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13429 #else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13430 esd_play_stream();
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13431 #endif
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13433 ; return 0; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13434 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13436 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13437 eval "ac_cv_func_esd_play_stream=yes"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13438 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13439 echo "configure: failed program was:" >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13440 cat conftest.$ac_ext >&5
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13441 rm -rf conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13442 eval "ac_cv_func_esd_play_stream=no"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13443 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13444 rm -f conftest*
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13445
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13446 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13447 echo "$ac_t""yes" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13448 have_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13449 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13450 echo "$ac_t""no" 1>&6
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13451 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13452 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13453
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13454 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13455
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13456 if test "$have_esd_sound" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13457 with_esd_sound=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13458 need_miscplay=yes
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13459 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13460 echo " xemacs will be linked with \"esd.o\""
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13461 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13462 { test "$extra_verbose" = "yes" && cat << \EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13463 Defining HAVE_ESD_SOUND
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13464 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13465 cat >> confdefs.h <<\EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13466 #define HAVE_ESD_SOUND 1
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13467 EOF
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13468 }
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13469
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13470 else
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13471 test "$with_esd_sound" = "yes" && \
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13472 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13473 with_esd_sound=no
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13474 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13475 fi
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13476
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
13477 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13478 echo " xemacs will be linked with \"miscplay.o\""
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13479 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13480
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13481
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13482 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13483
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13484 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13485 echo "checking for TTY-related features" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13486 echo "configure:13487: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13487 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13488 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13489 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13490 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13491 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13492 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13493 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13494
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13495 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
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13496 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\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13497 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13498
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13499 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
13500
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13501 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13502 echo "configure:13503: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13503 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13504
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13505 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13506 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13507 #line 13508 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13508 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13509 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13510 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13511 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13512 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13513
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13514 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13515 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13516 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13517 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13519 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13520 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13521 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13522 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13523 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13524 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13525 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13526 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13527 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13528 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13529
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13531 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13532 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13533 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13534 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13535 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13536 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13537
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13539 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13540 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13541 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13542 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13543 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13544 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13545 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13546 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13547 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13549 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13550 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13551 echo "configure:13552: checking for ncurses/curses.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13552
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13553 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13554 #line 13555 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13555 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13556 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13557 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13559 { (eval echo configure:13560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13561 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13562 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13563 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13564 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13565 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13566 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13567 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13568 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13569 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13570 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13571 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13573 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13574 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13575 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13576 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13577 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13578
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13579 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13580 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13581 echo "configure:13582: checking for ncurses/term.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13582
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13583 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13584 #line 13585 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13585 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13586 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13587 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13589 { (eval echo configure:13590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13591 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13592 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13593 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13594 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13595 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13596 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13597 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13598 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13599 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13600 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13601 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13603 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13604 term_h_file=ncurses/term.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13605 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13606 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13607 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13608
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13609 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13610 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13611 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13612 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13613
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13614 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13615 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13616 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13617 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13618 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13619 echo "configure:13620: checking for ncurses/curses.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13620
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13621 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13622 #line 13623 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13623 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13624 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13625 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13627 { (eval echo configure:13628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13629 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13630 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13631 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13632 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13633 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13634 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13635 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13636 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13637 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13638 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13639 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13641 echo "$ac_t""yes" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13642 curses_h_file=ncurses/curses.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13643 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13644 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13645 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13646
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
13647 if test "$ac_cv_header_ncurses_curses_h" = "yes"
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
13648 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13649 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13650 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13651 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13652 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13653 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13654 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13655 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13656 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13657 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13658 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13659 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13660
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13661 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13662 echo "configure:13663: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13663 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13664
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13665 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13666 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13667 #line 13668 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13668 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13669 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13670 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13671 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13672 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13673
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13674 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13675 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13676 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13677 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13679 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13680 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13681 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13682 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13683 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13684 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13685 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13686 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13687 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13688 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13689
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13691 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13692 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13693 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13694 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13695 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13696
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13697
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13698 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13699 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13700 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13701 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13702 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13703 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13704 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13705 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13706 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13707
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13708 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13709 echo "configure:13710: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13710 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13711
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13712 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13713 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13714 #line 13715 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13715 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13716 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13717 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13718 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13719 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13720
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13721 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13722 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13723 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13724 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13726 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13727 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13728 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13729 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13730 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13731 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13732 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13733 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13734 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13735 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13736
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13738 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13739 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13740 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13741 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13742 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13743 echo "configure:13744: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13744 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13745
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13746 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13747 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13748 #line 13749 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13749 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13750 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13751 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13752 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13753 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13754
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13755 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13756 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13757 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13758 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13759 if { (eval echo configure:13760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13760 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13761 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13762 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13763 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13764 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13765 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13766 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13767 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13768 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13769 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13770
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13772 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13773 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13774 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13775 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13776 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13777 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13778 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13779 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13780
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13781
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13782 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13783
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13784
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13785 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13786 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13787 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13788 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13789 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13790 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13791 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13792 #define CURSES_H_FILE "${curses_h_file-curses.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13793 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13794 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13795
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13796 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13797 Defining TERM_H_FILE = "${term_h_file-term.h}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13798 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13799 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
13800 #define TERM_H_FILE "${term_h_file-term.h}"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13801 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13802 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13803
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13804
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13805 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13806 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13807 echo "configure:13808: checking for gpm.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13808
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13809 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13810 #line 13811 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13811 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13812 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13813 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13815 { (eval echo configure:13816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13817 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13818 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13819 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13820 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13821 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13822 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13823 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13824 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13825 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13826 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13827 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13829 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13830 :
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13831 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13832 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13833 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13834 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13835 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13836 test -z "$with_gpm" && {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13837 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13838 echo "configure:13839: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13839 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13840
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13841 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13842 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13843 #line 13844 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13844 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13845 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13846 /* We use char because int might match the return type of a gcc2
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13847 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13848 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13849
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13850 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13851 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13852 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13853 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13854 if { (eval echo configure:13855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13855 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13856 eval "ac_cv_lib_$ac_lib_var=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13857 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13858 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13859 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13860 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13861 eval "ac_cv_lib_$ac_lib_var=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13862 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13863 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13864 xe_check_libs=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13865
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13867 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13868 with_gpm=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13869 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13870 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13871 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13872 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13873
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13874 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13875 if test "$with_gpm" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13876 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13877 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13878 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13879 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13880 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13881 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13882 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13883
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13884 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13885 echo " xemacs will be linked with \"gpmevent.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13886 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13887 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13888 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13889
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13890 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13891 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
561
1dac8639fe3f [xemacs-hg @ 2001-05-24 04:12:17 by martinb]
martinb
parents: 553
diff changeset
13892 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13893 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13894 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13895 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13896 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13897 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13898 echo " xemacs will be linked with \"event-unixoid.o\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13899 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13900
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13901
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13902 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13903 != "no no no" && echo "checking for database support" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13904 echo "configure:13905: checking for database support" >&5
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13905
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13906 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13907 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13908 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13909 echo "configure:13910: checking for ndbm.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13910
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13911 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13912 #line 13913 "configure"
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13913 #include "confdefs.h"
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13914 #include <ndbm.h>
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13915 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13919 if test -z "$ac_err"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13920 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13921 eval "ac_cv_header_$ac_safe=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13922 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13923 echo "$ac_err" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13924 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13925 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13926 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13927 eval "ac_cv_header_$ac_safe=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13928 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13929 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
13931 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13932 :
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13933 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13934 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13935
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13936 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13937 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13938 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13939 with_database_gdbm=no with_database_dbm=no
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13940 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13941
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13942 fi
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13943
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13944 if test "$with_database_gdbm" != "no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13945
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13946 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13947 echo "configure:13948: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13948 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13949
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13950 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13951 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13952 #line 13953 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13953 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13954 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13955 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13956 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13957 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13958
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13959 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13960 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13961 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13962 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13964 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13965 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13966 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13967 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13968 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13969 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13970 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13971 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13972 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13973 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13974
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13976 echo "$ac_t""yes" 1>&6
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13977 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13978 else
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13979 echo "$ac_t""no" 1>&6
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13980 if test "$with_database_gdbm" = "yes"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13981 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13982 fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
13983 with_database_gdbm=no
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13984 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13985
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13986
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13987 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13988
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13989 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13990 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13991 echo "configure:13992: checking for dbm_open" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13992
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13993 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
13994 #line 13995 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13995 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13996 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13997 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13998 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13999 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14000 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14001 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14002 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14003
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14004 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14005
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14006 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14007 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14008 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14009 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14010 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14011 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14012 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14013 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14014
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14015 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14016 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14018 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14019 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14020 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14021 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14022 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14023 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14024 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14025 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14026 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14027
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14028 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14029 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14030 with_database_dbm=yes libdbm=
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14031 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14032 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14033
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14034
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14035 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14036 echo "configure:14037: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14037 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14038
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14039 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14040 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14041 #line 14042 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14042 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14043 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14044 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14045 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14046 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14047
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14048 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14049 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14050 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14051 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14053 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14054 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14055 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14056 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14057 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14058 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14059 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14060 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14061 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14062 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14063
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14065 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14066 with_database_dbm=yes libdbm=-ldbm
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14067 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14068 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14069 test "$with_database_dbm" = "yes" && \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14070 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14071 with_database_dbm=no
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14072 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14073
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14074
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14075 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14076
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14077 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14078
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14079 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14080 test "$with_database_gdbm" = "yes" -o \
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14081 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
14082 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14083 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14084 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14085 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14086 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14087 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14088 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14089
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14090
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14091 if test "$with_database_berkdb" != "no"; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14092 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14093 echo "configure:14094: checking for Berkeley db.h" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14094 for header in "db/db.h" "db.h"; do
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14095 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14096 #line 14097 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14097 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14098
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14099 #include <stdlib.h>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14100 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14101 #ifdef HAVE_INTTYPES_H
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14102 #define __BIT_TYPES_DEFINED__
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14103 #include <inttypes.h>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14104 typedef uint8_t u_int8_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14105 typedef uint16_t u_int16_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14106 typedef uint32_t u_int32_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14107 #ifdef WE_DONT_NEED_QUADS
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14108 typedef uint64_t u_int64_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14109 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14110 #endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14111 #endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14112 #include <$header>
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14113
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14114 int main() {
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14115
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14116 ; return 0; }
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14117 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14119 rm -rf conftest*
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14120 db_h_file="$header"; break
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14121 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14122 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14123 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14124 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14125 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14126 done
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14127 if test -z "$db_h_file"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14128 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14129 else echo "$ac_t""$db_h_file" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14130 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14131
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14132 if test "$with_database_berkdb" != "no"; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14133 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14134 echo "configure:14135: checking for Berkeley DB version" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14135 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14136 #line 14137 "configure"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14137 #include "confdefs.h"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14138 #include <$db_h_file>
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14139 #if DB_VERSION_MAJOR > 1
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14140 yes
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14141 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14142
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14143 EOF
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14145 egrep "yes" >/dev/null 2>&1; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14146 rm -rf conftest*
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14147 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14148 #line 14149 "configure"
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14149 #include "confdefs.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14150 #include <$db_h_file>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14151 #if DB_VERSION_MAJOR > 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14152 yes
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14153 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14154
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14155 EOF
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14157 egrep "yes" >/dev/null 2>&1; then
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14158 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14159 echo "$ac_t""3" 1>&6; dbfunc=db_create
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14160 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14161 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14162
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14163 echo "$ac_t""2" 1>&6; dbfunc=db_open
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14164 fi
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14165 rm -f conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14166
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14167 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14168 rm -rf conftest*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14169
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents: 446
diff changeset
14170 echo "$ac_t""1" 1>&6; dbfunc=dbopen
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14171 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14172 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14173
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14174 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14175 echo "configure:14176: checking for $dbfunc" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14176
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14177 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14178 #line 14179 "configure"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14179 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14180 /* System header to define __stub macros and hopefully few prototypes,
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14181 which can conflict with char $dbfunc(); below. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14182 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14183 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14184 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14185 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14186 char $dbfunc();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14187
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14188 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14189
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14190 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14191 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14192 something starting with __ and the normal name is an alias. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14193 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14194 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14195 #else
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14196 $dbfunc();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14197 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14198
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14199 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14200 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14201 if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14202 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14203 eval "ac_cv_func_$dbfunc=yes"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14204 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14205 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14206 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14207 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14208 eval "ac_cv_func_$dbfunc=no"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14209 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14210 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14211
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14212 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14213 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14214 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14215 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14216 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14217
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14218
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14219 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14220 echo "configure:14221: checking for $dbfunc in -ldb" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14221 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14222
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14223 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14224 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14225 #line 14226 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14226 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14227 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14228 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14229 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14230 char $dbfunc();
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14231
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14232 int main() {
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14233 $dbfunc()
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14234 ; return 0; }
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14235 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14237 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14238 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14239 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14240 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14241 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14242 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14243 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14244 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14245 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14246 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14247
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14249 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14250 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14251 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14252 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14253 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14254
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14255
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14256 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14257
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14258 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
14259
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14260 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14261 { test "$extra_verbose" = "yes" && cat << EOF
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14262 Defining DB_H_FILE = "$db_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14263 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14264 cat >> confdefs.h <<EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14265 #define DB_H_FILE "$db_h_file"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14266 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14267 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14269 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14270 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14271 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14272 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14273 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14274 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14275 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14276
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14277 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14278 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14279 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14280 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14281
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
14282 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14283 != "no no no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14284 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14285 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14286 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14287 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14288 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14289 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14290 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14291
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14292 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14293 echo " xemacs will be linked with \"database.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14294 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14295 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14297 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14298
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14299 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14300 echo "configure:14301: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14301 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14303 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14304 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14305 #line 14306 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14306 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14307 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14308 /* We use char because int might match the return type of a gcc2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14309 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14310 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14311
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14312 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14313 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14314 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14315 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14316 if { (eval echo configure:14317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14317 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14318 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14319 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14320 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14321 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14322 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14323 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14324 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14325 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14326 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14327
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14329 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14330 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14332 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14333 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14334 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14335 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14336 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14337 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14338 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14339
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14340 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14342 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14343 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14344 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14345
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14347 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14348 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14349 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14350 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14351 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14352 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14353 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14354
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14355 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14356
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14357 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14358 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14359 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14360 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14361 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14362 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14363 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14364 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14365
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14366 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14367 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14368
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14369 if test "$with_modules" != "no"; then
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14370 echo "checking for module support" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14371 echo "configure:14372: checking for module support" >&5
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14372
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14373 if test "$with_msw" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14374 have_dl=yes;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14375 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14376 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14377 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14378 echo "configure:14379: checking for dlfcn.h" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14379
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14380 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14381 #line 14382 "configure"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14382 #include "confdefs.h"
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14383 #include <dlfcn.h>
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14384 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14386 { (eval echo configure:14387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
14387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14388 if test -z "$ac_err"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14389 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14390 eval "ac_cv_header_$ac_safe=yes"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14391 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14392 echo "$ac_err" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14393 echo "configure: failed program was:" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14394 cat conftest.$ac_ext >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14395 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14396 eval "ac_cv_header_$ac_safe=no"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14397 fi
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14398 rm -f conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14400 echo "$ac_t""yes" 1>&6
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14401
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14402 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14403 echo "configure:14404: checking for dlopen in -lc" >&5
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14404 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14405 #line 14406 "configure"
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14406 #include "confdefs.h"
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14407 #include <dlfcn.h>
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14408 int main() {
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14409 dlopen ("", 0);
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14410 ; return 0; }
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14411 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14413 rm -rf conftest*
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14414 have_dl=yes
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14415 else
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14416 echo "configure: failed program was:" >&5
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14417 cat conftest.$ac_ext >&5
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14418 rm -rf conftest*
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14419
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14420 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14421 echo "configure:14422: checking for dlopen in -ldl" >&5
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14422 ac_save_LIBS="$LIBS"
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14423 LIBS="-ldl $LIBS"
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14424 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14425 #line 14426 "configure"
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14426 #include "confdefs.h"
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14427 #include <dlfcn.h>
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14428 int main() {
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14429 dlopen ("", 0);
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14430 ; return 0; }
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14431 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14432 if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14433 rm -rf conftest*
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14434 have_dl=yes
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14435 else
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14436 echo "configure: failed program was:" >&5
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14437 cat conftest.$ac_ext >&5
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14438 rm -rf conftest*
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14439 LIBS="$ac_save_LIBS"
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14440 fi
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14441 rm -f conftest*
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14442 ac_save_LIBS=
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14443 fi
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
14444 rm -f conftest*
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14445 else
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14446 echo "$ac_t""no" 1>&6
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14447 fi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14448
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14449 if test -n "$have_dl"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14450 { test "$extra_verbose" = "yes" && cat << \EOF
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14451 Defining HAVE_DLOPEN
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14452 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14453 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14454 #define HAVE_DLOPEN 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14455 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14456 }
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14457
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14458 else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14459
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14460 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14461 echo "configure:14462: checking for shl_load in -ldld" >&5
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14462 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14463
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14464 xe_check_libs=" -ldld "
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14465 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14466 #line 14467 "configure"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14467 #include "confdefs.h"
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14468 /* Override any gcc2 internal prototype to avoid an error. */
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14469 /* We use char because int might match the return type of a gcc2
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14470 builtin and then its argument prototype would still apply. */
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14471 char shl_load();
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14472
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14473 int main() {
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14474 shl_load()
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14475 ; return 0; }
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14476 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14478 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14479 eval "ac_cv_lib_$ac_lib_var=yes"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14480 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14481 echo "configure: failed program was:" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14482 cat conftest.$ac_ext >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14483 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14484 eval "ac_cv_lib_$ac_lib_var=no"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14485 fi
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14486 rm -f conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14487 xe_check_libs=""
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14488
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14490 echo "$ac_t""yes" 1>&6
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14491 libdl=dld have_dl=yes;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14492 { test "$extra_verbose" = "yes" && cat << \EOF
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14493 Defining HAVE_SHL_LOAD
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14494 EOF
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14495 cat >> confdefs.h <<\EOF
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14496 #define HAVE_SHL_LOAD 1
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14497 EOF
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14498 }
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14499
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14500 else
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14501 echo "$ac_t""no" 1>&6
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14502
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14503 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14504 echo "configure:14505: checking for dld_init in -ldld" >&5
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14505 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14506
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14507 xe_check_libs=" -ldld "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14508 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14509 #line 14510 "configure"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14510 #include "confdefs.h"
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14511 /* Override any gcc2 internal prototype to avoid an error. */
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14512 /* We use char because int might match the return type of a gcc2
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14513 builtin and then its argument prototype would still apply. */
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14514 char dld_init();
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14515
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14516 int main() {
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14517 dld_init()
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14518 ; return 0; }
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14519 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14520 if { (eval echo configure:14521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14521 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14522 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14523 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14524 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14525 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14526 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14527 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14528 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14529 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14530 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14531
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14533 echo "$ac_t""yes" 1>&6
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14534 libdl=dld have_dl=yes;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14535 { test "$extra_verbose" = "yes" && cat << \EOF
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14536 Defining HAVE_DLD_INIT
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14537 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14538 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14539 #define HAVE_DLD_INIT 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14540 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14541 }
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14542
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14543 else
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14544 echo "$ac_t""no" 1>&6
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14545 fi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14546
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14547
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14548 fi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14549
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14550
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14551 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14552 fi
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14553 if test -n "$have_dl"; then
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14554
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14555 dll_ld=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14556 dll_ldflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14557 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14558 dll_post=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14559 dll_ldo="-o"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14560 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14561 xehost=$canonical
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14562 xealias=$internal_configuration
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14563
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14564 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14565 echo "configure:14566: checking how to build dynamic libraries for ${xehost}" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14566 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14567 case "$xehost" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14568 *-*-linux-gnu*) ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14569 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14570 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14571
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14572 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14573 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14574 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14575
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14576 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14577 aix3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14578 # AIX sometimes has problems with the GCC collect2 program. For some
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14579 # reason, if we set the COLLECT_NAMES environment variable, the problems
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14580 # vanish in a puff of smoke.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14581 if test "${COLLECT_NAMES+set}" != set; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14582 COLLECT_NAMES=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14583 export COLLECT_NAMES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14584 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14585 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14586 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14587
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14588 # Now see if the compiler is really GCC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14589 if test "$GCC" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14590 XEGCC=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14591 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14592 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14593 echo "configure:14594: checking checking whether we are using GNU C" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14594 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14595 #line 14596 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14596 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14597
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14598 #ifdef __GNUC__
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14599 yes;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14600 #endif
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14601
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14602 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14604 egrep "yes" >/dev/null 2>&1; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14605 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14606 XEGCC=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14607 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14608 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14609 XEGCC=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14610 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14611 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14612
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14613 echo "$ac_t""${XEGCC}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14614 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14615
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14616 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14617 echo "configure:14618: checking how to produce PIC code" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14618 wl=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14619
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14620 can_build_shared=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14621 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14622 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14623
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14624 case "$xehost_os" in
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14625 aix[3-9]* | irix[5-9]* | osf[3-9])
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14626 # PIC is the default for these OSes.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14627 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14628
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14629 os2*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14630 # We can build DLLs from non-PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14631 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14632 amigaos*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14633 # FIXME: we need at least 68020 code to build shared libraries, but
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14634 # adding the `-m68020' flag to GCC prevents building anything better,
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14635 # like `-m68040'.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14636 dll_cflags='-m68020 -resident32 -malways-restore-a4'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14637 ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14638 *cygwin* | *mingw* )
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14639 # PIC is the default
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14640 ;;
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14641 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14642 dll_cflags='-fPIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14643 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14644 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14645 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14646 # PORTME Check for PIC flags for the system compiler.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14647 case "$xehost_os" in
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
14648 hpux9* | hpux1[0-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14649 # Is there a better link_static_flag that works with the bundled CC?
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14650 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14651 dll_cflags='+Z'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14652 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14653
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14654 irix[5-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14655 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14656 # PIC (with -KPIC) is the default.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14657 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14658
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14659 os2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14660 # We can build DLLs from non-PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14661 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14662
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14663 osf[3-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14664 # All OSF/1 code is PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14665 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14666 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14667
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14668 aix[3-9]*)
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14669 # All AIX code is PIC.
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14670 wl='-Wl,'
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14671 ;;
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14672
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14673 sco3.2v5*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14674 dll_cflags='-belf -Kpic'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14675 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14676 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14677
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14678 unixware*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14679 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14680 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14681 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14682
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14683 sysv4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14684 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14685 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14686 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14687
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14688 sysv5*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14689 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14690 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14691 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14692
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14693 solaris2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14694 dll_cflags='-KPIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14695 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14696 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14697
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14698 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14699 dll_cflags='-PIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14700 wl='-Qoption ld '
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14701 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14702
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14703 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14704 dll_cflags='-pic'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14705 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14706
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14707 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14708 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14709 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14710 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14711 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14712
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14713 if test -n "$dll_cflags"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14714 echo "$ac_t""${dll_cflags}" 1>&6
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14715
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14716 # Check to make sure the dll_cflags actually works.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14717 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14718 echo "configure:14719: checking if PIC flag ${dll_cflags} really works" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14719 save_CFLAGS="$CFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14720 CFLAGS="$CFLAGS $dll_cflags -DPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14721 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14722 #line 14723 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14723 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14724
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14725 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14726 int x=0;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14727 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14728 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14729 if { (eval echo configure:14730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14730 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14731
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14732 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14733 # reports no error. So, we need to grep stderr for (Bundled).
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14734 if grep '(Bundled)' config.log >/dev/null; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14735 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14736 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14737 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14738 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14739 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14740 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14741 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14742 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14743 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14744 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14745 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14746 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14747 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14748 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14749 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14750 CFLAGS="$save_CFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14751 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14752 echo "$ac_t""none" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14753 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14754
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14755 if test "$can_build_shared" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14756 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14757 xldf=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14758 xcldf=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14759 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14760 echo "configure:14761: checking if C compiler can produce shared libraries" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14761 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14762 xcldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14763 xldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14764 else # Not using GCC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14765 case "$xehost_os" in
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14766 aix[3-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14767 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14768 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14769 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14770
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14771 freebsd2* | netbsd* | openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14772 xldf="-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14773 xcldf="${wl}-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14774 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14775
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14776 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14777 xcldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14778 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14779
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14780 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14781 xldf="-b +s"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14782 xcldf="${wl}-b ${wl}+s"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14783 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14784
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14785 irix[5-9]* | osf[3-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14786 xcldf="${wl}-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14787 xldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14788 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14789
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14790 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14791 xcldf="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14792 xldf="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14793 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14794
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14795 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14796 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14797 xldf="-assert pure-text -Bstatic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14798 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14799 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14800 fi # End if if we are using gcc
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14801
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14802 if test -n "$xcldf"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14803 save_LDFLAGS=$LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14804 save_LIBS=$LIBS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14805 save_xe_libs=$xe_libs
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14806 LDFLAGS="$xcldf $LDFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14807 LIBS=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14808 xe_libs=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14809 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14810 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14811 #line 14812 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14812 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14813
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14814 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14815 int x=0;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14816 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14817 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14818 if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14819 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14820 cc_produces_so=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14821 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14822 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14823 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14824 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14825 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14826 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14827 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14828 LDFLAGS=$save_LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14829 LIBS=$save_LIBS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14830 xe_libs=$save_xe_libs
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14831 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14832 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14833 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14834 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14835 echo "$ac_t""${cc_produces_so}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14836
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14837 LTLD=$LD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14838 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14839 ac_prog=ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14840 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14841 # Check if gcc -print-prog-name=ld gives a path.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14842 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14843 echo "configure:14844: checking for ld used by GCC" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14844 ac_prog=`($CC -print-prog-name=ld) 2>&5`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14845 case "$ac_prog" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14846 # Accept absolute paths.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14847 /*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14848 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14849 case "$ac_prog" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14850 *gcc-lib*) LTLD="$CC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14851 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14852 *) LTLD="$ac_prog"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14853 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14854 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14855 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14856 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14857 "")
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14858 # If it fails, then pretend we aren't using GCC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14859 ac_prog=ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14860 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14861 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14862 # If it is relative, then search for the first ld in PATH.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14863 with_gnu_ld=unknown
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14864 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14865 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14866 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14867 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14868 echo "configure:14869: checking for GNU ld" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14869 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14870
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14871 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14873 for ac_dir in $PATH; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14874 test -z "$ac_dir" && ac_dir=.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14875 if test -f "$ac_dir/$ac_prog"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14876 LTLD="$ac_dir/$ac_prog"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14877 # Check to see if the program is GNU ld. I'd rather use --version,
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14878 # but apparently some GNU ld's only accept -v.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14879 # Break only if it was the GNU/non-GNU ld that we prefer.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14880 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14881 xe_gnu_ld=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14882 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14883 xe_gnu_ld=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14884 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14885 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14886 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14887 IFS="$ac_save_ifs"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14888 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14889
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14890 if test -n "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14891 echo "$ac_t""${LTLD}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14892 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14893 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14894 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14895
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14896 if test -z "$LTLD" -a "$cc_produces_so" = no; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14897 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14898 exit 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14899 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14900 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14901
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14902 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14903
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14904 # Check to see if it really is or isn't GNU ld.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14905 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14906 echo "configure:14907: checking if the linker is GNU ld" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14908 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14909 xe_gnu_ld=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14910 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14911 xe_gnu_ld=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14912 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14913 echo "$ac_t""${xe_gnu_ld}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14914
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14915 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14916 amigaos* | sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14917 # On these operating systems, we should treat GNU ld like the system ld.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14918 gnu_ld_acts_native=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14919 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14920 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14921 gnu_ld_acts_native=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14922 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14923 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14924
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14925 if test "$cc_produces_so" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14926 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14927 dll_ldflags=$xcldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14928 can_build_shared=yes
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
14929 ld_shlibs=yes
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14930 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14931 # OK - only NOW do we futz about with ld.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14932 # See if the linker supports building shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14933 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
14934 echo "configure:14935: checking whether the linker supports shared libraries" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14935 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14936 dll_ldflags=$LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14937 ld_shlibs=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14938 can_build_shared=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14939 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14940 # See if GNU ld supports shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14941 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14942 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14943 dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14944 ld_shlibs=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14945 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14946 ld_shlibs=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14947 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14948 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14949 # PORTME fill in a description of your system's linker (not GNU ld)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14950 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14951 aix3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14952 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14953 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14954 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14955
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14956 aix[4-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14957 dll_ldflags=$xcldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14958 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14959
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14960 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14961 # support. Future versions do this automatically, but an explicit c++rt0.o
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14962 # doesn't break anything, and helps significantly (at the cost of a little
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14963 # extra space).
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14964 freebsd2.2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14965 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14966 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14967 dll_post="/usr/lib/c++rt0.o"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14968 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14969
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14970 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14971 freebsd2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14972 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14973 dll_ldflags="-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14974 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14975
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14976 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14977 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14978 dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14979 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14980
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14981 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14982 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14983 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14984 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14985
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
14986 irix[5-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14987 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14988 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14989 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14990
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14991 netbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14992 # Tested with NetBSD 1.2 ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14993 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14994 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14995 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14996
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14997 openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14998 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14999 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15000 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15001
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15002 osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15003 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15004 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15005 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15006
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15007 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15008 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15009 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15010 case "$dll_ld" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15011 *gcc*) dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15012 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15013 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15014 *) dll_ldflags="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15015 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15016 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15017 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15018
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15019 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15020 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15021 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15022 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15023 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15024 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15025 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15026 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15027
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15028 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15029 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15030 dll_ldflags="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15031 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15032
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15033 bsdi*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15034 dll_ldflags="-r"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15035 dll_ld="shlicc2"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15036 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15037
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15038 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15039 ld_shlibs=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15040 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15041 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15042 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15043 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15044 echo "$ac_t""${ld_shlibs}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15045 if test "$ld_shlibs" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15046 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15047 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15048 fi # End of if cc_produces_so = no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15049
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15050
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15051 if test "$xe_gnu_ld" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15052 if test "$ld_shlibs" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15053 ld_dynamic_link_flags="${wl}-export-dynamic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15054 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15055 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15056
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15057 if test -z "$ld_dynamic_link_flags"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15058 case "$xehost_os" in
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
15059 aix[3-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15060 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15061 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15062
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15063 freebsd2.2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15064 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15065 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15066
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15067 freebsd2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15068 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15069 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15070
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15071 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15072 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15073 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15074
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15075 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15076 ld_dynamic_link_flags="${wl}-E"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15077 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15078
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 458
diff changeset
15079 irix[5-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15080 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15081 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15082
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15083 netbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15084 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15085 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15086
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15087 openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15088 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15089 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15090
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15091 osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15092 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15093 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15094
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15095 solaris2* | solaris7*)
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15096 ld_dynamic_link_flags=
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15097 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15098
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15099 sco3.2v5* | unixware* | sysv5* | sysv4*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15100 ld_dynamic_link_flags="${wl}-Bexport"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15101 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15102
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15103 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15104 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15105 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15106
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15107 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15108 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15109 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15110
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15111 bsdi*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15112 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15113 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15114
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15115 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15116 fi # End of if -z ld_dynamic_link_flags
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15117 fi # End of if test "$can_build_shared" = "yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15118
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15119
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15120
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15121
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15122
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15123
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15124
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15125
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15126 fi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15127
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15128 if test "$can_build_shared" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15129 { test "$extra_verbose" = "yes" && cat << \EOF
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15130 Defining HAVE_SHLIB
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15131 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15132 cat >> confdefs.h <<\EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15133 #define HAVE_SHLIB 1
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15134 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15135 }
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15136
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15137 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15138 echo " xemacs will be linked with \"sysdll.o emodules.o\""
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15139 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15140 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15141 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15142 for ac_func in dlerror _dlerror
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15143 do
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15145 echo "configure:15146: checking for $ac_func" >&5
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15146
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15147 cat > conftest.$ac_ext <<EOF
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15148 #line 15149 "configure"
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15149 #include "confdefs.h"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15150 /* System header to define __stub macros and hopefully few prototypes,
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15151 which can conflict with char $ac_func(); below. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15152 #include <assert.h>
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15153 /* Override any gcc2 internal prototype to avoid an error. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15154 /* We use char because int might match the return type of a gcc2
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15155 builtin and then its argument prototype would still apply. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15156 char $ac_func();
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15157
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15158 int main() {
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15159
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15160 /* The GNU C library defines this for functions which it implements
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15161 to always fail with ENOSYS. Some functions are actually named
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15162 something starting with __ and the normal name is an alias. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15164 choke me
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15165 #else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15166 $ac_func();
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15167 #endif
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15168
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15169 ; return 0; }
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15170 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15172 rm -rf conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15173 eval "ac_cv_func_$ac_func=yes"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15174 else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15175 echo "configure: failed program was:" >&5
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15176 cat conftest.$ac_ext >&5
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15177 rm -rf conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15178 eval "ac_cv_func_$ac_func=no"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15179 fi
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15180 rm -f conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15181
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15183 echo "$ac_t""yes" 1>&6
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15185 { test "$extra_verbose" = "yes" && cat << EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15186 Defining $ac_tr_func
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15187 EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15188 cat >> confdefs.h <<EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15189 #define $ac_tr_func 1
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15190 EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15191 }
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15192
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15193 else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15194 echo "$ac_t""no" 1>&6
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15195 fi
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15196 done
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
15197
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15198 with_modules=yes
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15199 else
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15200 if test "$with_modules" = "yes"; then
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15201 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15202 else
582
0dcc097685c7 [xemacs-hg @ 2001-05-27 01:50:52 by ben]
ben
parents: 567
diff changeset
15203 echo " No module support."
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15204 fi
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15205 with_modules=no
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15206 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15207 fi
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15208
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15209 cat > conftest.$ac_ext <<EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15210 #line 15211 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15211 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15212 int main(int c,char *v[]){return 0;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15213 EOF
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15215 then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15216 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15217 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15218 conftest_rc="$?"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15219 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15220 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15221 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15222
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15223 echo ""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15224 echo "*** PANIC *** The C compiler can no longer build working executables."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15225 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15226 echo "*** PANIC *** The most likely reason for this problem is that configure"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15227 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15228 echo "*** PANIC *** found at run time."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15229 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15230 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15231 echo "*** PANIC *** On other systems, try telling configure where to find the"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15232 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15233 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15234 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15235 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15236 echo "*** PANIC *** on your system. Don't do that."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15237 exit 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15238 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15239 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15240
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15241 if test "$win32_processes" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15242 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15243 echo " xemacs will be linked with \"process-nt.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15244 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15245 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15246 { test "$extra_verbose" = "yes" && cat << \EOF
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15247 Defining HAVE_UNIX_PROCESSES
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15248 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15249 cat >> confdefs.h <<\EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15250 #define HAVE_UNIX_PROCESSES 1
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15251 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15252 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15253
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15254 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15255 echo " xemacs will be linked with \"process-unix.o\""
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15256 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
15257 fi
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15258
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15259
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15260
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15261 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15262 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15263 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15264
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15265
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15266 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15267 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15268 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15269
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15270
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15271 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15272 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
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15273 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15274
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15275
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15276 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15277 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
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15278 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15279
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15280
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15281 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15282 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15283 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15284
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15285
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15286 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15287 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
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15288 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15289
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15290
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15291 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15292 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15293 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15294
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15295
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15296 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15297 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15298 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15299
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15300
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15301 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15302 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15303 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15304
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15305
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15306 T=""
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15307 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
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15308 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15309
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15310
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15311 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15312 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15313 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15314
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15315
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15316
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15317 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15318 internal_makefile_list="Makefile.in"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15319 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15320 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15321 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15322 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15323 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15324 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15325 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15326 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15327
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15328 T=""
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
15329 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15330 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15331
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15332
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15333 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15334 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15335 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15336
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15337 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15338
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15339
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15340
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
15341
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15342 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15343 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15344 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15345 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15346 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15347 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15348
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15349 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15350 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
15351 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
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15352 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15353 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15354
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15355
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15356 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15357 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15358 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15359 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15360
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15361 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15362 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15363 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15364 fi
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15365
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15366 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15367 test "$extra_verbose" = "yes" && echo "creating TAGS"
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15368 echo "
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15369 $srcdir/TAGS,include" > "TAGS"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15370 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15371
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15372 if test "$__SUNPRO_C" = "yes"; then
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 434
diff changeset
15373 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15374 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15375 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15376 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15377 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
15378 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15379
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15380 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15381
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15382
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15383
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15385
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15387
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15389
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15390
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15391
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15392
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15393
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15394
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15395
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
15396
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15397
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15398
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
15399
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
15400
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15401 PREFIX=$prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15402 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15403 case "$PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15404 *\$* ) eval "PREFIX=$PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15405 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15406 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15407 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15408
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15409
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15410
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15411
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15412 EXEC_PREFIX=$exec_prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15413 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15414 case "$EXEC_PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15415 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15416 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15417 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15418 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
15419
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15420
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15421
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15422
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15423 INFODIR=$infodir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15424 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15425 case "$INFODIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15426 *\$* ) eval "INFODIR=$INFODIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15427 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15428 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15429 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15430
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15431
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15432
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15433
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15434 INFOPATH=$infopath
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15435 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15436 case "$INFOPATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15437 *\$* ) eval "INFOPATH=$INFOPATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15438 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15439 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15440 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15441
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15442
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15443
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15444
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15445 PACKAGE_PATH=$package_path
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15446 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15447 case "$PACKAGE_PATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15448 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15449 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15450 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15451 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15452
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15453
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15454
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15455
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15456 LISPDIR=$lispdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15457 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15458 case "$LISPDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15459 *\$* ) eval "LISPDIR=$LISPDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15460 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15461 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15462 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15463
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15464
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15465
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15466
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15467 MODULEDIR=$moduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15468 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15469 case "$MODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15470 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15471 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15472 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15473 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15474
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15475
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15476
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15477
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15478 SITELISPDIR=$sitelispdir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15479 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15480 case "$SITELISPDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15481 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15482 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15483 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15484 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15485
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15486
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15487
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15488
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15489 SITEMODULEDIR=$sitemoduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15490 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15491 case "$SITEMODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15492 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15493 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15494 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15495 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15496
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15497
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15498
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15499
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15500 ETCDIR=$etcdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15501 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15502 case "$ETCDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15503 *\$* ) eval "ETCDIR=$ETCDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15504 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15505 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15506 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15507
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15508
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15509
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15510
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15511 DOCDIR=$docdir
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15512 while true; do
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15513 case "$DOCDIR" in
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15514 *\$* ) eval "DOCDIR=$DOCDIR" ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15515 *) break ;;
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15516 esac
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15517 done
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15518
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15519
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15520
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15521
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15522 ARCHLIBDIR=$archlibdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15523 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15524 case "$ARCHLIBDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15525 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15526 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15527 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
15528 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15529
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15531
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15532
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15533
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15534
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15535
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15536
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15537
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15539
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15540
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15541
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15542
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15543
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15544
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
15545
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15546
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
15547
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15548
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15549 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15550
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15551
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15552
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15553
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15554
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15555
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15556
594
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15557
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15558 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
fd49b88b9f06 [xemacs-hg @ 2001-05-31 12:47:21 by ben]
ben
parents: 585
diff changeset
15559 : ${XEMACS_CC:="$CC"}
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15560
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15561
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15562 if test "$with_prefix" = "yes"; then
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15563 { test "$extra_verbose" = "yes" && cat << \EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15564 Defining PREFIX_USER_DEFINED
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15565 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15566 cat >> confdefs.h <<\EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15567 #define PREFIX_USER_DEFINED 1
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15568 EOF
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15569 }
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15570
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
15571 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15572
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15573 if test "$with_site_lisp" = "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15574 { test "$extra_verbose" = "yes" && cat << \EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15575 Defining INHIBIT_SITE_LISP
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15576 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15577 cat >> confdefs.h <<\EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15578 #define INHIBIT_SITE_LISP 1
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15579 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15580 }
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15581
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
15582 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15583 if test "$with_site_modules" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15584 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15585 Defining INHIBIT_SITE_MODULES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15586 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15587 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15588 #define INHIBIT_SITE_MODULES 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15589 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15590 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15591
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
15592 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
15593
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15594
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15595 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15596 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15597 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15598
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15599 { test "$extra_verbose" = "yes" && cat << EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15600 Defining EMACS_CONFIGURATION = "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15601 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15602 cat >> confdefs.h <<EOF
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15603 #define EMACS_CONFIGURATION "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15604 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15605 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15607 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15608 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15609 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15610 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
15611 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15612 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15613 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
15614
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15615
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15616
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15617 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15618 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15619 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15620 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15621 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15622 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15623 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15624 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15625
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15626 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15627 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15628 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15629 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15630 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15631 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15632 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15633
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15634 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15635 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15636 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15637 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15638 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15639 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15640 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15641
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15642 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15643 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15645 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15646 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15647 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15648 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15649
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15650 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15651 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15652 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15653 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15654 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15655 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15656 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15657
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15658
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15659
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15660 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15661 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15662 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15663 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15664 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15665 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15666 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15667
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15668 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15669 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15670 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15671 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15672 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15673 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15674 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15675
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15676 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15677 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15678 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15679 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15680 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15681 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15682 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15683
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
15684 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15685 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15686 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15687 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15688 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15689 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15690 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
15691
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15692 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15693 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15694 Defining I18N3
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15695 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15696 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15697 #define I18N3 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15699 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15700
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
15701 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15702 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15703 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15704 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15705 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15706 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15707 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15708
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15709 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15710 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15711 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15712 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15713 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15714 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15715 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15716
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15717 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15718 Defining QUICK_BUILD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15719 EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15720 cat >> confdefs.h <<\EOF
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15721 #define QUICK_BUILD 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15722 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15723 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15724
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15725 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15726 Defining PURIFY
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15727 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15728 cat >> confdefs.h <<\EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15729 #define PURIFY 1
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15730 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15731 }
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
15732
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15733 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15734 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15735 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15736 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15737 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15738 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15739 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15740
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15741 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15742 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15743 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15744 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15745 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15746 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15747 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15748
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15749 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15750 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15751 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15752 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15753 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15754 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15755 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15756
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15757 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15758 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15759 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15760 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15761 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15762 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15763 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15764
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15765 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15766 Defining USE_UNION_TYPE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15767 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15768 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
15769 #define USE_UNION_TYPE 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15770 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15771 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15772
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15773 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15774 Defining PDUMP
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15775 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15776 cat >> confdefs.h <<\EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15777 #define PDUMP 1
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15778 EOF
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15779 }
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 422
diff changeset
15780
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15781
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15782
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15783 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15784 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15785 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15786 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15787 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15788 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15789 echo "$0 $quoted_arguments"
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15790 ) > Installation
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15791
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15792 if test ! -z ${emacs_beta_version} ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15793 if test -z "${emacs_is_beta}" ; then
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15794 xemacs_betaname=".${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15795 else
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15796 xemacs_betaname="-b${emacs_beta_version}"
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15797 fi
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15798 else
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
15799 xemacs_betaname=""
414
da8ed4261e83 Import from CVS: tag r21-2-15
cvs
parents: 412
diff changeset
15800 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15801
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15802 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15803 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15804
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
15805 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15806 "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15807 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15808 Compilation / Installation:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15809 echo " Source code location: $srcdir"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15810 echo " Installation prefix: $prefix"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
15811 if test -n "$site_includes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15812 echo " Additional header files: $site_includes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15813 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15814 if test -n "$site_libraries"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15815 echo " Additional libraries: $site_libraries"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15816 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
15817 if test -n "$site_prefixes"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15818 echo " Additional prefixes: $site_prefixes"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
15819 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15820 if test -n "$runpath"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15821 echo " Runtime library search path: $runpath"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15822 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15823
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15824 if test -n "$opsysfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15825 then echo " Operating system description file: \`$opsysfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15826 else echo " Not using any operating system description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15827 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15828 if test -n "$machfile"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15829 then echo " Machine description file: \`$machfile'"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15830 else echo " Not using any machine description file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15831 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15832
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15833 echo " Compiler: $CC $CFLAGS"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15834 echo " Relocating allocator for buffers: $rel_alloc"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15835 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15836
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15837 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15838 Window System:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15839 if test "$with_msw" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15840 echo " Compiling in support for the Microsoft window system."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15841 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15842 if test "$with_x11" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15843 echo " Compiling in support for the X window system:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15844 echo " - X Windows headers location: $x_includes"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15845 echo " - X Windows libraries location: $x_libraries"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15846 if test "$with_xauth" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15847 echo " - Xau (X authority) not available."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15848 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15849 if test "$with_xmu" != yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15850 echo " - Xmu library not available; substituting equivalent routines."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15851 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15852 if test "$with_wmcommand" != no; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15853 echo " - Handling WM_COMMAND properly."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15854 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15855 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15856 if test "$need_athena" = "yes"; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15857 echo " Compiling in support for the Athena widget set:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15858 echo " - Athena headers location: $athena_h_path"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15859 echo " - Athena library to link: $athena_lib"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15860 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15861 case "$with_menubars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15862 gtk ) echo " Using GTK menubars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15863 lucid ) echo " Using Lucid menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15864 motif ) echo " Using Motif menubars."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15865 echo " *WARNING* The Motif menubar implementation is currently buggy."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15866 echo " We recommend using the Lucid menubar instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15867 echo " Re-run configure with --with-menubars='lucid'." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15868 msw ) echo " Using MS-Windows menubars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15869 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15870 case "$with_scrollbars" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15871 gtk ) echo " Using GTK scrollbars." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15872 lucid ) echo " Using Lucid scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15873 motif ) echo " Using Motif scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15874 athena ) echo " Using Athena scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15875 msw ) echo " Using MS-Windows scrollbars." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15876 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15877 case "$with_dialogs" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15878 gtk ) echo " Using GTK dialog boxes." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15879 motif ) echo " Using Motif dialog boxes."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15880 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15881 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15882 echo " We recommend using the Athena dialog boxes instead."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15883 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15884 echo " Read the PROBLEMS file for more information."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15885 fi; fi ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15886 athena ) echo " Using Athena dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15887 msw ) echo " Using MS-Windows dialog boxes." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15888 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15889 case "$with_widgets" in
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
15890 gtk ) echo " Using GTK native widgets." ;;
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15891 motif ) echo " Using Motif native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15892 athena ) echo " Using Athena native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15893 msw ) echo " Using MS-Windows native widgets." ;;
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15894 esac
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15895 if test "$with_dragndrop" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15896 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15897 echo " - Drag'n'Drop prototype: $dragndrop_proto."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15898 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15899
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15900 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15901 TTY:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15902 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15903 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15904
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15905 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15906 Images:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15907 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
15908 if test "$with_xpm" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15909 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
15910 elif test "$with_x11" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15911 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15912 echo " WARNING: Compiling without XPM image support."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15913 if test "$xpm_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15914 echo " Reason: $xpm_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15915 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15916 echo " WARNING: You should strongly consider installing XPM."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15917 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15918 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15919 echo " WARNING: -----------------------------------------------------------"
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
15920 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15921 if test "$with_png" = yes; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15922 echo " Compiling in support for PNG images."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15923 elif test "$window_system" != "none"; then
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15924 echo " WARNING: -----------------------------------------------------------"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15925 echo " WARNING: Compiling without PNG image support."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15926 if test "$png_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15927 echo " Reason: $png_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15928 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15929 echo " WARNING: You should strongly consider installing the PNG libraries."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15930 echo " WARNING: Otherwise certain images and glyphs may not display."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
15931 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15932 echo " WARNING: -----------------------------------------------------------"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15933 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15934 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15935 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
310
851ff35f137f Import from CVS: tag r21-0b53
cvs
parents: 308
diff changeset
15936 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
15937
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15938 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15939 Sound:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15940 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15941 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15942 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15943 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15944
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15945 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15946 Databases:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15947 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15948 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
15949 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15950 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15951 if test "$with_postgresql" = yes; then
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15952 echo " Compiling in support for PostgreSQL."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15953 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15954 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15955 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15956
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15957 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15958 Internationalization:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15959 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15960 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15961 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15962 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15963 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15964 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15965 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
15966 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
15967 echo " Compiling in support for the WNN input method on Mule."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15968 test "$with_wnn6" = yes && echo " - Using WNN version 6."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15969 fi
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15970 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15971
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15972 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15973 Mail:"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15974 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15975 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15976 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15977 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15978
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15979 echo "
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15980 Other Features:"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15981 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
15982 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15983 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15984 test "$with_dnet" = yes && echo " Compiling in support for DNET."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15985 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15986 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15987 test "$pdump" = yes && echo " Using the new portable dumper."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15988 test "$debug" = yes && echo " Compiling in support for extra debugging code."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15989 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15990 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
15991 != "no no no no no no"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15992 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15993 echo " WARNING: Compiling in support for runtime error checking."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15994 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15995 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15996 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
15997 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
15998 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
15999 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16000 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
16001
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
16002
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16003 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16004 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16005 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16006 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16007 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16009
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16010 for file in $internal_makefile_list; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16011 test "$file" = src/Makefile.in && \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16012 file="src/Makefile.in:src/Makefile.in.in:src/depend"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
16013 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16014 done
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16015 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 426
diff changeset
16016 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
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16017
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16018 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16019
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16020 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16021
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16023 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16025
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16026 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16027 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16028 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16029 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16030 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16031 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16032
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16033 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16034
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16035 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16036
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16037 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16038 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16039
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16040 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16041 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16042 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16043 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16044 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16045 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16046 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16047 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16048 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16049 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16050 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16051 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16052 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16054 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16055 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16056 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16057 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16059 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16060 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16061 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16062 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16063 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16064 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16065 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16066 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16067 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16068 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16069
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16070 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16071 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16072
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16073 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16074 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16075 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16076
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16077 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16078 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16079 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16080 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16081 $extrasub
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16082 s%@SHELL@%$SHELL%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16083 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16084 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16085 s%@CXXFLAGS@%$CXXFLAGS%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16086 s%@FFLAGS@%$FFLAGS%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16087 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16088 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16089 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16090 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16091 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16092 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16093 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16094 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16095 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16096 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16097 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16098 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16099 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16100 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16101 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16102 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16103 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16104 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16105 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16106 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16107 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16108 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
16109 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16110 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16111 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16112 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16113 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16114 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16115 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16116 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16117 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16118 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16119 s%@SET_MAKE@%$SET_MAKE%g
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
16120 s%@GTK_CONFIG@%$GTK_CONFIG%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16121 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16122 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16123 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16124 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16125 s%@install_pp@%$install_pp%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
16126 s%@libs_xauth@%$libs_xauth%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16127 s%@dnd_objs@%$dnd_objs%g
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
16128 s%@lwlib_objs@%$lwlib_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16129 s%@ALLOCA@%$ALLOCA%g
426
43177a4f3daf Import from CVS: tag r21-2-21
cvs
parents: 424
diff changeset
16130 s%@have_esd_config@%$have_esd_config%g
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
16131 s%@dll_ld@%$dll_ld%g
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
16132 s%@dll_cflags@%$dll_cflags%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16133 s%@dll_ldflags@%$dll_ldflags%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16134 s%@dll_post@%$dll_post%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16135 s%@dll_ldo@%$dll_ldo%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16136 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16137 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
16138 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16139 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16140 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
16141 s%@PROGNAME@%$PROGNAME%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16142 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16143 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16144 s%@canonical@%$canonical%g
422
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16145 s%@inststaticdir@%$inststaticdir%g
95016f13131a Import from CVS: tag r21-2-19
cvs
parents: 420
diff changeset
16146 s%@instvardir@%$instvardir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16147 s%@srcdir@%$srcdir%g
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
16148 s%@pkgdir@%$pkgdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16149 s%@statedir@%$statedir%g
452
3d3049ae1304 Import from CVS: tag r21-2-41
cvs
parents: 450
diff changeset
16150 s%@extra_includes@%$extra_includes%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16151 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16152 s%@PREFIX@%$PREFIX%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16153 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
16154 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16155 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16156 s%@INFODIR@%$INFODIR%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
16157 s%@infopath@%$infopath%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16158 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16159 s%@INFOPATH@%$INFOPATH%g
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
16160 s%@package_path@%$package_path%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16161 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16162 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16163 s%@lispdir@%$lispdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16164 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16165 s%@LISPDIR@%$LISPDIR%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16166 s%@moduledir@%$moduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16167 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16168 s%@MODULEDIR@%$MODULEDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16169 s%@sitelispdir@%$sitelispdir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16170 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16171 s%@SITELISPDIR@%$SITELISPDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16172 s%@sitemoduledir@%$sitemoduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16173 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
16174 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16175 s%@etcdir@%$etcdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16176 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16177 s%@ETCDIR@%$ETCDIR%g
420
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16178 s%@docdir@%$docdir%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16179 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
41dbb7a9d5f2 Import from CVS: tag r21-2-18
cvs
parents: 418
diff changeset
16180 s%@DOCDIR@%$DOCDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16181 s%@archlibdir@%$archlibdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16182 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
16183 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16184 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16185 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16186 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16187 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16188 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16189 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16190 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16191 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16192 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16193 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16194 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16195 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16196 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
16197 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16198 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16199 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16200 s%@dynodump_arch@%$dynodump_arch%g
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16201 s%@XEMACS_CC@%$XEMACS_CC%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16202 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16203
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16204 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16205 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16206
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16207 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16208
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16209 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16210 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16211 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16212 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16213 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16214 ac_end=$ac_max_sed_cmds # Line after last line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16215 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16216 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16217 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16218 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16219 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16220 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16221 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16222 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16223 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16224 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16225 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16226 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16227 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16228 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16229 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16230 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16231 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16232 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16233 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16234 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16235 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16236 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16237 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16238 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16239 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16240 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16241
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16242 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16243
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
16244 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16245 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16246 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16247 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16249 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16250 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16251 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16252 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16253 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16254
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16255 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16257 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16258 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16260 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16261 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16262 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16263 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16264 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16265 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16266 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16267 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16268
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16269 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16270 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16271 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16272 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16273 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16274 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16275 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16276 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16277 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16279 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16280 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16281 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16282 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16283
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16284 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16285 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16286 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16287 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16288 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16289 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16290 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16291 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16293 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16294 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16295 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16296 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16297 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16298 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16299 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16300 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16301 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16302
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16305 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16306 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16307 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16308 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16309 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16310 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16311 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16312 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16313 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16314 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16315 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16316 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16317 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16318 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16319 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16320 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16321
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16322 if test "${CONFIG_HEADERS+set}" != set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16323 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16324 cat >> $CONFIG_STATUS <<EOF
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
16325 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16326 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16327 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16328 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16329 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16331 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16332 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16333 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16334 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16335 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16336
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16337 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16338
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16339 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16340 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16341 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16342
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16343 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16344
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16345 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16346 # the proper values into config.h.in to produce config.h. And first:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16347 # Protect against being on the right side of a sed subst in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16348 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16349 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16350 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16351 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16352 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16353 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16354 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16355 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16356 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16357 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16358 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16359
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16360 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16361 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16362 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16363 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16364 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16365 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16366
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16367 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16368 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16369
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16370 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16371 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16372 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16373 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16374 # grep -c gives empty output for an empty file on some AIX systems.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16375 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16376 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16377 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16378 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16379 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16380 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16381 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16382 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16383 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16384 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16385 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16386 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16387 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16388 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16389
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16390 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16391 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16392 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16393 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16394 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16395 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16396 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16397 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16398 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16399 # Remove last slash and all that follows it. Not all systems have dirname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16400 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16402 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16403 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16404 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16405 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16406 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16407 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16408 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16409
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16410 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16411 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16412 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16413 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16414 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16415
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16416 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16417 cat >> $CONFIG_STATUS <<\EOF
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16418 for dir in . $MAKE_SUBDIR; do
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
16419 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16420 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16421 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16422 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
16423 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16424 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
16425 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16426 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16427 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16428 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16429 d
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16430 }' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16431 -e '/./ {
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16432 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16433 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16434 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
16435 }' > junk.c;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16436
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16437
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16438
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16439 echo creating $dir/Makefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16440 $CPP -I. -I${top_srcdir}/src junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16441 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16442 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16443 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16444 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16445 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16446 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16447 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16448 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16449 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16450 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16451 mv -f Makefile.new Makefile
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16452
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16453 echo creating $dir/GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16454 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16455 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16456 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16457 -e 's/^ / /' \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16458 -e '/^[ ]*$/d' \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
16459 -e '/^\"/ {
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16460 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16461 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16462 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16463 }' > Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16464 chmod 444 Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16465 mv -f Makefile.new GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16466
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16467 rm -f junk.c
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
16468 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16469 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16470
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16471 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16472 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16473 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16474 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
16475 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16476
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
16477
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16478 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16479 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16480 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16481 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
16482 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1