annotate configure @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents 74fd4e045ea6
children 2f8bb876ab1d
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.
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5 #### Generated automatically using autoconf version 2.13
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6 #### Copyright (C) 1992, 93, 94, 95, 96 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.
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ### autoconf
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
17 ### 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
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
36 ### For usage, run `./configure --help'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
37 ### For more detailed information on building and installing XEmacs,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
38 ### read the file `INSTALL'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ### If configure succeeds, it leaves its status in config.status.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
41 ### A log of configuration tests can be found in config.log.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
45 ac_help="$ac_help
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
46 --with-x use the X Window System"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
47
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
48
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 if test -n "$ZSH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
51 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
52 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
53 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
54 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
55 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
56 elif test -n "$BASH_VERSION"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
57 set -o posix
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
58 unset CDPATH
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
59 else
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
60 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
61 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
62
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
63 exec_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
64 host=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
65 no_create=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
66 nonopt=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
67 no_recursion=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
68 prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
69 program_prefix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
70 program_suffix=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
71 program_transform_name=s,x,x,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
72 silent=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
73 site=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
74 srcdir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
75 target=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
76 verbose=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
77 x_includes=NONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
78 x_libraries=NONE
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
79
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
80 bindir='${exec_prefix}/bin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
81 sbindir='${exec_prefix}/sbin'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
82 libexecdir='${exec_prefix}/libexec'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
83 datadir='${prefix}/share'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
84 sysconfdir='${prefix}/etc'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
85 sharedstatedir='${prefix}/com'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
86 localstatedir='${prefix}/var'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
87 libdir='${{exec_prefix}}/lib'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
88 includedir='${prefix}/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
89 oldincludedir='/usr/include'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
90 infodir='${prefix}/info'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
91 mandir='${prefix}/man'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
92
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
93 subdirs=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
94 MFLAGS= MAKEFLAGS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
95 ac_max_here_lines=12
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
96
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
97 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
98
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
99 # File descriptor usage:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
100 # 0 standard input
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
101 # 1 file creation
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
102 # 2 errors and warnings
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
103 # 3 some systems may open it to /dev/tty
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
104 # 4 used on the Kubota Titan
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
105 # 6 checking for... messages and results
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
106 # 5 compiler messages saved in config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
107 if test "$silent" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
108 exec 6>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
109 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
110 exec 6>&1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
111 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
112 exec 5>./config.log
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
113
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
114 echo "\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
115 This file contains any messages produced by compilers while
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
116 running configure, to aid debugging if configure makes a mistake.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
117 " 1>&5
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 # 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
120 # Also quote any args containing shell metacharacters.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
121 ac_configure_args=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
122 for ac_arg
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
123 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
124 case "$ac_arg" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
126 | --no-cr | --no-c) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
130 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
131 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
132 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
133 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
135 # NLS nuisances.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
136 # 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
137 # because not all systems understand e.g. LANG=C (notably SCO).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
138 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
139 # Non-C LC_CTYPE values break the ctype check.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
140 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
141 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
142 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
143 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
144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
146 rm -rf conftest* confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
147 # 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
148 echo > confdefs.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
150 # A filename unique to this package, relative to the directory that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
151 # 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
152 ac_unique_file=src/lisp.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
153
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
154 # Find the source files, if location was not specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
155 if test -z "$srcdir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
156 ac_srcdir_defaulted=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
157 # Try the directory containing this script, then its parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
158 ac_prog=$0
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
159 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
160 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
161 srcdir=$ac_confdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
162 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
163 srcdir=..
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
164 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
165 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
166 ac_srcdir_defaulted=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
167 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
168 if test ! -r $srcdir/$ac_unique_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
169 if test "$ac_srcdir_defaulted" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
170 { 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
171 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
172 { 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
173 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
175 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
176
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
177 # Prefer explicitly selected file to automatically selected ones.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
178 if test -z "$CONFIG_SITE"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
179 if test "x$prefix" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
181 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
182 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
183 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
184 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
185 for ac_site_file in $CONFIG_SITE; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
186 if test -r "$ac_site_file"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
187 echo "loading site script $ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
188 . "$ac_site_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
189 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
190 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
191
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
192
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
193 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
194 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
195 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
196 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
197 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
198 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
199 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
200 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
201
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
202 ac_exeext=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
203 ac_objext=o
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
204 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
205 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
206 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
207 ac_n= ac_c='
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
208 ' ac_t=' '
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
209 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
210 ac_n=-n ac_c= ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
211 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
212 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
213 ac_n= ac_c='\c' ac_t=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
214 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
215
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
216
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
219
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
220 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
221 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
222
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 mandir='${prefix}/man/man1'
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
230 inststaticdir='${PROGNAME}'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
231 instvardir='${PROGNAME}-${version}'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
232 infodir='${datadir}/${instvardir}/info'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
233 infopath=''
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
234 install_pp=''
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
235 lispdir='${datadir}/${instvardir}/lisp'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
239 pkgdir='${datadir}/${instvardir}/lisp'
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
240 package_path=''
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
241 etcdir='${datadir}/${instvardir}/etc'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
242 lockdir='${statedir}/${inststaticdir}/lock'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
243 archlibdir='${datadir}/${instvardir}/${configuration}'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
244 docdir='${archlibdir}'
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
245 with_prefix='yes'
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
246 with_site_lisp='no'
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
247 with_site_modules='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 with_scrollbars=''
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
250 with_widgets=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 with_dialogs=''
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
252 with_file_coding=''
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
253 cpp='' cppflags='' libs='' ldflags=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 with_x11=''
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
256 with_msw=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 rel_alloc='default'
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
258 with_system_malloc='default'
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
259 with_dlmalloc='default'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 native_sound_lib=''
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
261 use_assertions="yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
262 with_toolbars=""
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
263 with_tty=""
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
264 use_union_type="no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
265 with_dnet=""
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
266 pdump="no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
267 with_dragndrop="no"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
270
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
271
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
274 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
277 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
279 | --no-cr | --no-c) ;;
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
281 | --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
282 *)
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
283 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
284 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
285 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
288 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 arg="$1"; shift
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
290 case "$arg" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
291 --no-create|--no-recursion) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
292 -* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
293 case "$arg" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 -*=*)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
295 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
296 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
299 -*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
300 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
301 val="yes" valomitted=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
305 optname="$opt"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
306 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
307
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
308 case "${valomitted}-${opt}" in yes-without_* )
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
309 opt=`echo $opt | sed 's/without/with/'`
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
310 valomitted="no" val="no" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
311 esac
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
312
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
313 case "$opt" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
314
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
315 with_site_lisp | \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
316 with_prefix | \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
317 with_site_modules | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
318 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
319 with_x11 | \
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
320 with_msw | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
321 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
322 dynamic | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
323 with_ncurses | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
324 with_dnet | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
325 with_socks | \
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
326 with_dragndrop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
327 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
328 with_offix | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
329 with_gpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
330 with_xpm | \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
331 with_xface | \
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
332 with_gif | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
333 with_jpeg | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
334 with_png | \
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
335 with_tiff | \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
336 with_wmcommand | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
337 with_xmu | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
338 with_purify | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
339 with_quantify | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
340 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
341 with_tty | \
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
342 with_xfs | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
343 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
344 with_mule | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
345 with_file_coding| \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
346 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
347 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
348 with_wnn6 | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
349 with_workshop | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
350 with_sparcworks | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
351 with_tooltalk | \
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
352 with_ldap | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
353 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
354 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
355 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
356 with_dnet | \
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
357 with_infodock | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
358 external_widget | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
359 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
360 extra_verbose | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
361 usage_tracking | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
362 use_union_type | \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
363 pdump | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
364 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
365 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
366 memory_usage_stats | \
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
367 with_clash_detection | \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
368 with_modules | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
369 no_doc_file )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
370 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 y | ye | yes ) val=yes ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
372 n | no ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
373 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
374 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
375 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 esac
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
377 eval "$opt=\"$val\"" ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
378
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
379
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
380 srcdir | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
381 compiler | \
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
382 cflags | \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
383 cpp | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
384 cppflags | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
385 libs | \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
386 ldflags | \
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
387 cache_file | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
388 native_sound_lib| \
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
389 site_lisp | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
390 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
391 x_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
392 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
393 site_libraries | \
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
394 site_prefixes | \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
395 site_runtime_libraries )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
396 if test "$valomitted" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
397 if test "$#" = 0 ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
398 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
399 echo " " "The \`--$optname' option requires a value."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
404 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
407 rel_alloc | \
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
408 with_dlmalloc | \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
409 with_debug_malloc | use_debug_malloc | \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
410 with_system_malloc | use_system_malloc )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
411 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 n | no ) val=no ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
414 d | de | def | defa | defau | defaul | default ) val=default ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
415 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
416 echo " " "The \`--$optname' option requires one of these values:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
417 \`yes', \`no', or \`default'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
418 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 esac
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
420 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
421 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
424 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
425 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
426 with_database_dbm=no
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
427 with_database_gdbm=no
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
428 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
429 case "$x" in
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
430 no ) ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
431 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
432 d | db | dbm ) with_database_dbm=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
433 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
434 * ) (echo "$progname: Usage error:"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
435 echo " " "The \`--$optname' option value
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
436 must be either \`no' or a comma-separated list
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
437 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
438 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
439 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
440 done
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
441 if test "$with_database_dbm" = "yes" -a \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
442 "$with_database_gdbm" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
443 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
444 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
445 with the \`--$optname' option."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
446 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
448 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
450 "with_sound" )
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
451 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
452 case "$x" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
453 n | no | non | none ) new_sdefault=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
454 a | al | all | both ) new_sdefault=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
455
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
456 native ) with_native_sound=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
457 nonative ) with_native_sound=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
458
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
459 nas ) with_nas_sound=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
460 nonas ) with_nas_sound=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
461
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
462 esd ) with_esd_sound=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
463 noesd ) with_esd_sound=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
464
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
465 * ) bogus_sound=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
466 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
467 if test "$bogus_sound" -o \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
468 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
469 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
470 (echo "$progname: Usage error:"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
471 echo " " "Valid types for the \`--$optname' option are:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
472 $types.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
473 The default is to autodetect all sound support."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
474 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
475 elif test -n "$new_sdefault" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
476 with_native_sound=$new_sdefault
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
477 with_nas_sound=$new_sdefault
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
478 with_esd_sound=$new_sdefault
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
479 new_sdefault= # reset this
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
480 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
481 sound_notfirst=true
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
482 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
483 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
484
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
485 "with_athena" )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
486 case "$val" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
487 xa | xaw ) val=xaw ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
488 3 | 3d | xaw3d ) val=3d ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
489 ne | nex | next | naxtaw) val=next ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
490 9 | 95 | xaw95 ) val=95 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
491 xp | xpm | xawxpm ) val=xpm ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
492 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
493 echo " " "The \`--$optname' option must have one of these values:
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
494 \`xaw', \`3d', \`next', \`95', or \`xpm'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
495 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
496 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
497 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
500 "with_xim" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
501 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
502 y | ye | yes ) val=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
503 n | no | non | none ) val=no ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
504 x | xl | xli | xlib ) val=xlib ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
505 m | mo | mot | moti | motif ) val=motif ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
506 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
507 echo " " "The \`--$optname' option must have one of these values:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
508 \`motif', \`xlib', \`yes', or \`no'."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
509 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
511 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
514 "mail_locking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
515 case "$val" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
516 lockf ) val=lockf ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
517 flock ) val=flock ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
518 file | dot ) val=file ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
519 locking ) val=locking ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
520 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
521 echo " " "The \`--$optname' option must have one of these values:
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
522 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
523 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
524 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
525 eval "$opt=\"$val\""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
526 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
527
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
528 "error_checking" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
529
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
530 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
531 case "$x" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
532 n | no | non | none ) new_default=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 nomalloc ) error_check_malloc=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
549
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
550 byte_code ) error_check_byte_code=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
551 nobyte_code ) error_check_byte_code=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
552
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
555 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
556 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
557 if test "$error_check_default" = yes ; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
558 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 else
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
560 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
562 (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
563 echo " " "Valid types for the \`--$optname' option are:
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
564 $types."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
565 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
566 elif test -n "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 error_check_malloc=$new_default
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
572 error_check_byte_code=$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 | \
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
581 mandir | infodir | infopath | lispdir | etcdir | lockdir | 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
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
595 Defining EXEC_PREFIX_USER_DEFINED
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
596 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
597 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
598 #define EXEC_PREFIX_USER_DEFINED 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
599 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
600 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
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 )
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
659 { test "$extra_verbose" = "yes" && cat << \EOF
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
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
667 { test "$extra_verbose" = "yes" && cat << \EOF
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
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
675 { test "$extra_verbose" = "yes" && cat << \EOF
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 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
690 ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
691 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
692 Defining LOCKDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
693 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
694 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
695 #define LOCKDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
696 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
697 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
698 ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
699 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
700 Defining DOCDIR_USER_DEFINED
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
701 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
702 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
703 #define DOCDIR_USER_DEFINED 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
704 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
705 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
706 ;;
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
707 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
708 Defining ARCHLIBDIR_USER_DEFINED
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
709 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
710 cat >> confdefs.h <<\EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
711 #define ARCHLIBDIR_USER_DEFINED 1
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
712 EOF
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
713 }
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
714 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
715 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
718 "no_create" ) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
719
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
720 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
721
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
722 "with_menubars" | \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
723 "with_scrollbars" | \
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
724 "with_dialogs" | \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
725 "with_widgets" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
726 case "$val" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 m | mo | mot | moti | motif ) val=motif ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 n | no | non | none ) val=no ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
731 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
732 echo " " "The \`--$optname' option must have one of these values:
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
733 \`lucid', \`motif', \`athena', or \`no'."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
736 eval "$opt=\"$val\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
739 "use_minimal_tagbits" | \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
740 "use_indexed_lrecord_implementation" | \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
741 "run_in_place" | \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
742 "const_is_losing" | \
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
743 "with_gnu_make" )
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
744 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
745 ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
746
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
747 * ) (echo "$progname: Usage error:"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
748 echo " " "Unrecognized option: $arg"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
754 *-*-*) configuration="$arg" ;;
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
755
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
756 *) (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
757 echo " " "Unrecognized argument: $arg"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
758 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
763
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
764 test -n "$cpp" && CPP="$cpp"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
765 test -n "$cppflags" && CPPFLAGS="$cppflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
766 test -n "$libs" && LIBS="$libs"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
767 test -n "$ldflags" && LDFLAGS="$ldflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
768
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
771 test "$extra_verbose" = "yes" && verbose=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
772
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
773 test -n "$with_x" && with_x11="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
774
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
775 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
776 test "$with_system_malloc" = "default" && with_system_malloc=yes
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
777 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
778
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
779
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
780
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
781 if test "$with_cde $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
782 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
783 echo " " "--with-cde requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
784 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
785 elif test "$with_tooltalk" = "no" ; then with_cde=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
786 elif test "$with_cde" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
787 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
788
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
789
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
790 case "$srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
791
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
792 "" )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
793 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
794 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
795 -f "$dir/lisp/version.el" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
796 srcdir="$dir"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
797 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
798 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
799 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
800 if test -z "$srcdir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
801 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
802 echo " " "Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
803 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
804 source tree, you should run \`$progname' in the directory in which
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
805 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
806 sources may be found."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
807 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
808 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
811 * )
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
812 if test ! -f "$srcdir/src/lisp.h" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
813 ! -f "$srcdir/lisp/version.el" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
814 (echo "$progname: Usage error:"
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
815 echo " " "The directory specified with the \`--srcdir' option,
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
816 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
817 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
818 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
819 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
824 if test -z "$configuration"; then
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
825 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
826 if test -z "$configuration"; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
827 (echo "$progname: Usage error:"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
828 echo " " "XEmacs has not been ported to this host type.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
829 Try explicitly specifying the CONFIGURATION when rerunning configure."
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
831 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
832 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
833
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
835 echo "configure:836: checking whether ln -s works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
836
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 rm -f conftestdata
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 if ln -s X conftestdata 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 rm -f conftestdata
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
841 ac_cv_prog_LN_S="ln -s"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
842 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
843 ac_cv_prog_LN_S=ln
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
844 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
845 LN_S="$ac_cv_prog_LN_S"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
846 if test "$ac_cv_prog_LN_S" = "ln -s"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
847 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
848 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
849 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
850 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
851
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
852
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
853 for dir in lisp etc man info tests; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
854 if test ! -d "$dir" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
855 echo Making symbolic link to "$srcdir/$dir"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
856 ${LN_S} "$srcdir/$dir" "$dir"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
860
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
861 absolute_pwd="`pwd`";
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
862 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
863 then blddir="$PWD"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
864 else blddir="$absolute_pwd"; if test -d "/net"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
865 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
866 blddir=`echo "$blddir" | \
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
867 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
868 fi
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
869 fi
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
870
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
871
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
872 case "$srcdir" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 /* ) ;;
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
874 . ) srcdir="$blddir" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
875 * ) srcdir="`cd $srcdir && 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 srcdir=`echo "$srcdir" | \
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 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
882 if test `pwd` != `sh -c cd $srcdir && pwd` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
883 && test -f "$srcdir/src/config.h"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
884 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 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
886 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 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
888 echo " now do \`make distclean' in $srcdir,"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
889 echo " and then run $progname again.") >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 extrasub='/^VPATH[ ]*=/c\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
899 . "$srcdir/version.sh" || exit 1;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
900 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
901 : "${extra_verbose=$beta}"
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
902 version="${emacs_major_version}.${emacs_minor_version}"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
903 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
904 Defining EMACS_MAJOR_VERSION = $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
905 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
906 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
907 #define EMACS_MAJOR_VERSION $emacs_major_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
908 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
909 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
910
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
911 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
912 Defining EMACS_MINOR_VERSION = $emacs_minor_version
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
913 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
914 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
915 #define EMACS_MINOR_VERSION $emacs_minor_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 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
918
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
919 if test -n "$emacs_beta_version" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
920 if test "$beta" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
921 version="${version}-b${emacs_beta_version}"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
922 { test "$extra_verbose" = "yes" && cat << EOF
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
923 Defining EMACS_BETA_VERSION = $emacs_beta_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_BETA_VERSION $emacs_beta_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
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
930 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
931 version="${version}.${emacs_beta_version}"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
932 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
933 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
934 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
935 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
936 #define EMACS_PATCH_LEVEL $emacs_beta_version
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
937 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
938 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
939
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
940 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
941 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
942 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
943 Defining XEMACS_CODENAME = "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
944 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
945 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
946 #define XEMACS_CODENAME "$xemacs_codename"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
947 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
948 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
949
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
950 { test "$extra_verbose" = "yes" && cat << EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
951 Defining EMACS_VERSION = "$version"
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
952 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
953 cat >> confdefs.h <<EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
954 #define EMACS_VERSION "$version"
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 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
957
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
958
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
959 if test "$with_infodock" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
960 if test ! -f ../../ID-INSTALL; then
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
961 echo "Cannot build InfoDock without InfoDock sources"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
962 with_infodock=no
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
963 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
964 fi
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
965
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
966 if test "$with_infodock" = "yes"; then
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
967 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
968 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
969 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
970 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
971 #define INFODOCK_MAJOR_VERSION $infodock_major_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
972 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
973 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
974
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
975 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
976 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
977 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
978 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
979 #define INFODOCK_MINOR_VERSION $infodock_minor_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 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
982
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
983 { test "$extra_verbose" = "yes" && cat << EOF
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
984 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
985 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
986 cat >> confdefs.h <<EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
987 #define INFODOCK_BUILD_VERSION $infodock_build_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 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
990
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
991 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
992 PROGNAME=infodock
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
993 CPPFLAGS="$CPPFLAGS -DINFODOCK"
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
994 else
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
995 PROGNAME=xemacs
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
996 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
997
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
998 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
999 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1000 Defining ERROR_CHECK_EXTENTS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1001 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1002 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1003 #define ERROR_CHECK_EXTENTS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1004 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1005 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1006
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1007 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1008 Defining ERROR_CHECK_TYPECHECK
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1009 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1010 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1011 #define ERROR_CHECK_TYPECHECK 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1012 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1013 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1014
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1015 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1016 Defining ERROR_CHECK_BUFPOS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1017 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1018 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1019 #define ERROR_CHECK_BUFPOS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1020 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1021 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1022
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1023 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1024 Defining ERROR_CHECK_GC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1025 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1026 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1027 #define ERROR_CHECK_GC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1028 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1029 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1030
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1031 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1032 Defining ERROR_CHECK_MALLOC
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1033 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1034 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1035 #define ERROR_CHECK_MALLOC 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1036 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1037 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1038
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1039 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1040 Defining ERROR_CHECK_BYTE_CODE
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1041 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1042 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1043 #define ERROR_CHECK_BYTE_CODE 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1044 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1045 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1046
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1047 if test "${debug:=$beta}" = "yes"; then
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1048 use_assertions=yes memory_usage_stats=yes
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1049 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1050 echo " xemacs will be linked with \"debug.o\""
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1051 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1052 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1053 echo " xemacs will be linked with \"tests.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1054 fi
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1055 { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1056 Defining DEBUG_XEMACS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1057 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1058 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1059 #define DEBUG_XEMACS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1060 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1061 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1062
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1063 fi
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1064 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1065 Defining USE_ASSERTIONS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1066 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1067 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1068 #define USE_ASSERTIONS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1069 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1070 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1071
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1072 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1073 Defining MEMORY_USAGE_STATS
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1074 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1075 cat >> confdefs.h <<\EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1076 #define MEMORY_USAGE_STATS 1
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1077 EOF
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1078 }
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1079
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
1080
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1081
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1082 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1083 echo "configure:1084: checking "host system type"" >&5
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
1084 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1085 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1086 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1087 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1088 echo "$ac_t""$configuration" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1090
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1091
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1092
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1093
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1094 machine='' opsys=''
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1095
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1096 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1097 sparc-*-* ) machine=sparc ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1098 alpha*-*-* ) machine=alpha ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1099 vax-*-* ) machine=vax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1100 mips-dec-* ) machine=pmax ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1101 mips-sgi-irix6* ) machine=iris6d ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1102 mips-sgi-* ) machine=iris4d ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1103 mips*-linux ) machine=mips ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1104 romp-ibm-* ) machine=ibmrt ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1105 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1106 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1107 powerpc*-* ) machine=powerpc ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1108 hppa-*-* ) machine=hp800 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1109 m88k-dg-* ) machine=aviion ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1110 m68*-sony-* ) machine=news ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1111 mips-sony-* ) machine=news-risc ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1112 clipper-* ) machine=clipper ;;
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1113 arm* ) machine=arm ;;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
1114 ns32k-* ) machine=ns32000 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1115 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1116
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1117 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1118 *-*-linux* ) opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1119 *-*-netbsd* ) opsys=netbsd ;;
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1120 *-*-openbsd* ) opsys=openbsd ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1121 *-*-nextstep* ) opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1122 *-*-vms ) opsys=vms ;;
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 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1125 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1126 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1127 *-dec-osf3* ) opsys=decosf3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1128 *-dec-osf4* ) opsys=decosf4-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1129
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1130 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1131 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1132 *-*-ultrix* ) opsys=ultrix4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1133
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1134 *-*-aix3.1* ) opsys=aix3-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1135 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1136 *-*-aix3* ) opsys=aix3-2 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1137 *-*-aix4.0* ) opsys=aix4 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1138 *-*-aix4.1* ) opsys=aix4-1 ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
1139 *-*-aix4* ) opsys=aix4-2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1140
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1141 *-gnu* ) opsys=gnu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1142 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1143 *-*-bsd4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1144 *-*-bsd4.3 ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1145 *-*-aos4.2 ) opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1146 *-*-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1147 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1148 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1149 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1150 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1151 *-*-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
1152 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1153 if test -z "$NON_GNU_CPP" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1154 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1155 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1156 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1157 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1158 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1159 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1160 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1161 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1162
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1163 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1164
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1165 *-*-netbsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1166 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 i[3-9]86-*-netbsd*) machine=intel386 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 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
1169 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1170 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1171 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1175 *-*-openbsd* )
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1176 case "${canonical}" in
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1177 i386-*-openbsd*) machine=intel386 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1178 m68k-*-openbsd*) machine=hp9000s300 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1179 mipsel-*-openbsd*) machine=pmax ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1180 esac
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1181 ;;
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
1182
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1183 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1184 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1186 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1187 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1189 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
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 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
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 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1195 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1196
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1197 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1198
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1199 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1200 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1201 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1203
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1204 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1205
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1206 *-convex-bsd* | *-convex-convexos* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1211 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1212
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1213 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
1214 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1215 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1216 m88k-dg-dgux* ) opsys=dgux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1217
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1218 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1219 m88k-motorola-sysv4* )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1220 machine=delta88k opsys=usg5-4-2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1222 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1224 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1225 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1226
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1227 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1228
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1229 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1230 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1231 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1233 m88k-harris-cxux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1234 case "`uname -r`" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1235 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1236 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1240 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1241 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
1242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1243 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1244
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1245 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1246
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1247 *-hp-hpux* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1248 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1249 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1250 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1251 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1252
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1253 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1254 *-hp-hpux7* ) opsys=hpux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1255 *-hp-hpux8* ) opsys=hpux8 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1256 *-hp-hpux9* ) opsys=hpux9 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1257 *-hp-hpux10* ) opsys=hpux10 ;;
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1258 *-hp-hpux11* ) opsys=hpux11 ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1259 * ) opsys=hpux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 esac
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1261
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1262 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
1263 echo " xemacs will be linked with \"strcat.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1264 fi ;; esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1265
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1266 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
1267 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1268 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
1269
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1270 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1271 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1273 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1274 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1275
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1276 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
1277 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
1278 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1279 romp-ibm-aos* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1280 romp-ibm-bsd* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1281 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1282
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1283 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1284 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1286 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1287
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1288 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1289
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1290 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1291
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1292 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
1293
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1294 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1295
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1296 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
1297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1298 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
1299
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1300 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1301
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1302 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1303
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1304 mips-mips-usg* ) machine=mips4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1305 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1306 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 NON_GNU_CPP="cc -systype bsd43 -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1309 case "$canonical" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1310 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1311 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1312 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1313 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1314 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1315 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1316
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1317 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1318
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1319 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1320
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1321 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
1322 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1324 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
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 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
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*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
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 pyramid-pyramid-bsd* ) machine=pyramid 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 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1333 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1335 mips-siemens-sysv* | mips-sni-sysv*)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1337 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1339 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1341 mips-nec-sysv*)
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1342 machine=mips-nec
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1343 NON_GNU_CC=/usr/ccs/bin/cc
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1344 NON_GNU_CPP=/usr/ccs/lib/cpp
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1345 ;;
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
1346
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1347 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1348 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
1349 mips-sgi-irix3.* ) opsys=irix3-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1350 mips-sgi-irix4.* ) opsys=irix4-0 ;;
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1351 mips-sgi-irix6* ) opsys=irix6-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1352 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1353 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1354 mips-sgi-irix5.* ) opsys=irix5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1355 mips-sgi-irix* ) opsys=irix5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1356
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1357 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1358 *-sony-news* ) opsys=newsos5 ;;
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 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1361
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1362 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1363 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1364 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 m68* ) machine=sun3 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1367 i*86*-sun-sunos[34]* ) machine=sun386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1368 i*86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1369 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1370 esac
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1371
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1372 case "$canonical" in *-sunos5*)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1373 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1374 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1376 case "$canonical" in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1377 *-sunos4* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1378 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1379 : ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1380 *-solaris2* )
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1381 #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
1382 RANLIB=':' ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1383 esac
149
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 case "$canonical" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1386 *-solaris* )
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1387 opsys=sol2
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1388 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
1389 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1390 Defining OS_RELEASE = $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1391 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1392 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1393 #define OS_RELEASE $os_release
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1394 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1395 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1396 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1397
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1398 i*86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1399 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1400 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1401 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1402 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1403 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1404 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1405 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1407
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1408 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1409
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1410 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1411 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1412
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1413 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1415 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1416 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1417
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1418 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1419
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1420 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1421
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1422 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1423 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1424
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1425 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1426
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1427 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1428
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1429 vax-dec-* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1430 case "$canonical" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1431 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1432 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1433 *-mach* ) opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1437 ns16k-whitechapel-* ) machine=mg1 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1438
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1439 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1441 i[3-9]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1442 machine=intel386
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1443 case "$canonical" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1444 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 *-isc* ) opsys=isc3-0 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1452 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1454 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1455 *-xenix* ) opsys=xenix ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1456 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1457 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1458 *-bsdi4* ) opsys=bsdos4 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1459 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1460 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1461 *-bsdi2* ) opsys=bsdos2 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1462 *-sco3.2v5* ) opsys=sco5 ;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1463 if test "$dynamic" = "yes" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1464 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1465 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1466 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1467 fi ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1468 *-sysv5* ) opsys=sco7 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1469 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1470 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1471 *-nextstep* ) opsys=nextstep ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1472 *-pc-cygwin* ) opsys=cygwin32 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1473 *-pc-mingw* ) opsys=mingw32 ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
1474 test -z "$with_tty" && with_tty="no";;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1475 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1478 m68k-*-linux* ) machine=m68k opsys=linux ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1479
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1480 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1482 if test -z "$machine" -o -z "$opsys"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1483 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1484 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1487 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1489 if test -z "$dynamic"; then
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1490 case "$opsys" in
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
1491 hpux* | sunos4* ) dynamic=no ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1492 *) dynamic=yes ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1493 esac
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1494 fi
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1495 if test "$dynamic" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1496 case "$opsys" in
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
1497 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1498 decosf* ) ld_call_shared="-call_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 esac
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1500 else case "$opsys" in
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
1501 sol2 )
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1502 echo "Static linking is not supported on Solaris 2."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1503 echo "Rerun configure without specifying --dynamic=no."
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1504 exit 1 ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1505 linux ) ld_call_shared="-Bstatic" ;;
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1506 decosf* ) ld_call_shared="-non_shared" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1508 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1510 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
1511
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
1512 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1513 { test "$extra_verbose" = "yes" && cat << EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1514 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1515 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1516 cat >> confdefs.h <<EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
1517 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1518 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1519 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1520
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1521
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1526 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1527 if test "$with_workshop $with_tooltalk" = "yes no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1528 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1529 echo " " "--with-workshop requires --with-tooltalk"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1530 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1531 elif test "$with_tooltalk" = "no" ; then with_workshop=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1532 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1533 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
1534
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1535 if test "$with_workshop" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1536 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1537 Defining SUNPRO
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1538 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1539 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1540 #define SUNPRO 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1541 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1542 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1543
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1544 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1545 echo " xemacs will be linked with \"sunpro.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1546 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1547 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1548
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1549 if test "$with_clash_detection" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1550 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1551 Defining CLASH_DETECTION
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1552 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1553 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1554 #define CLASH_DETECTION 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1555 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1556 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1557
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1558 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1559 echo " xemacs will be linked with \"filelock.o\""
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1560 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1561 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
1562
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1563 test -n "$compiler" && CC="$compiler"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1564 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
1565 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1566
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1567 test "${cflags-unset}" != unset && CFLAGS="$cflags"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1568 if test "${CFLAGS-unset}" != unset
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1569 then cflags_specified=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1570 else cflags_specified=no;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1571 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
1572
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1573 xe_save_CFLAGS="$CFLAGS"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1574
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1575 # 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
1576 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1578 echo "configure:1579: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1579
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1580 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1581 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1582 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1584 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1585 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1586 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1587 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1588 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1589 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1590 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1591 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1592 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1593 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1594 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1595 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1596 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1597 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1598 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1599 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1600
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1601 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1602 # 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
1603 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1605 echo "configure:1606: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1607 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1609 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1611 ac_prog_rejected=no
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1612 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1613 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1614 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1615 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1616 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1617 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1618 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1619 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1620 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1621 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1622 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1623 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1624 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1625 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1626 # 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
1627 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1628 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1629 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1630 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1631 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1632 # 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
1633 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1634 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1635 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1636 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1637 fi
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 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1640 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1641 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1642 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1643 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1644 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1645 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1646
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1647 if test -z "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1648 case "`uname -s`" in
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1649 *win32* | *WIN32*)
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1650 # Extract the first word of "cl", so it can be a program name with args.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1651 set dummy cl; ac_word=$2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1653 echo "configure:1654: checking for $ac_word" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1654
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1655 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1657 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1659 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1660 for ac_dir in $ac_dummy; do
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1661 test -z "$ac_dir" && ac_dir=.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1662 if test -f $ac_dir/$ac_word; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1663 ac_cv_prog_CC="cl"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1664 break
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1665 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1666 done
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1667 IFS="$ac_save_ifs"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1668 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1669 CC="$ac_cv_prog_CC"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1670 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1671 echo "$ac_t""$CC" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1672 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1673 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1674 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1675 ;;
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1676 esac
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1677 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1678 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
1679 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1680
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1682 echo "configure:1683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1683
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1684 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1685 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
1686 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1687 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1688 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
1689 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
1690 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
1691 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1692
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1693 cat > conftest.$ac_ext << EOF
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1694
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1695 #line 1696 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1696 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1697
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1698 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1699 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1700 if { (eval echo configure:1701: \"$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
1701 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1702 # 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
1703 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1704 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1705 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1706 ac_cv_prog_cc_cross=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1708 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1709 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1710 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1711 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1712 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1713 rm -fr conftest*
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1714 ac_ext=c
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1715 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1716 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1717 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1718 ac_cpp='$CPP '"$xe_cppflags"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1719 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1720 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1721 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1722
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1723 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1724 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1725 { 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
1726 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1728 echo "configure:1729: 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
1729 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1730 cross_compiling=$ac_cv_prog_cc_cross
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1731
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1732 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1733 echo "configure:1734: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1734
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1735 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1736 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1737 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1738 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1739 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1741: \"$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
1741 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1742 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1743 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1744 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1745
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1746 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1747
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1748 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1749 GCC=yes
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1750 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1751 GCC=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1752 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1753
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1754 ac_test_CFLAGS="${CFLAGS+set}"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1755 ac_save_CFLAGS="$CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1756 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1757 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1758 echo "configure:1759: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1759
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1760 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1762 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1763 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1764 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1765 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1766 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1767
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1768
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1769 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1770 if test "$ac_test_CFLAGS" = set; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1771 CFLAGS="$ac_save_CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1772 elif test $ac_cv_prog_cc_g = yes; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1773 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1774 CFLAGS="-g -O2"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1775 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1776 CFLAGS="-g"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1777 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1778 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1779 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1780 CFLAGS="-O2"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1781 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1782 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1783 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1784 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1785
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1786 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1787 CC=${NON_GNU_CC-cc}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1788 # 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
1789 set dummy gcc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1791 echo "configure:1792: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1792
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1793 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1795 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1797 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1798 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1799 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1800 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1801 ac_cv_prog_CC="gcc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1802 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1803 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1804 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1805 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1806 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1807 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1808 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1809 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1810 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1811 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1812 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1813
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1814 if test -z "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1815 # 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
1816 set dummy cc; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1818 echo "configure:1819: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1819
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1820 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1822 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1824 ac_prog_rejected=no
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1825 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1826 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1827 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1828 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1830 ac_prog_rejected=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1831 continue
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1832 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1833 ac_cv_prog_CC="cc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1834 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1835 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1836 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1837 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1838 if test $ac_prog_rejected = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1839 # 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
1840 set dummy $ac_cv_prog_CC
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1841 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1842 if test $# -gt 0; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1843 # We chose a different compiler from the bogus one.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1844 # However, it has the same basename, so the bogon will be chosen
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1845 # 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
1846 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1847 set dummy "$ac_dir/$ac_word" "$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1848 shift
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1849 ac_cv_prog_CC="$@"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1850 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1851 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1852 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1853 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1854 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1855 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1856 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1857 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1858 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1859
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1860 if test -z "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1861 case "`uname -s`" in
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1862 *win32* | *WIN32*)
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1863 # Extract the first word of "cl", so it can be a program name with args.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1864 set dummy cl; ac_word=$2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1866 echo "configure:1867: checking for $ac_word" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1867
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1868 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1870 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1872 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1873 for ac_dir in $ac_dummy; do
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1874 test -z "$ac_dir" && ac_dir=.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1875 if test -f $ac_dir/$ac_word; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1876 ac_cv_prog_CC="cl"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1877 break
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1878 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1879 done
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1880 IFS="$ac_save_ifs"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1881 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1882 CC="$ac_cv_prog_CC"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1883 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1884 echo "$ac_t""$CC" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1885 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1886 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1887 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1888 ;;
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1889 esac
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1890 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1891 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
1892 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1893
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1894 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1895 echo "configure:1896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1896
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1897 ac_ext=c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1898 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
1899 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
1900 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1901 ac_cpp='$CPP '"$xe_cppflags"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1902 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
1903 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
1904 cross_compiling=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1905
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1906 cat > conftest.$ac_ext << EOF
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1907
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1908 #line 1909 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1909 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1910
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1911 main(){return(0);}
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1912 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1913 if { (eval echo configure:1914: \"$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
1914 ac_cv_prog_cc_works=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1915 # 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
1916 if (./conftest; exit) 2>/dev/null; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1917 ac_cv_prog_cc_cross=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1918 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1919 ac_cv_prog_cc_cross=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1920 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1921 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1922 echo "configure: failed program was:" >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1923 cat conftest.$ac_ext >&5
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1924 ac_cv_prog_cc_works=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1925 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1926 rm -fr conftest*
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1927 ac_ext=c
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1928 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1929 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1930 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1931 ac_cpp='$CPP '"$xe_cppflags"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1932 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1933 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1934 cross_compiling=no
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1935
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1937 if test $ac_cv_prog_cc_works = no; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1938 { 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
1939 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1941 echo "configure:1942: 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
1942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1943 cross_compiling=$ac_cv_prog_cc_cross
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 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1946 echo "configure:1947: checking whether we are using GNU C" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1947
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1948 cat > conftest.c <<EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1949 #ifdef __GNUC__
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1950 yes;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1951 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1952 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1954: \"$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
1954 ac_cv_prog_gcc=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1955 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1956 ac_cv_prog_gcc=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1957 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1958
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1960
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1961 if test $ac_cv_prog_gcc = yes; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1962 GCC=yes
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1963 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1964 GCC=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1965 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1966
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1967 ac_test_CFLAGS="${CFLAGS+set}"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1968 ac_save_CFLAGS="$CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1969 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
1971 echo "configure:1972: checking whether ${CC-cc} accepts -g" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1972
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1973 echo 'void f(){}' > conftest.c
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1975 ac_cv_prog_cc_g=yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1976 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1977 ac_cv_prog_cc_g=no
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1978 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1979 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1980
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1981
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1983 if test "$ac_test_CFLAGS" = set; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1984 CFLAGS="$ac_save_CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1985 elif test $ac_cv_prog_cc_g = yes; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1986 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1987 CFLAGS="-g -O2"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1988 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1989 CFLAGS="-g"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1990 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1991 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1992 if test "$GCC" = yes; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1993 CFLAGS="-O2"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1994 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1995 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
1996 fi
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1997 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
1998
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
1999 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2000 CC=gcc
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2001 # 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
2002 set dummy gcc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2004 echo "configure:2005: checking for $ac_word" >&5
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2005
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2006 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2008 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2010 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2011 for ac_dir in $ac_dummy; do
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2012 test -z "$ac_dir" && ac_dir=.
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2013 if test -f $ac_dir/$ac_word; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2014 ac_cv_prog_CC="gcc"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2015 break
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2016 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2017 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2018 IFS="$ac_save_ifs"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2019 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2020 CC="$ac_cv_prog_CC"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2021 if test -n "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2022 echo "$ac_t""$CC" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2023 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2024 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2025 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2026
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2027 if test -z "$CC"; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2028 # 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
2029 set dummy cc; ac_word=$2
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2031 echo "configure:2032: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2032
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2033 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2035 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2037 ac_prog_rejected=no
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2038 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2039 for ac_dir in $ac_dummy; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2040 test -z "$ac_dir" && ac_dir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2041 if test -f $ac_dir/$ac_word; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2042 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2043 ac_prog_rejected=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2044 continue
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2045 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2046 ac_cv_prog_CC="cc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2047 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2048 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2049 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2050 IFS="$ac_save_ifs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2051 if test $ac_prog_rejected = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2052 # 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
2053 set dummy $ac_cv_prog_CC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2054 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2055 if test $# -gt 0; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2056 # We chose a different compiler from the bogus one.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2057 # However, it has the same basename, so the bogon will be chosen
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2058 # 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
2059 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2060 set dummy "$ac_dir/$ac_word" "$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2061 shift
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2062 ac_cv_prog_CC="$@"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2063 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2064 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2065 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2066 CC="$ac_cv_prog_CC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2067 if test -n "$CC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2068 echo "$ac_t""$CC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2069 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2070 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2071 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2072
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2073 if test -z "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2074 case "`uname -s`" in
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2075 *win32* | *WIN32*)
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2076 # Extract the first word of "cl", so it can be a program name with args.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2077 set dummy cl; ac_word=$2
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2079 echo "configure:2080: checking for $ac_word" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2080
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2081 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2083 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2085 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2086 for ac_dir in $ac_dummy; do
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2087 test -z "$ac_dir" && ac_dir=.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2088 if test -f $ac_dir/$ac_word; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2089 ac_cv_prog_CC="cl"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2090 break
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2091 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2092 done
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2093 IFS="$ac_save_ifs"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2094 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2095 CC="$ac_cv_prog_CC"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2096 if test -n "$CC"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2097 echo "$ac_t""$CC" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2098 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2099 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2100 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2101 ;;
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2102 esac
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2103 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2104 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
2105 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2106
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2108 echo "configure:2109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2109
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2110 ac_ext=c
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2111 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
2112 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2113 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2114 ac_cpp='$CPP '"$xe_cppflags"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2115 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
2116 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
2117 cross_compiling=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2118
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2119 cat > conftest.$ac_ext << EOF
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2120
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2121 #line 2122 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2122 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2123
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2124 main(){return(0);}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2125 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2126 if { (eval echo configure:2127: \"$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
2127 ac_cv_prog_cc_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2128 # 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
2129 if (./conftest; exit) 2>/dev/null; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2130 ac_cv_prog_cc_cross=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2131 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2132 ac_cv_prog_cc_cross=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2133 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2134 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2135 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2136 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2137 ac_cv_prog_cc_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2138 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2139 rm -fr conftest*
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2140 ac_ext=c
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2141 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2142 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2143 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2144 ac_cpp='$CPP '"$xe_cppflags"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2145 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2146 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2147 cross_compiling=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2148
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2149 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2150 if test $ac_cv_prog_cc_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2151 { 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
2152 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2154 echo "configure:2155: 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
2155 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2156 cross_compiling=$ac_cv_prog_cc_cross
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 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2159 echo "configure:2160: checking whether we are using GNU C" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2160
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2161 cat > conftest.c <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2162 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2163 yes;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2164 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2165 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2166 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2167: \"$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
2167 ac_cv_prog_gcc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2168 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2169 ac_cv_prog_gcc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2170 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2171
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2172 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2173
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2174 if test $ac_cv_prog_gcc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2175 GCC=yes
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2176 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2177 GCC=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2178 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2179
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2180 ac_test_CFLAGS="${CFLAGS+set}"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2181 ac_save_CFLAGS="$CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2182 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2183 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2184 echo "configure:2185: checking whether ${CC-cc} accepts -g" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2185
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2186 echo 'void f(){}' > conftest.c
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2187 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2188 ac_cv_prog_cc_g=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2189 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2190 ac_cv_prog_cc_g=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2191 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2192 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2193
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2194
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2195 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2196 if test "$ac_test_CFLAGS" = set; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2197 CFLAGS="$ac_save_CFLAGS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2198 elif test $ac_cv_prog_cc_g = yes; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2199 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2200 CFLAGS="-g -O2"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2201 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2202 CFLAGS="-g"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2203 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2204 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2205 if test "$GCC" = yes; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2206 CFLAGS="-O2"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2207 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2208 CFLAGS=
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2209 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2210 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2211
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2212 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2213 CFLAGS="$xe_save_CFLAGS"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2214
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2215
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2216 test -n "$CPP" -a -d "$CPP" && CPP=
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 169
diff changeset
2217
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
2218 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
2219
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2220 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2221 echo "configure:2222: checking how to run the C preprocessor" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2222 # On Suns, sometimes $CPP names a directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2223 if test -n "$CPP" && test -d "$CPP"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2224 CPP=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2225 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2226 if test -z "$CPP"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2227
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2228 # 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
2229 # substituted into the Makefile and "${CC-cc}" will confuse make.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2230 CPP="${CC-cc} -E"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2231 # 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
2232 # not just through cpp.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2233 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2234 #line 2235 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2235 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2236 #include <assert.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2237 Syntax Error
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2238 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2240 { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2242 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2243 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2244 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2245 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2246 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2247 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2248 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2249 CPP="${CC-cc} -E -traditional-cpp"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2250 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2251 #line 2252 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2252 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2253 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2254 Syntax Error
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2255 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2259 if test -z "$ac_err"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2260 :
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2261 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2262 echo "$ac_err" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2263 echo "configure: failed program was:" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2264 cat conftest.$ac_ext >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2265 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2266 CPP="${CC-cc} -nologo -E"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2267 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2268 #line 2269 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2269 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2270 #include <assert.h>
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2271 Syntax Error
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2272 EOF
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2276 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2277 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2278 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2279 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2280 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2281 cat conftest.$ac_ext >&5
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2282 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2283 CPP=/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2284 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2285 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2286 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2287 rm -f conftest*
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2288 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2289 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2290 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2291 CPP="$ac_cv_prog_CPP"
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 ac_cv_prog_CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2294 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2295 echo "$ac_t""$CPP" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2296
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2297
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2298
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2299
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2300 echo $ac_n "checking for AIX""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2301 echo "configure:2302: checking for AIX" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2302 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2303 #line 2304 "configure"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2304 #include "confdefs.h"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2305 #ifdef _AIX
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2306 yes
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2307 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2308
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2309 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2311 egrep "yes" >/dev/null 2>&1; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2312 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2313 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2314 Defining _ALL_SOURCE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2315 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2316 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2317 #define _ALL_SOURCE 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2318 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2319 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2320
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2321 else
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2322 rm -rf conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2323 echo "$ac_t""no" 1>&6
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2324 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2325 rm -f conftest*
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2326
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2327
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2328 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2329 echo "configure:2330: checking for GNU libc" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2330 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2331 #line 2332 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2332 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2333 #include <features.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2334 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2335
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2336 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2337 #error Not a GNU libc system :-(
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2338 ******* ======= ******** &&&&&&&&
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2339 #endif
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2340
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2341 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2342 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2343 if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2344 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2345 have_glibc=yes
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2346 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2347 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2348 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2349 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2350 have_glibc=no
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2351 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2352 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2353 echo "$ac_t""$have_glibc" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2354 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2355 Defining _GNU_SOURCE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2356 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2357 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2358 #define _GNU_SOURCE 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2359 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2360 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2361
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
2362
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2363 case "$opsys" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2364 sol2)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2365 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2366 Defining __EXTENSIONS__
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2367 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2368 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2369 #define __EXTENSIONS__ 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2370 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2371 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2372
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2373 if test "$os_release" -ge 55; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2374 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2375 Defining _XOPEN_SOURCE = 500
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2376 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2377 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2378 #define _XOPEN_SOURCE 500
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2379 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2380 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2381
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2382 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2383 Defining _XOPEN_SOURCE_EXTENDED
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2384 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2385 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2386 #define _XOPEN_SOURCE_EXTENDED 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2387 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2388 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2389
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2390 fi ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2391 linux)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2392 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2393 Defining _POSIX_C_SOURCE = 199506L
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2394 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2395 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2396 #define _POSIX_C_SOURCE 199506L
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2397 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2398 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2399
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2400 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2401 Defining _XOPEN_SOURCE = 500
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2402 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2403 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2404 #define _XOPEN_SOURCE 500
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2405 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2406 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2407
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2408 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2409 Defining _XOPEN_SOURCE_EXTENDED
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2410 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2411 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2412 #define _XOPEN_SOURCE_EXTENDED 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2413 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2414 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2415
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2416 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2417 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2418
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2419 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2420 #line 2421 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2421 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2422 int main () {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2423 #if defined __SUNPRO_C
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2424 return 11;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2425 #elif defined __DECC
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2426 return 12;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2427 #else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2428 return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2429 #endif
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2430 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2431 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2432 if { (eval echo configure:2433: \"$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
2433 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2434 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2435 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2436 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2437 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2438 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2439 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2440 case "$conftest_rc" in
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2441 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
2442 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2443 esac
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2444 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2445 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2446
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2447
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2449
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2450 echo "Extracting information from the machine- and system-dependent headers..."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2452 tempcname="conftest.c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2453
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2454
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2455
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2456 cat > $tempcname <<EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2457 #define NOT_C_CODE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2458 #define C_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2459 #define C_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2460 #define LD_SWITCH_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2461 #define LD_SWITCH_X_SITE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2462 #define LD_SWITCH_X_SITE_AUX
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2463 #define OS_RELEASE $os_release
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2464 #include "$srcdir/src/$opsysfile"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2465 #include "$srcdir/src/$machfile"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2466
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2467 #ifndef LIBS_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2468 #define LIBS_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2469 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2470 configure___ libs_machine=LIBS_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2471
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2472 #ifndef LIBS_SYSTEM
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2473 #define LIBS_SYSTEM
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2474 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2475 configure___ libs_system=LIBS_SYSTEM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2476
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2477 #ifndef LIBS_TERMCAP
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2478 #define LIBS_TERMCAP
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2479 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2480 configure___ libs_termcap=LIBS_TERMCAP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2481
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2482 #ifndef LIB_STANDARD
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2483 #define LIB_STANDARD
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2484 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2485 configure___ libs_standard=LIB_STANDARD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2486
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2487
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2488 #ifndef OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2489 #define OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2490 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2491 configure___ objects_machine=OBJECTS_MACHINE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2492
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2493 #ifndef OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2494 #define OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2495 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2496 configure___ objects_system=OBJECTS_SYSTEM
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2497
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2498
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2499 #ifndef C_SWITCH_MACHINE
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2500 #define C_SWITCH_MACHINE
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2501 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2502 configure___ c_switch_machine=C_SWITCH_MACHINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2503
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2504 #ifndef C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2505 #define C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2506 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2507 configure___ c_switch_system=C_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2508
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2509
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2510 #ifndef LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2511 #define LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2512 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2513 configure___ ld_switch_machine=LD_SWITCH_MACHINE
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2514
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2515 #ifndef LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2516 #define LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2517 #endif
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2518 configure___ ld_switch_system=LD_SWITCH_SYSTEM
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2519
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2520
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2521 #ifndef UNEXEC
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2522 #define UNEXEC "unexec.o"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2523 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2524 configure___ unexec=UNEXEC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2525
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2526
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2527 #ifndef LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2528 #define LD_SWITCH_SHARED "-c"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2529 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2530 configure___ ld_switch_shared=LD_SWITCH_SHARED
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2531
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2532
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2533 #ifdef ORDINARY_LINK
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2534 #define LD "\$(CC) \$(CFLAGS)"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2535 #else /* no ORDINARY LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2536 #ifdef COFF_ENCAPSULATE
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2537 #define LD "\$(CC) -nostdlib"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2538 #else /* not COFF_ENCAPSULATE */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2539 #ifdef LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2540 #define LD LINKER
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2541 #else /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2542 #define LD "ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2543 #endif /* ! defined (LINKER) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2544 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2545 #endif /* not ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2546 configure___ ld=LD
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2547
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2548 #ifndef LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2549 #define LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2550 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2551 configure___ lib_gcc=LIB_GCC
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2552
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2553 #ifndef LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2554 #define LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2555 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2556 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2557
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2558
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2559 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2560 #ifdef NO_REMAP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2561 #ifdef COFF_ENCAPSULATE
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2562 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2563 #else /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2564 #define START_FILES "pre-crt0.o /lib/crt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2565 #endif /* ! defined (COFF_ENCAPSULATE) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2566 #else /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2567 #define START_FILES "ecrt0.o"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2568 #endif /* ! defined (NO_REMAP) */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2569 #endif /* no ORDINARY_LINK */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2570 #ifndef START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2571 #define START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2572 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2573 configure___ start_files=START_FILES
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2574
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2575 #ifdef ORDINARY_LINK
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2576 configure___ ordinary_link=yes
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2577 #else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2578 configure___ ordinary_link=no
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2579 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2580
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2581 #ifdef SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2582 configure___ system_malloc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2583 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2584 configure___ system_malloc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2585 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2586
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2587 #ifdef TERMINFO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2588 configure___ have_terminfo=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2589 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2590 configure___ have_terminfo=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2591 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2592
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2593 #ifdef MAIL_USE_FLOCK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2594 configure___ mail_use_flock=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2595 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2596 configure___ mail_use_flock=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2597 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2598
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2599 #ifdef MAIL_USE_LOCKF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2600 configure___ mail_use_lockf=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2601 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2602 configure___ mail_use_lockf=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2603 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2604
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2605 #ifdef MAIL_USE_LOCKING
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2606 configure___ mail_use_locking=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2607 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2608 configure___ mail_use_locking=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2609 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2610
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2611 #ifdef HAVE_WIN32_PROCESSES
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2612 configure___ win32_processes=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2613 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2614 configure___ win32_processes=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2615 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2616
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2617 EOF
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
2618
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2619 CPP=`eval "echo $CPP $CPPFLAGS"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2620 eval `$CPP -Isrc $tempcname \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2621 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2622
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2623 rm $tempcname
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
2624
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2625 test "$extra_verbose" = "yes" && \
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 197
diff changeset
2626 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
2627
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2628 case "$opsys" in mingw*) mingw_include=`eval "gcc -print-file-name=libc.a"` ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2629 mingw_include=`eval "dirname $mingw_include"` ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2630 mingw_include="-I$mingw_include/../include/mingw32" ;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2631 c_switch_system="$c_switch_system $mingw_include" && if test "$extra_verbose" = "yes"; then echo " Appending \"$mingw_include\" to \$c_switch_system"; fi ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2632 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2633
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2634 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
2635
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2636 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2637
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2638 if test "$cflags_specified" = "no"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2639 if test "$GCC" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2640 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2641 elif test "$__SUNPRO_C" = "yes"; then
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2642 case "$opsys" in
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2643 sol2 ) CFLAGS="-v -xO4" ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2644 sunos4* ) CFLAGS="-xO2";;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2645 esac
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2646 elif test "$__DECC" = "yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2647 CFLAGS="-O3"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2648 elif test "$CC" = "xlc"; then
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2649 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2650 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2651 CFLAGS="-O" ; fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2652 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2653
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2654 if test "$GCC" = "yes"; then
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2655 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2656 echo "configure:2657: checking for buggy gcc versions" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2657 GCC_VERSION=`$CC --version`
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2658 case `uname -s`:`uname -m`:$GCC_VERSION in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2659 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2660 case "$CFLAGS" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2661 *-O2*|*-O3*)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2662 case "$CFLAGS" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2663 *-fno-schedule-insns*) ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2664 *)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2665 echo "$ac_t""Yes" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2666 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2667 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2668 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2669 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2670 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2671 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2672 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2673 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2674 Linux:alpha:egcs-2.91.*)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2675 echo "$ac_t""Yes" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2676 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2677 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2678 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2679 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2680 *:i*86*:2.7.2*)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2681 case "$GCC_VERSION" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2682 2.7.2)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2683 case "$CFLAGS" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2684 *-O2*|*-O3*)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2685 case "$CFLAGS" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2686 *-fno-strength-reduce*) ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2687 *)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2688 echo "$ac_t""Yes" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2689 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2690 echo "configure: warning: -fno-strength-reduce." 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2691 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2692 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2693 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2694 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2695 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2696 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2697 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2698 case "$CFLAGS" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2699 *-fno-caller-saves*) ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2700 *)
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2701 echo "$ac_t""Yes" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2702 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2703 echo "configure: warning: -fno-caller-saves." 1>&2
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2704 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2705 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2706 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2707 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2708 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2709 fi
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2710 echo "$ac_t""No" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2711
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2712
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2713 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2714 set x $ld_switch_system; shift; ld_switch_system=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2715 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2716 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2717 -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
2718 -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
2719 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2720 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2721 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2722 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2723 done
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2724 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2725
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2726 if test "$GCC" = "yes"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2727 set x $ld_switch_machine; shift; ld_switch_machine=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2728 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2729 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2730 -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
2731 -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
2732 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2733 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2734 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2735 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2736 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2737 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2738
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2739 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2740 set x $LDFLAGS; shift; LDFLAGS=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2741 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2742 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2743 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2744 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2745 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2746 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2747 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2748 shift
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2749 done
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2750 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2751
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2752 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2753 set x $ld_call_shared; shift; ld_call_shared=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2754 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2755 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2756 -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
2757 -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
2758 -Xlinker* ) ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2759 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2760 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2761 shift
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
2762 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2763 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2764
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2765 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
2766 echo " xemacs will be linked with \"$objects_machine\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2767 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2768 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
2769 echo " xemacs will be linked with \"$objects_system\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2770 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2771 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2772 echo " xemacs will be linked with \"$unexec\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2773 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2774
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2775 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2776 echo "configure:2777: checking for dynodump" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2777 if test "$unexec" != "unexsol2.o"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2778 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2779 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2780 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2781 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2782 Defining DYNODUMP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2783 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2784 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2785 #define DYNODUMP 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2786 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2787 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2788
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2789 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
2790 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
2791 case "$machine" in
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2792 sparc ) dynodump_arch=sparc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2793 *86* ) dynodump_arch=i386 ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2794 powerpc ) dynodump_arch=ppc ;;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2795 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2796 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
2797 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2798
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2799
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
2800 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2801
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2802 if test "$unexec" = "unexaix.o"; then
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
2803 if test "$dynamic" = "no"; then
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2804 start_flags="-Wl,-bnso,-bnodelcsect"
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2805 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2806 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2807 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2808 done
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2809 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
2810 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
2811 done
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2812
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2813 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2814 echo "configure:2815: checking for terminateAndUnload in -lC" >&5
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2815 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2816
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2817 xe_check_libs=" -lC "
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2818 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2819 #line 2820 "configure"
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2820 #include "confdefs.h"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2821 /* Override any gcc2 internal prototype to avoid an error. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2822 /* 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
2823 builtin and then its argument prototype would still apply. */
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2824 char terminateAndUnload();
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2825
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2826 int main() {
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2827 terminateAndUnload()
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2828 ; return 0; }
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2829 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2830 if { (eval echo configure:2831: \"$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
2831 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2832 eval "ac_cv_lib_$ac_lib_var=yes"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2833 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2834 echo "configure: failed program was:" >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2835 cat conftest.$ac_ext >&5
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2836 rm -rf conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2837 eval "ac_cv_lib_$ac_lib_var=no"
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2838 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2839 rm -f conftest*
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2840 xe_check_libs=""
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2841
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2843 echo "$ac_t""yes" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2844 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
2845 else
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2846 echo "$ac_t""no" 1>&6
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2847 fi
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2848
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 290
diff changeset
2849
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2850 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2851 elif test -n "$ld_text_start_addr"; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2852 start_flags="-T $ld_text_start_addr -e __start"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2853 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2854
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2855
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
2856
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2857
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2858 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2859 test -z "$linker" && linker='$(CC) -nostdlib'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
2860 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2861 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2862 test "$GCC" != "yes" && lib_gcc=
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2863
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2864
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2865
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2866
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
2867
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2868 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
2869 if test -n "$site_libraries"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2870 for arg in $site_libraries; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2871 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2872 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2873 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
2874 { 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
2875 arg="-L${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2876 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2877 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
2878 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2879 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2880
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2881 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
2882 if test -n "$site_includes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2883 for arg in $site_includes; do
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2884 case "$arg" in
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2885 -* ) ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2886 * ) test -d "$arg" || \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
2887 { 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
2888 arg="-I${arg}" ;;
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2889 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2890 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
2891 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2892 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2893
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2894 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
2895 if test -n "$site_prefixes"; then
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2896 for dir in $site_prefixes; do
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2897 lib_dir="${dir}/lib"
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2898 inc_dir="${dir}/include"
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2899 if test ! -d "$dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
2900 { 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
2901 elif test ! -d "$lib_dir"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
2902 { 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
2903 else
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2904 if test -d "$inc_dir"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2905 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
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2906 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2907 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
2908 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2909 done
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2910 fi
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2911
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
2912
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2913 for dir in "/usr/ccs/lib"; do
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2914 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
2915 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2916
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2917 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
2918 if test -n "$site_runtime_libraries"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2919 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2920 export LD_RUN_PATH
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2921 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2922
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2923
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2924
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2925
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2926
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2927 if test -n "$add_runtime_path"; then :;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
2928 elif test "$dynamic" = "no"; then add_runtime_path=no
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2929 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2930 else case "$opsys" in
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2931 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2932 * ) add_runtime_path=no ;;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2933 esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2934 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2935
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2936 if test "$add_runtime_path" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2937 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2938 echo "configure:2939: checking "for runtime libraries flag"" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2939 case "$opsys" in
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
2940 sol2 ) dash_r="-R" ;;
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
2941 decosf* | linux* | irix*) dash_r="-rpath " ;;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2942 *)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2943 dash_r=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2944 for try_dash_r in "-R" "-R " "-rpath "; do
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2945 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2946
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2947 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2948 set x $xe_check_libs; shift; xe_check_libs=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2949 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2950 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
2951 -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
2952 -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
2953 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2954 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2955 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2956 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2957 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
2958 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2959 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2960 #line 2961 "configure"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2961 #include "confdefs.h"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2962
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2963 int main() {
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2964
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2965 ; return 0; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2966 EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
2967 if { (eval echo configure:2968: \"$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
2968 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2969 dash_r="$try_dash_r"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2970 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2971 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2972 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2973 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2974 rm -f conftest*
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2975 xe_check_libs=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2976 test -n "$dash_r" && break
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2977 done ;;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
2978 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2979 if test -n "$dash_r";
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2980 then echo "$ac_t"""\"${dash_r}\""" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2981 else echo "$ac_t""NONE" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2982 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2983 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2984
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2985 xe_add_unique_runpath_dir='
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2986 xe_add_p=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2987 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
2988 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2989 if test "$xe_add_p" = "yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2990 test -n "$runpath" && runpath="${runpath}:"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2991 runpath="${runpath}${xe_runpath_dir}"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2992 runpath_dirs="$runpath_dirs $xe_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2993 fi'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2994
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2995
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2996
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
2997
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
2998 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
2999 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
3000 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
3001
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3002 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3003 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3004 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3005 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3006 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3007 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3008 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
3009 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3010 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3011 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
3012 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3013 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3014 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3015 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3016 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3017 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3018 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3019 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3020 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3021 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3022 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3023 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3024 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3025 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3026 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
3027 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3028 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3029 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
3030 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3031 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3032 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3033 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3034 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3035 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3036 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3037 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3038 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3039 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3040 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3041
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3042 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3043 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3044 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3045 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
3046 -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
3047 -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
3048 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3049 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3050 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3051 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3052 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3053 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3054 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3055 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3056 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3057
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
3058
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3059
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
3060
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3061 GNU_MALLOC=yes
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3062 if test "$with_dlmalloc" != "no"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3063 doug_lea_malloc=yes
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3064 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3065 doug_lea_malloc=no
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
3066 fi
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3067 after_morecore_hook_exists=yes
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3068 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3069 echo "configure:3070: checking for malloc_get_state" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3070
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3071 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3072 #line 3073 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3073 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3074 /* System header to define __stub macros and hopefully few prototypes,
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3075 which can conflict with char malloc_get_state(); below. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3076 #include <assert.h>
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3077 /* Override any gcc2 internal prototype to avoid an error. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3078 /* 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
3079 builtin and then its argument prototype would still apply. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3080 char malloc_get_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3081
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3082 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3083
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3084 /* The GNU C library defines this for functions which it implements
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3085 to always fail with ENOSYS. Some functions are actually named
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3086 something starting with __ and the normal name is an alias. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3087 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3088 choke me
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3089 #else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3090 malloc_get_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3091 #endif
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3092
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3093 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3094 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3095 if { (eval echo configure:3096: \"$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
3096 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3097 eval "ac_cv_func_malloc_get_state=yes"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3098 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3099 echo "configure: failed program was:" >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3100 cat conftest.$ac_ext >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3101 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3102 eval "ac_cv_func_malloc_get_state=no"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3103 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3104 rm -f conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3105
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3106 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3107 echo "$ac_t""yes" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3108 :
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3109 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3110 echo "$ac_t""no" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3111 doug_lea_malloc=no
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3112 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3113
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3114 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3115 echo "configure:3116: checking for malloc_set_state" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3116
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3117 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3118 #line 3119 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3119 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3120 /* System header to define __stub macros and hopefully few prototypes,
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3121 which can conflict with char malloc_set_state(); below. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3122 #include <assert.h>
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3123 /* Override any gcc2 internal prototype to avoid an error. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3124 /* 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
3125 builtin and then its argument prototype would still apply. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3126 char malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3127
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3128 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3129
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3130 /* The GNU C library defines this for functions which it implements
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3131 to always fail with ENOSYS. Some functions are actually named
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3132 something starting with __ and the normal name is an alias. */
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3133 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3134 choke me
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3135 #else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3136 malloc_set_state();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3137 #endif
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3138
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3139 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3140 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3141 if { (eval echo configure:3142: \"$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
3142 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3143 eval "ac_cv_func_malloc_set_state=yes"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3144 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3145 echo "configure: failed program was:" >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3146 cat conftest.$ac_ext >&5
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3147 rm -rf conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3148 eval "ac_cv_func_malloc_set_state=no"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3149 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3150 rm -f conftest*
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3151
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3152 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3153 echo "$ac_t""yes" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3154 :
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3155 else
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3156 echo "$ac_t""no" 1>&6
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3157 doug_lea_malloc=no
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3158 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3159
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3160 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3161 echo "configure:3162: checking whether __after_morecore_hook exists" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3162 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3163 #line 3164 "configure"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3164 #include "confdefs.h"
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3165 extern void (* __after_morecore_hook)();
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3166 int main() {
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3167 __after_morecore_hook = 0
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3168 ; return 0; }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3169 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3170 if { (eval echo configure:3171: \"$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
3171 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3172 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3173 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3174 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3175 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3176 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3177 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3178 after_morecore_hook_exists=no
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3179 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3180 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3181 if test "$system_malloc" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3182 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3183 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3184 (The GNU allocators don't work with this system configuration)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3185 elif test "$with_system_malloc" = "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3186 GNU_MALLOC=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3187 GNU_MALLOC_reason="
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3188 (User chose not to use GNU allocators)."
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
3189 elif test "$with_debug_malloc" = "yes" ; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3190 GNU_MALLOC=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3191 GNU_MALLOC_reason="
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
3192 (User chose to use Debugging Malloc)."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3193 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3194
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3195 if test "$doug_lea_malloc" = "yes" ; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3196 if test "$GNU_MALLOC" = yes ; then
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3197 GNU_MALLOC_reason="
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3198 (Using Doug Lea's new malloc from the GNU C Library.)"
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3199 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3200 { test "$extra_verbose" = "yes" && cat << \EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3201 Defining DOUG_LEA_MALLOC
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3202 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3203 cat >> confdefs.h <<\EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3204 #define DOUG_LEA_MALLOC 1
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3205 EOF
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3206 }
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3207
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3208 if test "$after_morecore_hook_exists" = "no" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3209 GNU_MALLOC_reason="
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3210 (Using Doug Lea's new malloc from the Linux C Library.)"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3211 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3212 Defining _NO_MALLOC_WARNING_
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3213 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3214 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3215 #define _NO_MALLOC_WARNING_ 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3216 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3217 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3218
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
3219 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
3220 use_minimal_tagbits=yes
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3221 fi
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 251
diff changeset
3222
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3223
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3224
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
3225
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3226 # 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
3227 set dummy ranlib; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3229 echo "configure:3230: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3230
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3231 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3233 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3235 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3236 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3237 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3238 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3239 ac_cv_prog_RANLIB="ranlib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3240 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3241 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3242 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3243 IFS="$ac_save_ifs"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3244 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3245 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3246 RANLIB="$ac_cv_prog_RANLIB"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3247 if test -n "$RANLIB"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3248 echo "$ac_t""$RANLIB" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3249 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3250 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3251 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3252
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3253 ac_aux_dir=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3254 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3255 if test -f $ac_dir/install-sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3256 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3257 ac_install_sh="$ac_aux_dir/install-sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3258 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3259 elif test -f $ac_dir/install.sh; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3260 ac_aux_dir=$ac_dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3261 ac_install_sh="$ac_aux_dir/install.sh -c"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3262 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3263 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3264 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3265 if test -z "$ac_aux_dir"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3266 { 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
3267 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3268 ac_config_guess=$ac_aux_dir/config.guess
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3269 ac_config_sub=$ac_aux_dir/config.sub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3270 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3271
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3272 # Find a good install program. We prefer a C program (faster),
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3273 # 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
3274 # incompatible versions:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3275 # SysV /etc/install, /usr/sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3276 # SunOS /usr/etc/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3277 # IRIX /sbin/install
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3278 # AIX /bin/install
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3279 # 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
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3282 # ./install, which can be erroneously created by make from ./install.sh.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3284 echo "configure:3285: checking for a BSD compatible install" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3285 if test -z "$INSTALL"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3286
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3287 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3288 for ac_dir in $PATH; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3289 # Account for people who put trailing slashes in PATH elements.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3290 case "$ac_dir/" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3291 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3292 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3293 # OSF1 and SCO ODT 3.0 have their own names for install.
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3294 # Don't use installbsd from OSF since it installs stuff as root
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3295 # by default.
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3296 for ac_prog in ginstall scoinst install; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3297 if test -f $ac_dir/$ac_prog; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 if test $ac_prog = install &&
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3299 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3300 # AIX install. It has an incompatible calling convention.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3301 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3303 ac_cv_path_install="$ac_dir/$ac_prog -c"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3310 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3311 IFS="$ac_save_IFS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3312
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3313 if test "${ac_cv_path_install+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3314 INSTALL="$ac_cv_path_install"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3315 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3316 # 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
3317 # path for INSTALL within a source directory, because that will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3318 # break other packages using the cache if that directory is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3319 # removed, or if the path is relative.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3320 INSTALL="$ac_install_sh"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3321 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3322 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3323 echo "$ac_t""$INSTALL" 1>&6
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 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3326 # It thinks the first close brace ends the variable substitution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3328
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3330
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3333 for ac_prog in 'bison -y' byacc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3335 # 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
3336 set dummy $ac_prog; ac_word=$2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3338 echo "configure:3339: checking for $ac_word" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3339
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3340 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3341 ac_cv_prog_YACC="$YACC" # Let the user override the test.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3342 else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3344 ac_dummy="$PATH"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3345 for ac_dir in $ac_dummy; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3346 test -z "$ac_dir" && ac_dir=.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3347 if test -f $ac_dir/$ac_word; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3348 ac_cv_prog_YACC="$ac_prog"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3349 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3350 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3351 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352 IFS="$ac_save_ifs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3353 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3354 YACC="$ac_cv_prog_YACC"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3355 if test -n "$YACC"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3356 echo "$ac_t""$YACC" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3357 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3358 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3359 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3361 test -n "$YACC" && break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3362 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3363 test -n "$YACC" || YACC="yacc"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3364
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3365
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3366 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/stropts.h sys/time.h sys/timeb.h sys/un.h kstat.h ulimit.h unistd.h utime.h
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3367 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3370 echo "configure:3371: checking for $ac_hdr" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3371
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3372 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3373 #line 3374 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3374 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3375 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3376 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3378 { (eval echo configure:3379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3380 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3381 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3382 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3383 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3384 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3385 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3386 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3387 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3388 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3389 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3390 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3392 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3394 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3395 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3396 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3397 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3398 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3399 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3400 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3401
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3402 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3403 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3404 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3405 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3406
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3407 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3408 echo "configure:3409: checking for sys/wait.h that is POSIX.1 compatible" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3409
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3410 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3411 #line 3412 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3412 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3413 #include <sys/types.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3414 #include <sys/wait.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3415 #ifndef WEXITSTATUS
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3416 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3417 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3418 #ifndef WIFEXITED
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3419 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3420 #endif
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3421 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3422 int s;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3423 wait (&s);
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3424 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3425 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3426 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3427 if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3428 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3429 ac_cv_header_sys_wait_h=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3430 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3431 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3432 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3433 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3434 ac_cv_header_sys_wait_h=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3435 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3436 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3437
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3438 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3439 if test $ac_cv_header_sys_wait_h = yes; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3440 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3441 Defining HAVE_SYS_WAIT_H
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3442 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3443 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3444 #define HAVE_SYS_WAIT_H 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3445 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3446 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3447
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3448 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
3449
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3450 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3451 echo "configure:3452: checking for ANSI C header files" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3452
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3453 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3454 #line 3455 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3455 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3456 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3457 #include <stdarg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3458 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3459 #include <float.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3460 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3462 { (eval echo configure:3463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3464 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3465 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3466 ac_cv_header_stdc=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3467 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3468 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3469 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3470 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3471 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3472 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3473 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3474 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3475
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3476 if test $ac_cv_header_stdc = yes; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3477 # 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
3478 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3479 #line 3480 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3480 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3481 #include <string.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3482 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3484 egrep "memchr" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3485 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3486 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3487 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3488 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3489 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3490 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3491
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3492 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3493
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3494 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3495 # 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
3496 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3497 #line 3498 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3498 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3499 #include <stdlib.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3500 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3502 egrep "free" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3503 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3504 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3505 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3506 ac_cv_header_stdc=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3507 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3508 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3509
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3510 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3511
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3512 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3513 # /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
3514 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3515 #line 3516 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3516 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3517 #include <ctype.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3518 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3519 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3521 int main () { int i; for (i = 0; i < 256; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3523 exit (0); }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3524
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3525 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3526 if { (eval echo configure:3527: \"$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
3527 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3528 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3529 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
3530 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3531 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3532 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3533 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3534 ac_cv_header_stdc=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3535 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3536 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3537 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3539 echo "$ac_t""$ac_cv_header_stdc" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3540 if test $ac_cv_header_stdc = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3541 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3542 Defining STDC_HEADERS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3543 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3544 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3545 #define STDC_HEADERS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3546 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3547 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3549 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3550
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3551 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3552 echo "configure:3553: checking whether time.h and sys/time.h may both be included" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3553
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3554 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3555 #line 3556 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3556 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3557 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3558 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3559 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3560 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3561 struct tm *tp;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3562 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3563 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
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_time=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3567 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3568 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3569 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3570 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3571 ac_cv_header_time=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3572 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3573 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3574
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3575 echo "$ac_t""$ac_cv_header_time" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3576 if test $ac_cv_header_time = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3577 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3578 Defining TIME_WITH_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3579 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3580 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3581 #define TIME_WITH_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3582 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3583 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3584
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3585 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3586
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3587 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3588 echo "configure:3589: checking for sys_siglist declaration in signal.h or unistd.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3589
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3590 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
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 <sys/types.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3594 #include <signal.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3595 /* NetBSD declares sys_siglist in unistd.h. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3596 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3597 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3598 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3599 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3600 char *msg = *(sys_siglist + 1);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3601 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3602 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3604 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3605 ac_cv_decl_sys_siglist=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3606 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3607 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3608 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3609 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3610 ac_cv_decl_sys_siglist=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3611 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3612 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3613
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3614 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3615 if test $ac_cv_decl_sys_siglist = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3616 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3617 Defining SYS_SIGLIST_DECLARED
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3618 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3619 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3620 #define SYS_SIGLIST_DECLARED 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3621 EOF
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3624 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3625
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3626
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3627 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3628 echo "configure:3629: checking for struct utimbuf" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3629 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3630 #line 3631 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3631 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3632 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3633 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3634 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3635 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3636 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3637 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3638 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3639 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3640 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3641 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3642 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3643 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3644 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3645 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3646 static struct utimbuf x; x.actime = x.modtime;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3647 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3648 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3650 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3651 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3652 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3653 Defining HAVE_STRUCT_UTIMBUF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3654 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3655 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3656 #define HAVE_STRUCT_UTIMBUF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3658 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3659
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3660 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3661 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3662 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3663 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3664 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3665 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3666 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3667
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3668 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3669 echo "configure:3670: checking return type of signal handlers" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3670
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3671 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3672 #line 3673 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3673 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3674 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3675 #include <signal.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3676 #ifdef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3677 #undef signal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3678 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3679 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3680 extern "C" void (*signal (int, void (*)(int)))(int);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3681 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3682 void (*signal ()) ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3683 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3684
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3685 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3686 int i;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3687 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3688 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3690 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3691 ac_cv_type_signal=void
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3692 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3693 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3694 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3695 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3696 ac_cv_type_signal=int
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3697 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3698 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3699
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3700 echo "$ac_t""$ac_cv_type_signal" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3701 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3702 Defining RETSIGTYPE = $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3703 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3704 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3705 #define RETSIGTYPE $ac_cv_type_signal
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3706 EOF
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3709
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3710 echo $ac_n "checking for size_t""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3711 echo "configure:3712: checking for size_t" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3712
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3713 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3714 #line 3715 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3715 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3716 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3717 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3718 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3719 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3720 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3721 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3723 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
3724 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3725 ac_cv_type_size_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3726 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3727 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3728 ac_cv_type_size_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3729 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3730 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3731
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3732 echo "$ac_t""$ac_cv_type_size_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3733 if test $ac_cv_type_size_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3734 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3735 Defining size_t = unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3736 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3737 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3738 #define size_t unsigned
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3739 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3740 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3741
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3742 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3743
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3744 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3745 echo "configure:3746: checking for pid_t" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3746
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3747 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3748 #line 3749 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3749 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3750 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3751 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3752 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3753 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3754 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3755 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3757 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
3758 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3759 ac_cv_type_pid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3760 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3761 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3762 ac_cv_type_pid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3763 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3764 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3765
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3766 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3767 if test $ac_cv_type_pid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3768 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3769 Defining pid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3770 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3771 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3772 #define pid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3773 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3774 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3775
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3776 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3777
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3778 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3779 echo "configure:3780: checking for uid_t in sys/types.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3780
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3781 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3782 #line 3783 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3783 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3784 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3785 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3787 egrep "uid_t" >/dev/null 2>&1; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3788 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3789 ac_cv_type_uid_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3790 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3791 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3792 ac_cv_type_uid_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3793 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3794 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3795
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3796
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3797 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3798 if test $ac_cv_type_uid_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3799 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3800 Defining uid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3801 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3802 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3803 #define uid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3804 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3805 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3806
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3807 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3808 Defining gid_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3809 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3810 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3811 #define gid_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3812 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3813 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3814
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3815 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3816
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3817 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3818 echo "configure:3819: checking for mode_t" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3819
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3820 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3821 #line 3822 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3822 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3823 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3824 #if STDC_HEADERS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3825 #include <stdlib.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3826 #include <stddef.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3827 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3828 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3830 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
3831 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3832 ac_cv_type_mode_t=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3833 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3834 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3835 ac_cv_type_mode_t=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3836 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3837 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3838
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3839 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3840 if test $ac_cv_type_mode_t = no; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3841 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3842 Defining mode_t = int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3843 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3844 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3845 #define mode_t int
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3846 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3847 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3848
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3849 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3850
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3851 echo $ac_n "checking for off_t""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3852 echo "configure:3853: checking for off_t" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3853
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3854 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
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 |
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
3864 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
3865 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3866 ac_cv_type_off_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_off_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_off_t" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3874 if test $ac_cv_type_off_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 off_t = long
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 off_t long
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
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3885 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3886 echo "configure:3887: checking for ssize_t" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3887
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3888 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3889 #line 3890 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3890 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3891 #include <sys/types.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3892 #if STDC_HEADERS
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3893 #include <stdlib.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3894 #include <stddef.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3895 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3896 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3898 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3899 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3900 ac_cv_type_ssize_t=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3901 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3902 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3903 ac_cv_type_ssize_t=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3904 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3905 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3906
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3907 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3908 if test $ac_cv_type_ssize_t = no; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3909 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3910 Defining ssize_t = int
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3911 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3912 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3913 #define ssize_t int
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3914 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3915 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3916
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3917 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
3918
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3920 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3921 echo "configure:3922: checking for struct timeval" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3922 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3923 #line 3924 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3924 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3925 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3926 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3927 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3928 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3929 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3930 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3931 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3932 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3933 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3934 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3935 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3936 static struct timeval x; x.tv_sec = x.tv_usec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3937 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3938 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3940 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3941 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3942 HAVE_TIMEVAL=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3943 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3944 Defining HAVE_TIMEVAL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3945 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3946 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3947 #define HAVE_TIMEVAL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3948 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3949 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3950
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3951 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3952 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3953 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3954 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3955 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3956 HAVE_TIMEVAL=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3957 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3958 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3960 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3961 echo "configure:3962: checking whether struct tm is in sys/time.h or time.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3962
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3963 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3964 #line 3965 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3965 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3966 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3967 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3968 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3969 struct tm *tp; tp->tm_sec;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3970 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3971 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3973 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3974 ac_cv_struct_tm=time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3975 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3976 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3977 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3978 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3979 ac_cv_struct_tm=sys/time.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3980 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3981 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3982
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3983 echo "$ac_t""$ac_cv_struct_tm" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3984 if test $ac_cv_struct_tm = sys/time.h; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3985 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3986 Defining TM_IN_SYS_TIME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3987 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3988 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3989 #define TM_IN_SYS_TIME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3990 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3991 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3992
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3993 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3994
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
3995 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3996 echo "configure:3997: checking for tm_zone in struct tm" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3997
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3998 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
3999 #line 4000 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4000 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4001 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4002 #include <$ac_cv_struct_tm>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4003 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4004 struct tm tm; tm.tm_zone;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4005 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4006 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4007 if { (eval echo configure:4008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4008 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4009 ac_cv_struct_tm_zone=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4010 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4011 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4012 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4013 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4014 ac_cv_struct_tm_zone=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4015 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4016 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4017
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4018 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4019 if test "$ac_cv_struct_tm_zone" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4020 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4021 Defining HAVE_TM_ZONE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4022 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4023 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4024 #define HAVE_TM_ZONE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4025 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4026 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4027
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4028 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4029 echo $ac_n "checking for tzname""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4030 echo "configure:4031: checking for tzname" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4031
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4032 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4033 #line 4034 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4034 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4035 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4036 #ifndef tzname /* For SGI. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4037 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4038 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4039 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4040 atoi(*tzname);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4041 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4042 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4043 if { (eval echo configure:4044: \"$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
4044 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4045 ac_cv_var_tzname=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4046 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4047 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4048 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4049 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4050 ac_cv_var_tzname=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4051 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4052 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4054 echo "$ac_t""$ac_cv_var_tzname" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4055 if test $ac_cv_var_tzname = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4056 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4057 Defining HAVE_TZNAME
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4058 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4059 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4060 #define HAVE_TZNAME 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4061 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4062 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4063
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4064 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4065 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4066
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4067
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4068 echo $ac_n "checking for working const""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4069 echo "configure:4070: checking for working const" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4070
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4071 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4072 #line 4073 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4073 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4074
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4075 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4076
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4077 /* Ultrix mips cc rejects this. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4078 typedef int charset[2]; const charset x;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4079 /* SunOS 4.1.1 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4080 char const *const *ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4081 char **p;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4082 /* NEC SVR4.0.2 mips cc rejects this. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4083 struct point {int x, y;};
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4084 static struct point const zero = {0,0};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4085 /* AIX XL C 1.02.0.0 rejects this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4086 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
4087 of an if-expression whose if-part is not a constant expression */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4088 const char *g = "string";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4089 ccp = &g + (g ? g-g : 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4090 /* HPUX 7.0 cc rejects these. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4091 ++ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4092 p = (char**) ccp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4093 ccp = (char const *const *) p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4094 { /* SCO 3.2v4 cc rejects this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4095 char *t;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4096 char const *s = 0 ? (char *) 0 : (char const *) 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4097
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4098 *t++ = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4099 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4101 int x[] = {25, 17};
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4102 const int *foo = &x[0];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4103 ++foo;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4104 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4106 typedef const int *iptr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4107 iptr p = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4108 ++p;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4109 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4110 { /* AIX XL C 1.02.0.0 rejects this saying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4111 "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
4112 struct s { int j; const int *ap[3]; };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4113 struct s *b; b->j = 5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4114 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4116 const int foo = 10;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4117 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4118
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4119 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4120 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4122 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4123 ac_cv_c_const=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4124 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4125 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4126 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4127 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4128 ac_cv_c_const=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4129 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4130 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4131
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4132 echo "$ac_t""$ac_cv_c_const" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4133 if test $ac_cv_c_const = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4134 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4135 Defining const =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4136 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4137 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4138 #define const
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4139 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4140 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4141
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4142 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4143
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4145 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4146 echo "configure:4147: checking whether ${MAKE-make} sets \${MAKE}" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4147 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4148
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4149 cat > conftestmake <<\EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4150 all:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4151 @echo 'ac_maketemp="${MAKE}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4152 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4153 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4154 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4155 if test -n "$ac_maketemp"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4156 eval ac_cv_prog_make_${ac_make}_set=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4157 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4158 eval ac_cv_prog_make_${ac_make}_set=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4159 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4160 rm -f conftestmake
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4161 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
4162 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4163 SET_MAKE=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4164 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4165 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4166 SET_MAKE="MAKE=${MAKE-make}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4167 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4168
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4169
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4170 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4171 echo "configure:4172: checking whether byte ordering is bigendian" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4172
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4173 ac_cv_c_bigendian=unknown
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4174 # See if sys/param.h defines the BYTE_ORDER macro.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4175 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4176 #line 4177 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4177 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4178 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4179 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4180 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4181
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4183 bogus endian macros
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4184 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4185 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4186 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4187 if { (eval echo configure:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4188 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4190 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4191 #line 4192 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4192 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4193 #include <sys/types.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4194 #include <sys/param.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4195 int main() {
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 #if BYTE_ORDER != BIG_ENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4198 not big endian
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4199 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4200 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4201 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4203 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4204 ac_cv_c_bigendian=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4205 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4206 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4207 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4208 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4209 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4210 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4211 rm -f conftest*
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 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4216 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4217 if test $ac_cv_c_bigendian = unknown; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4218 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4219 #line 4220 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4220 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4221 main () {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4222 /* Are we little or big endian? From Harbison&Steele. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4223 union
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4224 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4225 long l;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4226 char c[sizeof (long)];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4227 } u;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4228 u.l = 1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4229 exit (u.c[sizeof (long) - 1] == 1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4230 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4231 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4232 if { (eval echo configure:4233: \"$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
4233 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4234 ac_cv_c_bigendian=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4235 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4236 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4237 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4238 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4239 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4240 ac_cv_c_bigendian=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4241 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4242 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4243 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4244
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4245 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4246 if test $ac_cv_c_bigendian = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4247 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4248 Defining WORDS_BIGENDIAN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4249 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4250 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4251 #define WORDS_BIGENDIAN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4252 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4253 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4254
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4255 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4256
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4257
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4258 echo $ac_n "checking size of short""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4259 echo "configure:4260: checking size of short" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4260
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4261 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4262 #line 4263 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4263 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4264 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4265 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4266 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4267 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4268 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4269 fprintf(f, "%d\n", sizeof(short));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4270 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4271 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4272 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4273 if { (eval echo configure:4274: \"$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
4274 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4275 ac_cv_sizeof_short=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4276 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4277 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4278 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4279 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4280 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4281 ac_cv_sizeof_short=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4282 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4283 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4284 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4285 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4286 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4287 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4288 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4289 #define SIZEOF_SHORT $ac_cv_sizeof_short
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4290 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4291 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4292
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4293
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4294 if test "$ac_cv_sizeof_short" = 0; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4295 echo ""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4296 echo "*** PANIC *** Configure tests are not working - compiler is broken."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4297 echo "*** PANIC *** Please examine config.log for compilation errors."
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4298 exit 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4299 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4300 echo $ac_n "checking size of int""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4301 echo "configure:4302: checking size of int" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4302
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4303 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4304 #line 4305 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4305 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4306 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4307 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4308 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4309 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4310 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4311 fprintf(f, "%d\n", sizeof(int));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4312 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4313 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4314 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4315 if { (eval echo configure:4316: \"$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
4316 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4317 ac_cv_sizeof_int=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4318 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4319 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4320 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4321 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4322 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4323 ac_cv_sizeof_int=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4324 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4325 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4326 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4327 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4328 Defining SIZEOF_INT = $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4329 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4330 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4331 #define SIZEOF_INT $ac_cv_sizeof_int
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4332 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4333 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4334
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4335
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4336 echo $ac_n "checking size of long""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4337 echo "configure:4338: checking size of long" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4338
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4339 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4340 #line 4341 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4341 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4342 #include <stdio.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4343 main()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4344 {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4345 FILE *f=fopen("conftestval", "w");
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4346 if (!f) exit(1);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4347 fprintf(f, "%d\n", sizeof(long));
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4348 exit(0);
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4349 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4350 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4351 if { (eval echo configure:4352: \"$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
4352 then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4353 ac_cv_sizeof_long=`cat conftestval`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4354 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4355 conftest_rc="$?"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4356 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4357 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4358 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4359 ac_cv_sizeof_long=0
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4360 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4361 rm -fr conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4362 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4363 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4364 Defining SIZEOF_LONG = $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4365 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4366 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4367 #define SIZEOF_LONG $ac_cv_sizeof_long
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4368 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4369 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4370
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4371
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4372 echo $ac_n "checking size of long long""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4373 echo "configure:4374: checking size of long long" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4374
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4375 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4376 #line 4377 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4377 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4378 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4379 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4380 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4381 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4382 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4383 fprintf(f, "%d\n", sizeof(long long));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4384 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4385 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4386 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4387 if { (eval echo configure:4388: \"$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
4388 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4389 ac_cv_sizeof_long_long=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4390 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4391 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4392 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4393 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4394 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4395 ac_cv_sizeof_long_long=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4396 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4397 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4398 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4399 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4400 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4401 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4402 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4403 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4404 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4405 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4406
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4407
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4408 echo $ac_n "checking size of void *""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4409 echo "configure:4410: checking size of void *" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4410
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4411 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4412 #line 4413 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4413 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4414 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4415 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4416 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4417 FILE *f=fopen("conftestval", "w");
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4418 if (!f) exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4419 fprintf(f, "%d\n", sizeof(void *));
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4420 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4421 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4422 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4423 if { (eval echo configure:4424: \"$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
4424 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4425 ac_cv_sizeof_void_p=`cat conftestval`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4426 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
4427 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4428 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4429 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4430 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4431 ac_cv_sizeof_void_p=0
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4432 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4433 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4434 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4435 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4436 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4437 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4438 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4439 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4440 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4441 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4442
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4443
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4444
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4445 echo $ac_n "checking for long file names""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4446 echo "configure:4447: checking for long file names" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4447
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4448 ac_cv_sys_long_file_names=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4449 # Test for long file names in all the places we know might matter:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4450 # . the current directory, where building will happen
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4451 # $prefix/lib where we will be installing things
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4452 # $exec_prefix/lib likewise
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4453 # eval it to expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4454 # $TMPDIR if set, where it might want to write temporary files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4455 # if $TMPDIR is not set:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4456 # /tmp where it might want to write temporary files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4457 # /var/tmp likewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4458 # /usr/tmp likewise
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4459 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4460 ac_tmpdirs="$TMPDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4461 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4462 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4463 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4464 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
4465 test -d $ac_dir || continue
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4466 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
4467 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4468 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4469 val=`cat $ac_dir/conftest9012345 2>/dev/null`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4470 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4471 ac_cv_sys_long_file_names=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4472 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4473 break
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4474 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4475 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4476 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4477
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4478 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4479 if test $ac_cv_sys_long_file_names = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4480 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4481 Defining HAVE_LONG_FILE_NAMES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4482 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4483 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4484 #define HAVE_LONG_FILE_NAMES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4485 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4486 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4487
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4489
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4490
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4491 echo $ac_n "checking for sin""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4492 echo "configure:4493: checking for sin" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4493
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4494 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4495 #line 4496 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4496 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4497 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4498 which can conflict with char sin(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4499 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4500 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4501 /* 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
4502 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4503 char sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4504
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4505 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4506
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4507 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4508 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4509 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4510 #if defined (__stub_sin) || defined (__stub___sin)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4511 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4512 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4513 sin();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4514 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4515
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4516 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4517 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4518 if { (eval echo configure:4519: \"$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
4519 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4520 eval "ac_cv_func_sin=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4521 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4522 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4523 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4524 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4525 eval "ac_cv_func_sin=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4526 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4527 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4528
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4529 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4530 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4531 :
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4532 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4533 echo "$ac_t""no" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4534
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4535 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4536 echo "configure:4537: checking for sin in -lm" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4537 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4538
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4539 xe_check_libs=" -lm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4540 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4541 #line 4542 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4542 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4543 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4544 /* 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
4545 builtin and then its argument prototype would still apply. */
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4546 char sin();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4547
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4548 int main() {
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
4549 sin()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4550 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4551 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4552 if { (eval echo configure:4553: \"$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
4553 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4554 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4555 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4556 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4557 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4558 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4559 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4560 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4561 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4562 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4563
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4564 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
4565 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4566 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
4567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4568 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4569 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4570 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4571 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4572 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4573 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4574 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4575
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4576 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
4577
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4578 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4579 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4580 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4581
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4582
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4583 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4584
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4585
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4586 { test "$extra_verbose" = "yes" && cat << \EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4587 Defining LISP_FLOAT_TYPE
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4588 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4589 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4590 #define LISP_FLOAT_TYPE 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4591 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4592 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4593
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4594
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4595 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4596 #line 4597 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4597 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4598 #include <math.h>
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4599 int main() {
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4600 return atanh(1.0) + asinh(1.0) + acosh(1.0);
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4601 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4602 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4603 if { (eval echo configure:4604: \"$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
4604 rm -rf conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4605 { test "$extra_verbose" = "yes" && cat << \EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4606 Defining HAVE_INVERSE_HYPERBOLIC
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4607 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4608 cat >> confdefs.h <<\EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4609 #define HAVE_INVERSE_HYPERBOLIC 1
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4610 EOF
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4611 }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4612
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4613 else
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4614 echo "configure: failed program was:" >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4615 cat conftest.$ac_ext >&5
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4616 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4617 rm -f conftest*
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
4618
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4619 echo "checking type of mail spool file locking" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4620 echo "configure:4621: checking type of mail spool file locking" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4621 for ac_func in lockf flock
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4622 do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4624 echo "configure:4625: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4625
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4626 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4627 #line 4628 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4628 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4629 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4630 which can conflict with char $ac_func(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4631 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4632 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4633 /* 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
4634 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4635 char $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4636
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4637 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4638
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4639 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4640 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4641 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4643 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4644 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4645 $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4646 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4647
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4648 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4649 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4650 if { (eval echo configure:4651: \"$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
4651 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4652 eval "ac_cv_func_$ac_func=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4653 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4654 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4655 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4656 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4657 eval "ac_cv_func_$ac_func=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4658 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4659 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4660
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4662 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4664 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4665 Defining $ac_tr_func
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4666 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4667 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4668 #define $ac_tr_func 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4669 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4670 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4671
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4672 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4673 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4674 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4675 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4676
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4677 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4678 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4679 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4680 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4681 Defining MAIL_LOCK_LOCKF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4682 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4683 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4684 #define MAIL_LOCK_LOCKF 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4685 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4686 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4687
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4688 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4689 Defining MAIL_LOCK_FLOCK
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4690 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4691 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4692 #define MAIL_LOCK_FLOCK 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4693 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4694 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4695
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4696 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4697 Defining MAIL_LOCK_LOCKING
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4698 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4699 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4700 #define MAIL_LOCK_LOCKING 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4701 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4702 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4703
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4704 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4705 Defining MAIL_LOCK_DOT
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4706 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4707 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4708 #define MAIL_LOCK_DOT 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4709 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4710 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4711
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4712 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4713 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4714 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4715 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4716 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4717 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
4718 { 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
4719
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4720 case "$opsys" in decosf*)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4721
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4722 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4723 echo "configure:4724: checking for cma_open in -lpthreads" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4724 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4725
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4726 xe_check_libs=" -lpthreads "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4727 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4728 #line 4729 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4729 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4730 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4731 /* 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
4732 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4733 char cma_open();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4734
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4735 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4736 cma_open()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4737 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4738 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4739 if { (eval echo configure:4740: \"$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
4740 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4741 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4742 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4743 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4744 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4745 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4746 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4747 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4748 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4749 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4750
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4752 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4753 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
4754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4755 { test "$extra_verbose" = "yes" && cat << EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4756 Defining $ac_tr_lib
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4757 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4758 cat >> confdefs.h <<EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4759 #define $ac_tr_lib 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4760 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4761 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4762
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4763 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
4764
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4765 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4766 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4767 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4768
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4769
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4770 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4771 c_switch_site="$c_switch_site -threads" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
4772 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4773
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4774 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4775 echo "configure:4776: checking whether the -xildoff compiler flag is required" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4776 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
4777 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
4778 then echo "$ac_t""no" 1>&6;
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4779 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
4780 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
4781 else 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
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4784 if test "$opsys" = "sol2"; then
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4785 if test "$os_release" -ge 56; then
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4786 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4787 echo "configure:4788: checking for \"-z ignore\" linker flag" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4788 case "`ld -h 2>&1`" in
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4789 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4790 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4791 *) echo "$ac_t""no" 1>&6 ;;
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4792 esac
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4793 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
4794 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
4795
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4796
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4797 echo "checking "for specified window system"" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4798 echo "configure:4799: checking "for specified window system"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4799
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4800 if test "$with_x11" != "no"; then
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4801 test "$x_includes $x_libraries" != "NONE NONE" && \
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4802 window_system=x11 with_x11=yes
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4803
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4804
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4805 if test "$x_includes $x_libraries" = "NONE NONE" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4806 -a -n "$OPENWINHOME" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4807 -a "$OPENWINHOME" != "/usr/openwin" \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4808 -a -d "$OPENWINHOME"; then
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4809 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4810 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4811 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4812 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4813
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4814 if test "$x_includes" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4815 for dir in "/usr/X11" "/usr/X11R6"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4816 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
4817 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4818 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4819
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4820 if test "$x_libraries" = "NONE"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4821 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
4822 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
4823 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4824 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
4825
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4826 # 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
4827 # paths, otherwise set no_x=yes.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4828 # 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
4829 # --without-x overrides everything else, but does not touch the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4830 echo $ac_n "checking for X""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4831 echo "configure:4832: checking for X" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4832
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4833 # Check whether --with-x or --without-x was given.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4834 if test "${with_x+set}" = set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4835 withval="$with_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4836 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4837 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4838
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4839 # $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
4840 if test "x$with_x" = xno; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4841 # The user explicitly disabled X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4842 have_x=disabled
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4843 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4844 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4845 # Both variables are already set.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4846 have_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4847 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4848
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4849 # 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
4850 ac_x_includes=NO ac_x_libraries=NO
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4851 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4852 if mkdir conftestdir; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4853 cd conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4854 # 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
4855 cat > Imakefile <<'EOF'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4856 acfindx:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4857 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4858 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4859 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4861 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4862 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4863 for ac_extension in a so sl; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4864 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4865 test -f $ac_im_libdir/libX11.$ac_extension; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4866 ac_im_usrlibdir=$ac_im_libdir; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4867 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4868 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4869 # Screen out bogus values from the imake configuration. They are
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4870 # bogus both because they are the default anyway, and because
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4871 # using them would break gcc on systems where it needs fixed includes.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4872 case "$ac_im_incroot" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4873 /usr/include) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4874 *) 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
4875 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4876 case "$ac_im_usrlibdir" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4877 /usr/lib | /lib) ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4878 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4879 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4880 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4881 cd ..
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4882 rm -fr conftestdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4883 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4884
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4885 if test "$ac_x_includes" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4886 # 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
4887 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
4888
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4889 # First, try using that file with no special directory specified.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4890 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4891 #line 4892 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4892 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4893 #include <$x_direct_test_include>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4894 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4898 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4899 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4900 # We can compile using X headers with no special include directory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4901 ac_x_includes=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4902 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4903 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4904 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4905 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4906 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4907 # Look for the header file in a standard set of common directories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4908 # 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
4909 for ac_dir in \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4910 /usr/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4911 /usr/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4912 /usr/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4913 /usr/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4914 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4915 /usr/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4916 /usr/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4917 /usr/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4918 /usr/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4919 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4920 /usr/local/X11/include \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4921 /usr/local/X11R6/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4922 /usr/local/X11R5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4923 /usr/local/X11R4/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4924 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4925 /usr/local/include/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4926 /usr/local/include/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4927 /usr/local/include/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4928 /usr/local/include/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4929 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4930 /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4931 /usr/x386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4932 /usr/XFree86/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4933 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4934 /usr/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4935 /usr/local/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4936 /usr/unsupported/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4937 /usr/athena/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4938 /usr/local/x11r5/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4939 /usr/lpp/Xamples/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4940 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4941 /usr/openwin/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4942 /usr/openwin/share/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4943 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4944 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4945 if test -r "$ac_dir/$x_direct_test_include"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4946 ac_x_includes=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4947 break
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4948 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4949 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4950 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4951 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4952 fi # $ac_x_includes = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4953
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4954 if test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4955 # Check for the libraries.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4956
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4957 test -z "$x_direct_test_library" && x_direct_test_library=Xt
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4958 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4959
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4960 # See if we find them without any special options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4961 # Don't add to $LIBS permanently.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4962 ac_save_LIBS="$LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4963 LIBS="-l$x_direct_test_library $LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4964 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4965 #line 4966 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4966 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4967
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4968 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4969 ${x_direct_test_function}()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4970 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4971 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
4972 if { (eval echo configure:4973: \"$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
4973 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4974 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4975 # We can link X programs with no special library path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4976 ac_x_libraries=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4977 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4978 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4979 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4980 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4981 LIBS="$ac_save_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4982 # First see if replacing the include by lib works.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4983 # 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
4984 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4985 /usr/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4986 /usr/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4987 /usr/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4988 /usr/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4989 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4990 /usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4991 /usr/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4992 /usr/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4993 /usr/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4994 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
4995 /usr/local/X11/lib \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4996 /usr/local/X11R6/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4997 /usr/local/X11R5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4998 /usr/local/X11R4/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4999 \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5000 /usr/local/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5001 /usr/local/lib/X11R6 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5002 /usr/local/lib/X11R5 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5003 /usr/local/lib/X11R4 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5004 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5005 /usr/X386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5006 /usr/x386/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5007 /usr/XFree86/lib/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5008 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5009 /usr/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5010 /usr/local/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5011 /usr/unsupported/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5012 /usr/athena/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5013 /usr/local/x11r5/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5014 /usr/lpp/Xamples/lib \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5015 /lib/usr/lib/X11 \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5016 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5017 /usr/openwin/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5018 /usr/openwin/share/lib \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5019 ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5020 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5021 for ac_extension in a so sl; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5022 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
5023 ac_x_libraries=$ac_dir
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5024 break 2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5025 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5026 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5027 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5028 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5029 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5030 fi # $ac_x_libraries = NO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5031
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5032 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5033 # Didn't find X anywhere. Cache the known absence of X.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5034 ac_cv_have_x="have_x=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5035 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5036 # Record where we found X for the cache.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5037 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5038 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5039 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5040 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5041 eval "$ac_cv_have_x"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5042 fi # $with_x != no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5043
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5044 if test "$have_x" != yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5045 echo "$ac_t""$have_x" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5046 no_x=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5047 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5048 # 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
5049 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5050 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5051 # Update the cache value to reflect the command line values.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5052 ac_cv_have_x="have_x=yes \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5053 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5054 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5055 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5056
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5057 if test "$no_x" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5058 # 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
5059 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5060 Defining X_DISPLAY_MISSING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5061 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5062 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5063 #define X_DISPLAY_MISSING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5064 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5065 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5066
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5067 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5068 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5069 if test -n "$x_includes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5070 X_CFLAGS="$X_CFLAGS -I$x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5071 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5072
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5073 # 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
5074 if test -n "$x_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5075 X_LIBS="$X_LIBS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5076 # 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
5077 # others require no space. Words are not sufficient . . . .
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5078 case "`(uname -sr) 2>/dev/null`" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5079 "SunOS 5"*)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5080 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5081 echo "configure:5082: checking whether -R must be followed by a space" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5082 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5083 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5084 #line 5085 "configure"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5085 #include "confdefs.h"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5086
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5087 int main() {
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5088
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5089 ; return 0; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5090 EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5091 if { (eval echo configure:5092: \"$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
5092 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5093 ac_R_nospace=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5094 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5095 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5096 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5097 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5098 ac_R_nospace=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5099 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5100 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5101 if test $ac_R_nospace = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5102 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5103 X_LIBS="$X_LIBS -R$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5104 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5105 LIBS="$ac_xsave_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5106 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5107 #line 5108 "configure"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5108 #include "confdefs.h"
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5109
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5110 int main() {
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5111
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5112 ; return 0; }
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5113 EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5114 if { (eval echo configure:5115: \"$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
5115 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5116 ac_R_space=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5117 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5118 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5119 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5120 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5121 ac_R_space=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5122 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5123 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5124 if test $ac_R_space = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5125 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5126 X_LIBS="$X_LIBS -R $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5127 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5128 echo "$ac_t""neither works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5129 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5130 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5131 LIBS="$ac_xsave_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5132 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5133 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5135 # Check for system-dependent libraries X programs must link with.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5136 # Do this before checking for the system-independent R6 libraries
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5137 # (-lICE), since we may need -lsocket or whatever for X linking.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5138
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5139 if test "$ISC" = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5141 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5142 # 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
5143 # libraries were built with DECnet support. And karl@cs.umb.edu says
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5144 # the Alpha needs dnet_stub (dnet does not exist).
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5145 if test "$with_dnet" = "no" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5146 ac_cv_lib_dnet_dnet_ntoa=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5147 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5148
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5149 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5150 echo "configure:5151: checking for dnet_ntoa in -ldnet" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5151 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5152
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5153 xe_check_libs=" -ldnet "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5154 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5155 #line 5156 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5156 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5157 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5158 /* 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
5159 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5160 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5161
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5162 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5163 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5164 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5165 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5166 if { (eval echo configure:5167: \"$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
5167 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5168 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5169 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5170 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5171 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5172 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5173 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5174 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5175 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5176 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5177
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5178 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
5179 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5181 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5182 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5183 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5184
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5186
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5187 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5188
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5189 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5190 echo "configure:5191: checking for dnet_ntoa in -ldnet_stub" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5191 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5192
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5193 xe_check_libs=" -ldnet_stub "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5194 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5195 #line 5196 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5196 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5197 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5198 /* 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
5199 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5200 char dnet_ntoa();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5201
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5202 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5203 dnet_ntoa()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5204 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5205 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5206 if { (eval echo configure:5207: \"$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
5207 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5208 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5209 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5210 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5211 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5212 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5213 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5214 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5215 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5216 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5217
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5218 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
5219 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5220 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5221 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5222 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5223 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5224
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5225
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5226 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5227
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5228 # 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
5229 # to get the SysV transport functions.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5230 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5231 # needs -lnsl.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5232 # The nsl library prevents programs from opening the X display
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5233 # on Irix 5.2, according to dickey@clark.net.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5234 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5235 echo "configure:5236: checking for gethostbyname" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5236
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5237 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5238 #line 5239 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5239 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5240 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5241 which can conflict with char gethostbyname(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5242 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5243 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5244 /* 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
5245 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5246 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5247
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5248 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5249
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5250 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5251 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5252 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5253 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5254 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5255 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5256 gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5257 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5258
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5259 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5260 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5261 if { (eval echo configure:5262: \"$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
5262 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5263 eval "ac_cv_func_gethostbyname=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5264 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5265 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5266 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5267 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5268 eval "ac_cv_func_gethostbyname=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5269 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5270 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5271
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5272 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5273 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5274 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5275 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5276 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5277 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5278
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5279 if test $ac_cv_func_gethostbyname = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5280
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5281 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5282 echo "configure:5283: checking for gethostbyname in -lnsl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5283 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5284
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5285 xe_check_libs=" -lnsl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5286 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5287 #line 5288 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5288 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5289 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5290 /* 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
5291 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5292 char gethostbyname();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5293
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5294 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5295 gethostbyname()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5296 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5297 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5298 if { (eval echo configure:5299: \"$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
5299 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5300 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5301 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5302 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5303 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5304 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5305 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5306 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5307 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5308 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5309
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5310 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
5311 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5313 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5314 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5315 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5316
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5317
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5318 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5319
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5320 # lieder@skyler.mavd.honeywell.com says without -lsocket,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5321 # socket/setsockopt and other routines are undefined under SCO ODT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5322 # 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
5323 # on later versions), says simon@lia.di.epfl.ch: it contains
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5324 # gethostby* variants that don't use the nameserver (or something).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5325 # -lsocket must be given before -lnsl if both are needed.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5326 # We assume that if connect needs -lnsl, so does gethostbyname.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5327 echo $ac_n "checking for connect""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5328 echo "configure:5329: checking for connect" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5329
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5330 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5331 #line 5332 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5332 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5333 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5334 which can conflict with char connect(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5335 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5336 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5337 /* 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
5338 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5339 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5340
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5341 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5342
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5343 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5344 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5345 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5346 #if defined (__stub_connect) || defined (__stub___connect)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5347 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5348 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5349 connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5350 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5351
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5352 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5353 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5354 if { (eval echo configure:5355: \"$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
5355 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5356 eval "ac_cv_func_connect=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5357 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5358 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5359 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5360 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5361 eval "ac_cv_func_connect=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5362 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5363 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5364
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5365 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5366 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5367 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5368 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5369 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5370 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5371
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5372 if test $ac_cv_func_connect = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5373
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5374 xe_msg_checking="for connect in -lsocket"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5375 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
5376 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5377 echo "configure:5378: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5378 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5379
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5380 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5381 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5382 #line 5383 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5383 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5384 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5385 /* 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
5386 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5387 char connect();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5388
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5389 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5390 connect()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5391 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5392 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5393 if { (eval echo configure:5394: \"$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
5394 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5395 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5396 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5397 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5398 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5399 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5400 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5401 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5402 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5403 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5404
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5405 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
5406 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5407 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5408 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5409 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5410 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5411
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5412
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5413 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5414
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5415 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5416 echo $ac_n "checking for remove""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5417 echo "configure:5418: checking for remove" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5418
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5419 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5420 #line 5421 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5421 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5422 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5423 which can conflict with char remove(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5424 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5425 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5426 /* 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
5427 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5428 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5429
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5430 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5431
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5432 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5433 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5434 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5435 #if defined (__stub_remove) || defined (__stub___remove)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5436 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5437 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5438 remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5439 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5440
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5441 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5442 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5443 if { (eval echo configure:5444: \"$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
5444 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5445 eval "ac_cv_func_remove=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5446 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5447 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5448 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5449 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5450 eval "ac_cv_func_remove=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5451 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5452 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5453
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5454 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5455 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5456 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5457 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5458 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5459 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5460
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5461 if test $ac_cv_func_remove = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5462
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5463 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5464 echo "configure:5465: checking for remove in -lposix" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5465 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5466
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5467 xe_check_libs=" -lposix "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5468 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5469 #line 5470 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5470 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5471 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5472 /* 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
5473 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5474 char remove();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5475
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5476 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5477 remove()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5478 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5479 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5480 if { (eval echo configure:5481: \"$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
5481 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5482 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5483 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5484 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5485 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5486 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5487 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5488 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5489 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5490 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5491
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5492 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
5493 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5495 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5496 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5497 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5498
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5499
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5500 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5501
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5502 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5503 echo $ac_n "checking for shmat""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5504 echo "configure:5505: checking for shmat" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5505
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5506 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5507 #line 5508 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5508 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5509 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5510 which can conflict with char shmat(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5511 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5512 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5513 /* 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
5514 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5515 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5516
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5517 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5518
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5519 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5520 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5521 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5522 #if defined (__stub_shmat) || defined (__stub___shmat)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5523 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5524 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5525 shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5526 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5527
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5528 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5529 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5530 if { (eval echo configure:5531: \"$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
5531 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5532 eval "ac_cv_func_shmat=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5533 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5534 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5535 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5536 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5537 eval "ac_cv_func_shmat=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5538 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5539 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5540
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5541 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5542 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5543 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5544 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5545 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5546 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5547
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5548 if test $ac_cv_func_shmat = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5549
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5550 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5551 echo "configure:5552: checking for shmat in -lipc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5552 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5553
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5554 xe_check_libs=" -lipc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5555 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5556 #line 5557 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5557 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5558 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5559 /* 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
5560 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5561 char shmat();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5562
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5563 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5564 shmat()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5565 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5566 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5567 if { (eval echo configure:5568: \"$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
5568 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5569 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5570 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5571 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5572 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5573 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5574 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5575 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5576 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5577 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5578
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5579 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
5580 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5582 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5583 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5584 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5585
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5586
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5587 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5588 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5589
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5590 # Check for libraries that X11R6 Xt/Xaw programs need.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5591 ac_save_LDFLAGS="$LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5592 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5593 # 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
5594 # 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
5595 # 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
5596 # These have to be linked with before -lX11, unlike the other
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5597 # libraries we check for below, so use a different variable.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5598 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5599
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5600 xe_msg_checking="for IceConnectionNumber in -lICE"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5601 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5602 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5603 echo "configure:5604: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5604 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5605
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5606 xe_check_libs=" -lICE $X_EXTRA_LIBS"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5607 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5608 #line 5609 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5609 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5610 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5611 /* 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
5612 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5613 char IceConnectionNumber();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5614
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5615 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5616 IceConnectionNumber()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5617 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5618 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5619 if { (eval echo configure:5620: \"$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
5620 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5621 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5622 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5623 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5624 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5625 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5626 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5627 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5628 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5629 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5630
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5631 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
5632 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5633 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5634 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5635 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5636 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5637
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5638
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5639 LDFLAGS="$ac_save_LDFLAGS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5640
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5641 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5642 # Autoconf claims to find X library and include dirs for us.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5643 if test "$no_x" = "yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5644 then with_x11=no window_system=none HAVE_X_WINDOWS=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5645 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5646 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5647 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5649 case "$with_x11" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5650 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5651 no ) window_system=none HAVE_X_WINDOWS=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5652 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5653
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5654 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5655 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5656 Defining HAVE_X_WINDOWS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5658 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5659 #define HAVE_X_WINDOWS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5660 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5661 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5662
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5663 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
5664 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
5665
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
5666 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
5667 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5668 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5669 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5670 x_libraries="$lib_dir $x_libraries"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5671 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
5672 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5673 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5674 x_includes="$inc_dir $x_includes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5675 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
5676 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5677 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5678 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5679
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5680 for rel in "X11R6" "X11R5" "X11R4"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5681 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5682 if test -d "$lib_dir" -a -d "$inc_dir"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5683 case "$x_libraries" in *"$lib_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5684 x_libraries="$x_libraries $lib_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5685 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
5686 esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5687 case "$x_includes" in "$inc_dir"* ) ;; *)
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5688 x_includes="$x_includes $inc_dir"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5689 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
5690 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5691 break; fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5692 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5693
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
5694 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
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
5695
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5696 ld_switch_x_site="$X_LIBS"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5697
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5698
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5699 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
5700 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
5701 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
5702
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5703 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5704 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5705 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5706 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5707 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5708 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5709 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
5710 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5711 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5712 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
5713 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5714 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5715 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5716 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5717 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5718 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5719 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5720 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5721 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5722 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5723 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5724 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5725 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5726 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5727 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
5728 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5729 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5730 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5731 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5732 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5733 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5734 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5735 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5736 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5737 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5738 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
5739 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5740 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5741 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5742
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5743 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5744 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5745 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5746 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
5747 -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
5748 -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
5749 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5750 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5751 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5752 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5753 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
5754 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5755 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5756 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5757 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5758
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5759
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5760 if test "$extra_verbose" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5761 echo; echo "X11 compilation variables:"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5762 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
5763 echo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5764 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5765
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5766 bitmapdirs=
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5767 if test "$x_includes" != NONE; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5768 for i in $x_includes; do
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5769 if test -d "$i/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5770 bitmapdirs="$i/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5771 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5772 if test -d "$i/X11/bitmaps"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5773 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5774 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5775 done
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5776 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5777 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5778 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5779 Defining BITMAPDIR = "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5780 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5781 cat >> confdefs.h <<EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5782 #define BITMAPDIR "$bitmapdirs"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5783 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5784 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5785
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
5786
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5787 echo "checking for X defines extracted by xmkmf" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5788 echo "configure:5789: checking for X defines extracted by xmkmf" >&5
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5789 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5790 if mkdir conftestdir; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5791 cd conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5792 cat > Imakefile <<'EOF'
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5793 xetest:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5794 @echo ${PROTO_DEFINES} ${STD_DEFINES}
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5795 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5796 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5798 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5799 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5800 cd ..
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5801 rm -fr conftestdir
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5802 for word in $xmkmf_defines; do
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5803 case "$word" in
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5804 -D*=* ) ;;
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5805 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5806 { test "$extra_verbose" = "yes" && cat << EOF
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5807 Defining $word
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5808 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5809 cat >> confdefs.h <<EOF
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5810 #define $word 1
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5811 EOF
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5812 }
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
5813 ;;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5814 esac
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5815 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5816 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5817
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5818 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5819 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5820 echo "configure:5821: checking for X11/Intrinsic.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5821
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5822 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5823 #line 5824 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5824 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5825 #include <X11/Intrinsic.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5826 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5828 { (eval echo configure:5829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
5829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5830 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5831 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5832 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5833 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5834 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5835 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5836 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5837 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5838 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5839 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5840 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5842 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5843 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5844 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5845 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5846 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5847 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5848
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5851 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5852 echo "configure:5853: checking for XOpenDisplay in -lX11" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5853 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5854
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5855 xe_check_libs=" -lX11 "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5856 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5857 #line 5858 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5858 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5859 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5860 /* 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
5861 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5862 char XOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5863
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5864 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5865 XOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5866 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5867 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5868 if { (eval echo configure:5869: \"$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
5869 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5870 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5871 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5872 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5873 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5874 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5875 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5876 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5877 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5878 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5879
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5880 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
5881 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5882 have_lib_x11=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5883 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5884 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5885 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5886
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5887
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5888 if test "$have_lib_x11" != "yes"; then
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 xe_msg_checking="for XGetFontProperty in -lX11"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5891 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
5892 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5893 echo "configure:5894: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5894 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5895
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5896 xe_check_libs=" -lX11 -b i486-linuxaout"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5897 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5898 #line 5899 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5899 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5900 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5901 /* 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
5902 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5903 char XGetFontProperty();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5904
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5905 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5906 XGetFontProperty()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5907 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5908 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5909 if { (eval echo configure:5910: \"$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
5910 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5911 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5912 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5913 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5914 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5915 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5916 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5917 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5918 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5919 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5920
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5921 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
5922 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5923 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5924 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5925 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5926 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5927 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5928
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5929
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5930 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5931 libs_x="-lX11"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
5932 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5933
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5934
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5935 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5936 echo "configure:5937: checking for XShapeSelectInput in -lXext" >&5
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5937 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5938
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5939 xe_check_libs=" -lXext "
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5940 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5941 #line 5942 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5942 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5943 /* Override any gcc2 internal prototype to avoid an error. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5944 /* 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
5945 builtin and then its argument prototype would still apply. */
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5946 char XShapeSelectInput();
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5947
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5948 int main() {
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5949 XShapeSelectInput()
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5950 ; return 0; }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5951 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5952 if { (eval echo configure:5953: \"$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
5953 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5954 eval "ac_cv_lib_$ac_lib_var=yes"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5955 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5956 echo "configure: failed program was:" >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5957 cat conftest.$ac_ext >&5
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5958 rm -rf conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5959 eval "ac_cv_lib_$ac_lib_var=no"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5960 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5961 rm -f conftest*
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5962 xe_check_libs=""
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5963
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5965 echo "$ac_t""yes" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5966 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
5967 else
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5968 echo "$ac_t""no" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5969 fi
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5970
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5971
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
5972
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
5973
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5974 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5975 echo "configure:5976: checking for XtOpenDisplay in -lXt" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5976 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5977
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5978 xe_check_libs=" -lXt "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5979 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5980 #line 5981 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5981 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5982 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5983 /* 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
5984 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5985 char XtOpenDisplay();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5986
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5987 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5988 XtOpenDisplay()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5989 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5990 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
5991 if { (eval echo configure:5992: \"$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
5992 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5993 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5994 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5995 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5996 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5997 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5998 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
5999 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6000 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6001 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6002
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6004 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6005 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
6006 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6007 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6008 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6010
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6011
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6012
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6013 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6014 echo "configure:6015: checking the version of X11 being used" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6015 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6016 #line 6017 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6017 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6018 #include <X11/Intrinsic.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6019 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6020 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6021 if { (eval echo configure:6022: \"$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
6022 then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6023 ./conftest foobar; x11_release=$?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6024 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6025 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6026 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6027 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6028 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6029 x11_release=4
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6030 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6031 rm -fr conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6032 echo "$ac_t""R${x11_release}" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6033 { test "$extra_verbose" = "yes" && cat << EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6034 Defining THIS_IS_X11R${x11_release}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6035 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6036 cat >> confdefs.h <<EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6037 #define THIS_IS_X11R${x11_release} 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6038 EOF
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6041
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6042 for ac_func in XConvertCase
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6043 do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6045 echo "configure:6046: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6046
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6047 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6048 #line 6049 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6049 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6050 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6051 which can conflict with char $ac_func(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6052 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6053 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6054 /* 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
6055 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6056 char $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6057
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6058 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6059
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6060 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6061 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6062 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6064 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6065 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6066 $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6067 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6068
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6069 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6070 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6071 if { (eval echo configure:6072: \"$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
6072 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6073 eval "ac_cv_func_$ac_func=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6074 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6075 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6076 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6077 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6078 eval "ac_cv_func_$ac_func=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6079 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6080 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6081
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6083 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6085 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6086 Defining $ac_tr_func
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6087 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6088 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6089 #define $ac_tr_func 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6090 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6091 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6092
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6093 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6094 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6095 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6096 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6097
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6098
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6099 for ac_hdr in X11/Xlocale.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6100 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6103 echo "configure:6104: checking for $ac_hdr" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6104
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6105 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6106 #line 6107 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6107 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6108 #include <$ac_hdr>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6109 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6111 { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6113 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6114 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6115 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6116 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6117 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6118 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6119 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6120 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6121 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6122 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6123 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6125 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6127 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6128 Defining $ac_tr_hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6129 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6130 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6131 #define $ac_tr_hdr 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6132 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6133 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6134
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6135 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6136 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6137 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6138 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6139
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6140
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6141 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6142 echo "configure:6143: checking for XFree86" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6143 if test -d "/usr/X386/include" -o \
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6144 -f "/etc/XF86Config" -o \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6145 -f "/etc/X11/XF86Config" -o \
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6146 -f "/usr/X11R6/lib/X11/XF86Config"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6147 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6148 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6149 Defining HAVE_XFREE386
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6150 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6151 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6152 #define HAVE_XFREE386 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6153 EOF
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6156 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6157 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6158 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6159
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6160 test -z "$with_xmu" && {
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6161 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6162 echo "configure:6163: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6163 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6164
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6165 xe_check_libs=" -lXmu "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6166 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6167 #line 6168 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6168 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6169 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6170 /* 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
6171 builtin and then its argument prototype would still apply. */
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6172 char XmuReadBitmapDataFromFile();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6173
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6174 int main() {
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6175 XmuReadBitmapDataFromFile()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6176 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6177 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6178 if { (eval echo configure:6179: \"$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
6179 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6180 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6181 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6182 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6183 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6184 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6185 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6186 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6187 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6188 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6189
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6191 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6192 with_xmu=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6193 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6194 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6195 with_xmu=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6196 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6197
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6198 }
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6199 if test "$with_xmu" = "no"; then
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6200 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
6201 echo " xemacs will be linked with \"xmu.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6202 fi
187
b405438285a2 Import from CVS: tag r20-3b20
cvs
parents: 185
diff changeset
6203 else
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6204 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
6205 { test "$extra_verbose" = "yes" && cat << \EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6206 Defining HAVE_XMU
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6207 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6208 cat >> confdefs.h <<\EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6209 #define HAVE_XMU 1
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6210 EOF
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6211 }
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 183
diff changeset
6212
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
6213 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6214
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6215
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6216 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6217 echo "configure:6218: checking for main in -lXbsd" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6218 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6219
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6220 xe_check_libs=" -lXbsd "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6221 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6222 #line 6223 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6223 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6224
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6225 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6226 main()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6227 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6228 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6229 if { (eval echo configure:6230: \"$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
6230 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6231 eval "ac_cv_lib_$ac_lib_var=yes"
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 "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6234 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6235 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6236 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6237 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6238 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6239 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6240
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6242 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6243 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
6244 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6245 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6246 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6247
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6248
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6249
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6250 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6251 if test "$GCC" = "yes"; then
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6252 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
6253 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
6254 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6255 case "$CC" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6256 "xlc" ) CC="xlc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6257 "xlC" ) CC="xlC_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6258 "cc" ) CC="cc_r" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6259 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6260 fi
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6261 fi
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
6262
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6263 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6264 if test "$with_msw" != "no"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6265 echo "checking for MS-Windows" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6266 echo "configure:6267: checking for MS-Windows" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6267
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6268 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6269 echo "configure:6270: checking for main in -lgdi32" >&5
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6270 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6271
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6272 xe_check_libs=" -lgdi32 "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6273 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6274 #line 6275 "configure"
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6275 #include "confdefs.h"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6276
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6277 int main() {
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6278 main()
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6279 ; return 0; }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6280 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6281 if { (eval echo configure:6282: \"$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
6282 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6283 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6284 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6285 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6286 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6287 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6288 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6289 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6290 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6291 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6292
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6294 echo "$ac_t""yes" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6295 with_msw=yes
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6296 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6297 echo "$ac_t""no" 1>&6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6298 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6299
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6300
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6301 if test "$with_msw" = "yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6302 { test "$extra_verbose" = "yes" && cat << \EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6303 Defining HAVE_MS_WINDOWS
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6304 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6305 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6306 #define HAVE_MS_WINDOWS 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6307 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6308 }
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6309
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6310 install_pp="$blddir/lib-src/installexe.sh"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6311 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
375
a300bb07d72d Import from CVS: tag r21-2b3
cvs
parents: 373
diff changeset
6312 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
6313 if test "$window_system" != x11; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6314 window_system=msw
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6315 test "$with_scrollbars" != "no" && with_scrollbars=msw \
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6316 && 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
6317 echo " xemacs will be linked with \"scrollbar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6318 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6319 test "$with_menubars" != "no" && with_menubars=msw \
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6320 && 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
6321 echo " xemacs will be linked with \"menubar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6322 fi
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6323 test "$with_toolbars" != "no" && with_toolbars=msw \
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6324 && 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
6325 echo " xemacs will be linked with \"toolbar-msw.o\""
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6326 fi
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6327 test "$with_dialogs" != "no" && with_dialogs=msw \
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6328 && 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
6329 echo " xemacs will be linked with \"dialog-msw.o\""
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6330 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6331 test "$with_widgets" != "no" && with_widgets=msw
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6332 else
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6333 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
6334 echo " xemacs will be linked with \"scrollbar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6335 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6336 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
6337 echo " xemacs will be linked with \"menubar-msw.o\""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6338 fi
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6339 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
6340 echo " xemacs will be linked with \"toolbar-msw.o\""
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6341 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
6342 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
6343 echo " xemacs will be linked with \"dialog-msw.o\""
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6344 fi
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6345 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6346 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6347 #line 6348 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6348 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6349 #include <fcntl.h>
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6350 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6351 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6352 if { (eval echo configure:6353: \"$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
6353 then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6354 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6355 Defining HAVE_MSG_SELECT
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6356 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6357 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6358 #define HAVE_MSG_SELECT 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6359 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6360 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6361
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6362 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
6363 conftest_rc="$?"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6364 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6365 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6366 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
6367 rm -fr conftest*
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6368 with_file_coding=yes
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
6369 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
6370 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
6371 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6372 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6373 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
6374
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6375
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
6376
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6377 test -z "$window_system" && window_system="none"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6378
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6379 if test "$window_system" = "none"; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
6380 for feature in menubars scrollbars toolbars dialogs dragndrop xface
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6381 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6382 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6383 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
6384 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6385 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6386 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6387 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6388 test -z "$with_toolbars" && with_toolbars=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6389 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6390
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6391 if test "$with_msw" != "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6392 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6393 do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6394 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6395 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
6396 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6397 eval "with_${feature}=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6398 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6399 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6400 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6401 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6402
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6403 if test "$with_x11" != "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6404 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6405 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6406 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6407 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
6408 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6409 eval "with_${feature}=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6410 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6411 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6412
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6413 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6414
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6415 case "$window_system" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6416 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6417 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
6418 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6419 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6420
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6421 case "$x_libraries" in *X11R4* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6422 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6423 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6424 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6425
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6426 echo "checking for WM_COMMAND option" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6427 echo "configure:6428: checking for WM_COMMAND option" >&5;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6428 if test "$with_wmcommand" != "no"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6429 { test "$extra_verbose" = "yes" && cat << \EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6430 Defining HAVE_WMCOMMAND
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6431 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6432 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6433 #define HAVE_WMCOMMAND 1
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6434 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6435 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6436
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6437 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
6438
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6439 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6440 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
6441 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6442 echo "configure:6443: checking for X11/Xauth.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6443
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6444 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6445 #line 6446 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6446 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6447 #include <X11/Xauth.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6448 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6450 { (eval echo configure:6451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6452 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6453 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6454 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6455 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6456 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6457 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6458 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6459 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6460 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6461 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6462 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6464 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6465 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6466 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6467 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6468 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6469 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6470 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6471 test -z "$with_xauth" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6472 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6473 echo "configure:6474: checking for XauGetAuthByAddr in -lXau" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6474 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6475
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6476 xe_check_libs=" -lXau "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6477 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6478 #line 6479 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6479 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6480 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6481 /* 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
6482 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6483 char XauGetAuthByAddr();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6484
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6485 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6486 XauGetAuthByAddr()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6487 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6488 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6489 if { (eval echo configure:6490: \"$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
6490 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6491 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6492 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6493 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6494 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6495 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6496 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6497 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6498 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6499 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6500
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6501 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
6502 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6503 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6504 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6505 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6506 with_xauth=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6507 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6508
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6509 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6510 test -z "$with_xauth" && with_xauth=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6511 if test "$with_xauth" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6512 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6513 Defining HAVE_XAUTH
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6514 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6515 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6516 #define HAVE_XAUTH 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6517 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6518 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6519
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6520
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6521 T=""
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6522 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6523 libs_xauth="$T"
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6524
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6525 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
6526
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6527
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
6528
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6529
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6530 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6531 for dir in "" "Tt/" "desktop/" ; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6532 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6533 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6534 echo "configure:6535: checking for ${dir}tt_c.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6535
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6536 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6537 #line 6538 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6538 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6539 #include <${dir}tt_c.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6540 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6542 { (eval echo configure:6543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6544 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6545 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6546 eval "ac_cv_header_$ac_safe=yes"
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_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6549 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6550 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6551 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6552 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6553 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6554 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6556 echo "$ac_t""yes" 1>&6
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6557 tt_c_h_path="${dir}tt_c.h"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6558 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6559 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6560 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6561
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6562 done
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6563 if test -z "$tt_c_h_path"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6564 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6565 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6566 echo " " "Unable to find required tooltalk header files."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6567 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6568 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6569 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6570 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6571 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6572 if test "$with_tooltalk" != "no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6573 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6574
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6575 xe_msg_checking="for tt_message_create in -ltt"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6576 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
6577 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6578 echo "configure:6579: checking "$xe_msg_checking"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6579 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6580
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6581 xe_check_libs=" -ltt $extra_libs"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6582 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6583 #line 6584 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6584 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6585 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6586 /* 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
6587 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6588 char tt_message_create();
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 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6591 tt_message_create()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6592 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6593 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6594 if { (eval echo configure:6595: \"$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
6595 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6596 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6597 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6598 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6599 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6600 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6601 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6602 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6603 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6604 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6605
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6606 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
6607 echo "$ac_t""yes" 1>&6
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6608 tt_libs="-ltt $extra_libs"; break
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6609 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6610 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6611 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6612 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6613
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6614
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6615 done
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6616 if test -z "$tt_libs"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6617 if test "$with_tooltalk" = "yes"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6618 (echo "$progname: Usage error:"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6619 echo " " "Unable to find required tooltalk libraries."
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6620 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6621 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6622 with_tooltalk=no
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6623 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6624 fi
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
6625 test -z "$with_tooltalk" && with_tooltalk=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6626 if test "$with_tooltalk" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6627 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6628 Defining TOOLTALK
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6629 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6630 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6631 #define TOOLTALK 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6632 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6633 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6634
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6635 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6636 Defining TT_C_H_PATH = "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6637 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6638 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6639 #define TT_C_H_PATH "$tt_c_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6640 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6641 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6642
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6643 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
6644 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6645 echo " xemacs will be linked with \"tooltalk.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6646 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6647 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6648
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6649 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
6650 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6651 echo "configure:6652: checking for Dt/Dt.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6652
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6653 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6654 #line 6655 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6655 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6656 #include <Dt/Dt.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6657 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6659 { (eval echo configure:6660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6661 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6662 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6663 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6664 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6665 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6666 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6667 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6668 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6669 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6670 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6671 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6673 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6674 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6675 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6676 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6677 with_cde=no
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
6678 fi
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
6679 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6680 test -z "$with_cde" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6681 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6682 echo "configure:6683: checking for DtDndDragStart in -lDtSvc" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6683 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6684
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6685 xe_check_libs=" -lDtSvc "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6686 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6687 #line 6688 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6688 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6689 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6690 /* 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
6691 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6692 char DtDndDragStart();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6693
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6694 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6695 DtDndDragStart()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6696 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6697 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6698 if { (eval echo configure:6699: \"$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
6699 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6700 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6701 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6702 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6703 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6704 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6705 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6706 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6707 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6708 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6709
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6710 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
6711 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6712 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6713 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6714 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6715 with_cde=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6716 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6717
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6718 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6719 test -z "$with_cde" && with_cde=yes
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6720 if test "$with_dragndrop" = no; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6721 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6722 with_cde=no
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6723 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6724 if test "$with_cde" = "yes" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6725 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6726 Defining HAVE_CDE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6727 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6728 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6729 #define HAVE_CDE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6730 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6731 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6732
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
6733 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
6734 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
6735 with_tooltalk=yes # CDE requires Tooltalk
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
6736 need_motif=yes # CDE requires Motif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6737 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
6738
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6739 test "$window_system" != "x11" && with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6740 if test "$with_xmu" != yes -a "$with_x11" = yes; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6741 echo "configure: warning: No OffiX without real Xmu support" 1>&2
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6742 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6743 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6744 if test "$with_dragndrop" = no; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6745 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6746 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6747 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6748 if test "$with_cde" = yes; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6749 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6750 with_offix=no
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6751 fi
300
3cc9f0ebfbd1 Import from CVS: tag r21-0b48
cvs
parents: 298
diff changeset
6752 test -z "$with_offix" && with_offix=no
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6753 if test "$with_offix" = "yes"; then
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6754 { test "$extra_verbose" = "yes" && cat << \EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6755 Defining HAVE_OFFIX_DND
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6756 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6757 cat >> confdefs.h <<\EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6758 #define HAVE_OFFIX_DND 1
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6759 EOF
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6760 }
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6761
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6762 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
6763 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
6764 fi
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
6765
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6766 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6767 echo "configure:6768: checking if drag and drop API is needed" >&5
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6768 if test "$with_dragndrop" != "no" ; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6769 if test -n "$dragndrop_proto" ; then
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6770 with_dragndrop=yes
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6771 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6772 { test "$extra_verbose" = "yes" && cat << \EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6773 Defining HAVE_DRAGNDROP
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6774 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6775 cat >> confdefs.h <<\EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6776 #define HAVE_DRAGNDROP 1
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6777 EOF
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6778 }
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6779
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6780 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
6781 else
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6782 with_dragndrop=no
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6783 echo "$ac_t""no" 1>&6
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6784 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6785 fi
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 280
diff changeset
6786
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6787 echo "checking for LDAP" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6788 echo "configure:6789: checking for LDAP" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6789 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6790 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6791 echo "configure:6792: checking for ldap.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6792
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6793 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6794 #line 6795 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6795 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6796 #include <ldap.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6797 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6799 { (eval echo configure:6800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6801 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6802 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6803 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6804 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6805 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6806 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6807 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6808 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6809 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6810 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6811 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6813 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6814 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6815 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6816 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6817 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6818 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6819 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6820 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6821 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6822 echo "configure:6823: checking for lber.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6823
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6824 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6825 #line 6826 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6826 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6827 #include <lber.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6828 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6830 { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
6831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6832 if test -z "$ac_err"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6833 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6834 eval "ac_cv_header_$ac_safe=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6835 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6836 echo "$ac_err" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6837 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6838 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6839 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6840 eval "ac_cv_header_$ac_safe=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6841 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6842 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6844 echo "$ac_t""yes" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6845 :
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6846 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6847 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6848 with_ldap=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6849 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6850 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
6851 if test "$with_ldap" != "no"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6852
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6853 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6854 echo "configure:6855: checking for ldap_search in -lldap" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6855 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6856
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6857 xe_check_libs=" -lldap "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6858 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6859 #line 6860 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6860 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6861 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6862 /* 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
6863 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6864 char ldap_search();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6865
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6866 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6867 ldap_search()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6868 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6869 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6870 if { (eval echo configure:6871: \"$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
6871 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6872 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6873 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6874 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6875 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6876 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6877 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6878 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6879 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6880 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6881
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6882 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
6883 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6884 with_ldap_nolber=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6885 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6886 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6887 with_ldap_nolber=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6888 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6889
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6890
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6891 test "$with_ldap_nolber" = "no" && {
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6892 xe_msg_checking="for ldap_open in -lldap"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6893 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6894 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6895 echo "configure:6896: checking "$xe_msg_checking"" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6896 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6897
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6898 xe_check_libs=" -lldap -llber"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6899 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6900 #line 6901 "configure"
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6901 #include "confdefs.h"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6902 /* Override any gcc2 internal prototype to avoid an error. */
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6903 /* We use char because int might match the return type of a gcc2
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6904 builtin and then its argument prototype would still apply. */
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6905 char ldap_open();
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6906
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6907 int main() {
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6908 ldap_open()
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6909 ; return 0; }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6910 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6911 if { (eval echo configure:6912: \"$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
6912 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6913 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6914 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6915 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6916 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6917 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6918 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6919 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6920 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6921 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6922
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6924 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6925 with_ldap_lber=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6926 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6927 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6928 with_ldap_lber=no
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6929 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6930
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6931 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6932 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6933 xe_msg_checking="for ldap_open in -lldap"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6934 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6935 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6936 echo "configure:6937: checking "$xe_msg_checking"" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6937 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6938
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6939 xe_check_libs=" -lldap -llber -lkrb"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6940 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6941 #line 6942 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6942 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6943 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6944 /* 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
6945 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6946 char ldap_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6947
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6948 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6949 ldap_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6950 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6951 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6952 if { (eval echo configure:6953: \"$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
6953 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6954 eval "ac_cv_lib_$ac_lib_var=yes"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6955 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6956 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6957 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6958 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6959 eval "ac_cv_lib_$ac_lib_var=no"
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6960 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6961 rm -f conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6962 xe_check_libs=""
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6963
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6965 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6966 with_ldap_krb=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6967 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6968 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6969 with_ldap_krb=no
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6970 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6971
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
6972 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6973 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6974 xe_msg_checking="for ldap_open in -lldap"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6975 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6976 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6977 echo "configure:6978: checking "$xe_msg_checking"" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6978 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6979
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6980 xe_check_libs=" -lldap -llber -lkrb -ldes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6981 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6982 #line 6983 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6983 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6984 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6985 /* 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
6986 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6987 char ldap_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6988
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6989 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6990 ldap_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6991 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6992 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
6993 if { (eval echo configure:6994: \"$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
6994 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6995 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6996 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6997 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6998 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
6999 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7000 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7001 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7002 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7003 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7004
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7005 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
7006 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7007 with_ldap_krbdes=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7008 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7009 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7010 with_ldap_krbdes=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7011 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7012
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7013 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7014 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
7015 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7016 if test "$with_ldap" = "yes"; then
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7017 { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7018 Defining HAVE_LDAP
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7019 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7020 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7021 #define HAVE_LDAP 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7022 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7023 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7024
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7025 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7026 echo " xemacs will be linked with \"eldap.o\""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7027 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7028 if test "$with_ldap_nolber" = "yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7029 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7030 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7031 if test "$with_ldap_krb" = "yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7032 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7033 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7034 if test "$with_ldap_krbdes" = "yes" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7035 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7036 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7037 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7038 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
7039 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7040 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7041 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7042 do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7044 echo "configure:7045: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7045
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7046 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7047 #line 7048 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7048 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7049 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7050 which can conflict with char $ac_func(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7051 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7052 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7053 /* 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
7054 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7055 char $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7056
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7057 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7058
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7059 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7060 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7061 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7063 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7064 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7065 $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7066 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7067
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7068 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7069 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7070 if { (eval echo configure:7071: \"$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
7071 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7072 eval "ac_cv_func_$ac_func=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7073 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7074 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7075 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7076 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7077 eval "ac_cv_func_$ac_func=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7078 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7079 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7080
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7082 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7084 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7085 Defining $ac_tr_func
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7086 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7087 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7088 #define $ac_tr_func 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7089 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7090 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7091
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7092 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7093 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7094 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7095 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7096
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7097 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
7098
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7099
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7100 if test "$window_system" != "none"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7101 echo "checking for graphics libraries" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7102 echo "configure:7103: checking for graphics libraries" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7103
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7104 xpm_problem=""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7105 if test -z "$with_xpm"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7106 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7107 echo "configure:7108: checking for Xpm - no older than 3.4f" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7108 xe_check_libs=-lXpm
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7109 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7110 #line 7111 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7111 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7112 #define XPM_NUMBERS
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7113 #include <X11/xpm.h>
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7114 int main(int c, char **v) {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7115 return c == 1 ? 0 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7116 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7117 XpmIncludeVersion < 30406 ? 2 : 0 ;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7118 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7119 if { (eval echo configure:7120: \"$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
7120 then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7121 ./conftest dummy_arg; xpm_status=$?;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7122 if test "$xpm_status" = "0"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7123 with_xpm=yes;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7124 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7125 with_xpm=no;
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7126 if test "$xpm_status" = "1"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7127 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
7128 elif test "$xpm_status" = "2"; then
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7129 xpm_problem="Xpm library version is too old!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7130 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7131 xpm_problem="Internal xpm detection logic error!"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7132 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7133 echo "
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7134 *** WARNING *** $xpm_problem
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7135 I'm not touching that with a 10-foot pole!
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7136 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
7137 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
7138 fi
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7139 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7140 conftest_rc="$?"
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7141 echo "configure: failed program was:" >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7142 cat conftest.$ac_ext >&5
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7143 rm -fr conftest*
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7144 with_xpm=no
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7145 fi
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
7146 rm -fr conftest*
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7147 xe_check_libs=
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7148 echo "$ac_t""$with_xpm" 1>&6
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7149 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7150 if test "$with_xpm" = "yes"; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7151 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7152 Defining HAVE_XPM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7153 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7154 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7155 #define HAVE_XPM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7156 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7157 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7158
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7159 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
7160 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7161 echo "configure:7162: checking for \"FOR_MSW\" xpm" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7162 xe_check_libs=-lXpm
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7163 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7164 #line 7165 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7165 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7166
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7167 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7168 XpmCreatePixmapFromData()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7169 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7170 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7171 if { (eval echo configure:7172: \"$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
7172 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7173 xpm_for_msw=no
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7174 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7175 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7176 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7177 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7178 xpm_for_msw=yes
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7179 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7180 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7181 xe_check_libs=
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7182 echo "$ac_t""$xpm_for_msw" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7183 if test "$xpm_for_msw" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7184 { test "$extra_verbose" = "yes" && cat << \EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7185 Defining FOR_MSW
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7186 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7187 cat >> confdefs.h <<\EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7188 #define FOR_MSW 1
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7189 EOF
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7190 }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7191
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7192 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7193 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7194
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7195 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
7196 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7197 echo "configure:7198: checking for compface.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7198
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7199 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7200 #line 7201 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7201 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7202 #include <compface.h>
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7203 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7205 { (eval echo configure:7206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
7206 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
7207 if test -z "$ac_err"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7208 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7209 eval "ac_cv_header_$ac_safe=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7210 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7211 echo "$ac_err" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7212 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7213 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7214 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7215 eval "ac_cv_header_$ac_safe=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7216 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7217 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7219 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7220 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7221 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7222 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7223 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7224 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7225 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7226 test -z "$with_xface" && {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7227 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7228 echo "configure:7229: checking for UnGenFace in -lcompface" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7229 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7230
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7231 xe_check_libs=" -lcompface "
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7232 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7233 #line 7234 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7234 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7235 /* Override any gcc2 internal prototype to avoid an error. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7236 /* 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
7237 builtin and then its argument prototype would still apply. */
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7238 char UnGenFace();
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7239
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7240 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7241 UnGenFace()
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7242 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7243 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7244 if { (eval echo configure:7245: \"$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
7245 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7246 eval "ac_cv_lib_$ac_lib_var=yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7247 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7248 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7249 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7250 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7251 eval "ac_cv_lib_$ac_lib_var=no"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7252 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7253 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7254 xe_check_libs=""
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7255
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7256 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
7257 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7258 :
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7259 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7260 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7261 with_xface=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7262 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7263
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7264 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7265 test -z "$with_xface" && with_xface=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7266 if test "$with_xface" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7267 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7268 Defining HAVE_XFACE
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7269 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7270 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7271 #define HAVE_XFACE 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7272 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7273 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7274
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7275 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
7276 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
7277
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7278 if test "$with_gif" != "no"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7279 with_gif="yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7280 { test "$extra_verbose" = "yes" && cat << \EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7281 Defining HAVE_GIF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7282 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7283 cat >> confdefs.h <<\EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7284 #define HAVE_GIF 1
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7285 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7286 }
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7287
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7288 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
7289 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7290 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7291 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7292
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7293 if test "$with_png $with_tiff" != "no no"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7294
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7295 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7296 echo "configure:7297: checking for inflate in -lc" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7297 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7298
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7299 xe_check_libs=" -lc "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7300 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7301 #line 7302 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7302 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7303 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7304 /* 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
7305 builtin and then its argument prototype would still apply. */
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7306 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7307
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7308 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7309 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7310 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7311 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7312 if { (eval echo configure:7313: \"$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
7313 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7314 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7315 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7316 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7317 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7319 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7320 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7321 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7322 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7323
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
7324 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
7325 echo "$ac_t""yes" 1>&6
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7326 :
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7327 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7328 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7329
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7330 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7331 echo "configure:7332: checking for inflate in -lz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7332 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7333
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7334 xe_check_libs=" -lz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7335 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7336 #line 7337 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7337 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7338 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7339 /* 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
7340 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7341 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7342
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7343 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7344 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7345 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7346 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7347 if { (eval echo configure:7348: \"$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
7348 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7349 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7350 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7351 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7352 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7353 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7354 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7355 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7356 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7357 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7358
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7360 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7361 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
7362 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7363 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7364
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7365 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7366 echo "configure:7367: checking for inflate in -lgz" >&5
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7367 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7368
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7369 xe_check_libs=" -lgz "
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7370 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7371 #line 7372 "configure"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7372 #include "confdefs.h"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7373 /* Override any gcc2 internal prototype to avoid an error. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7374 /* 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
7375 builtin and then its argument prototype would still apply. */
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7376 char inflate();
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7377
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7378 int main() {
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7379 inflate()
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7380 ; return 0; }
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7381 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7382 if { (eval echo configure:7383: \"$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
7383 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7384 eval "ac_cv_lib_$ac_lib_var=yes"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7385 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7386 echo "configure: failed program was:" >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7387 cat conftest.$ac_ext >&5
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7388 rm -rf conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7389 eval "ac_cv_lib_$ac_lib_var=no"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7390 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7391 rm -f conftest*
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7392 xe_check_libs=""
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7393
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7395 echo "$ac_t""yes" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7396 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
7397 else
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7398 echo "$ac_t""no" 1>&6
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7399 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7400
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7401
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7402 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7403
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7404
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7405 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7406
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7407
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7408 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7409
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7410 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7411 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7412 echo "configure:7413: checking for jpeglib.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7413
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7414 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7415 #line 7416 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7416 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7417 #include <jpeglib.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7418 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
7419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7420 { (eval echo configure:7421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
7421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7422 if test -z "$ac_err"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7423 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7424 eval "ac_cv_header_$ac_safe=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7425 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7426 echo "$ac_err" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7427 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7428 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7429 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7430 eval "ac_cv_header_$ac_safe=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7431 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7432 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7434 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7435 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7436 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7437 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7438 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7439 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7440 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7441 test -z "$with_jpeg" && {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7442 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7443 echo "configure:7444: checking for jpeg_destroy_decompress in -ljpeg" >&5
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7444 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7445
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7446 xe_check_libs=" -ljpeg "
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7447 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7448 #line 7449 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7449 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7450 /* Override any gcc2 internal prototype to avoid an error. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7451 /* 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
7452 builtin and then its argument prototype would still apply. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7453 char jpeg_destroy_decompress();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7454
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7455 int main() {
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7456 jpeg_destroy_decompress()
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7457 ; return 0; }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7458 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7459 if { (eval echo configure:7460: \"$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
7460 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7461 eval "ac_cv_lib_$ac_lib_var=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7462 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7463 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7464 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7465 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7466 eval "ac_cv_lib_$ac_lib_var=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7467 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7468 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7469 xe_check_libs=""
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7470
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7472 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7473 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7474 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7475 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7476 with_jpeg=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7477 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7478
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7479 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7480 test -z "$with_jpeg" && with_jpeg=yes
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7481 if test "$with_jpeg" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7482 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7483 Defining HAVE_JPEG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7484 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7485 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7486 #define HAVE_JPEG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7487 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7488 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7489
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7490 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
7491 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7492
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7493 png_problem=""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7494 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7495 echo "configure:7496: checking for pow" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7496
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7497 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7498 #line 7499 "configure"
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7499 #include "confdefs.h"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7500 /* System header to define __stub macros and hopefully few prototypes,
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7501 which can conflict with char pow(); below. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7502 #include <assert.h>
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7503 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7504 /* 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
7505 builtin and then its argument prototype would still apply. */
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7506 char pow();
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7507
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7508 int main() {
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7509
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7510 /* The GNU C library defines this for functions which it implements
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7511 to always fail with ENOSYS. Some functions are actually named
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7512 something starting with __ and the normal name is an alias. */
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7513 #if defined (__stub_pow) || defined (__stub___pow)
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7514 choke me
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7515 #else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7516 pow();
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7517 #endif
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7518
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7519 ; return 0; }
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7520 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7521 if { (eval echo configure:7522: \"$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
7522 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7523 eval "ac_cv_func_pow=yes"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7524 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7525 echo "configure: failed program was:" >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7526 cat conftest.$ac_ext >&5
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7527 rm -rf conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7528 eval "ac_cv_func_pow=no"
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7529 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7530 rm -f conftest*
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7531
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7532 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7533 echo "$ac_t""yes" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7534 :
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7535 else
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7536 echo "$ac_t""no" 1>&6
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7537 with_png=no
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7538 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7539 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7540 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7541 echo $ac_n "checking for png.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7542 echo "configure:7543: checking for png.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7543
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7544 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7545 #line 7546 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7546 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7547 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7548 EOF
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7550 { (eval echo configure:7551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
7551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7552 if test -z "$ac_err"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7553 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7554 eval "ac_cv_header_$ac_safe=yes"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7555 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7556 echo "$ac_err" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7557 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7558 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7559 rm -rf conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7560 eval "ac_cv_header_$ac_safe=no"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7561 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7562 rm -f conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7564 echo "$ac_t""yes" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7565 :
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7566 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7567 echo "$ac_t""no" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7568 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7569 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7570 }
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7571 test -z "$with_png" && {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7572 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7573 echo "configure:7574: checking for png_read_image in -lpng" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7574 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7575
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7576 xe_check_libs=" -lpng "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7577 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7578 #line 7579 "configure"
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7579 #include "confdefs.h"
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7580 /* Override any gcc2 internal prototype to avoid an error. */
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
7581 /* 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
7582 builtin and then its argument prototype would still apply. */
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7583 char png_read_image();
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7584
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7585 int main() {
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7586 png_read_image()
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7587 ; return 0; }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7588 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7589 if { (eval echo configure:7590: \"$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
7590 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7591 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7592 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7593 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7594 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7595 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7596 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7597 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7598 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7599 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7600
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7602 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7603 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7604 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7605 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7606 with_png=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7607 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7608
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7609 }
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7610 if test -z "$with_png"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7611 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7612 echo "configure:7613: checking for workable png version information" >&5
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7613 xe_check_libs="-lpng -lz"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7614 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7615 #line 7616 "configure"
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7616 #include "confdefs.h"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7617 #include <png.h>
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7618 int main(int c, char **v) {
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7619 if (c == 1) return 0;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7620 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7621 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7622 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7623 if { (eval echo configure:7624: \"$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
7624 then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7625 ./conftest dummy_arg; png_status=$?;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7626 if test "$png_status" = "0"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7627 with_png=yes;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7628 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7629 with_png=no;
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7630 if test "$png_status" = "1"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7631 png_problem="PNG library version and header file don't match!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7632 elif test "$png_status" = "2"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7633 png_problem="PNG library version too old (pre 1.0.2)!"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7634 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7635 echo "
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7636 *** WARNING *** $png_problem
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7637 I'm not touching that with a 10-foot pole!
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7638 If you really want to use the installed version of libPNG, rerun
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7639 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
7640 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7641 else
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7642 conftest_rc="$?"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7643 echo "configure: failed program was:" >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7644 cat conftest.$ac_ext >&5
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7645 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7646 with_png=no
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7647 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7648 rm -fr conftest*
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7649 xe_check_libs=
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7650 echo "$ac_t""$with_png" 1>&6
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
7651 fi
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7652 if test "$with_png" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7653 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7654 Defining HAVE_PNG
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7655 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7656 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7657 #define HAVE_PNG 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7658 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7659 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7660
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7661 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
7662 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7663
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7664 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7665 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7666 echo "configure:7667: checking for tiffio.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7667
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7668 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7669 #line 7670 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7670 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7671 #include <tiffio.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7672 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7674 { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
7675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7676 if test -z "$ac_err"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7677 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7678 eval "ac_cv_header_$ac_safe=yes"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7679 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7680 echo "$ac_err" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7681 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7682 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7683 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7684 eval "ac_cv_header_$ac_safe=no"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7685 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7686 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7688 echo "$ac_t""yes" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7689 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7690 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7691 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7692 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7693 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7694 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7695 test -z "$with_tiff" && {
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7696 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7697 echo "configure:7698: checking for TIFFClientOpen in -ltiff" >&5
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7698 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7699
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7700 xe_check_libs=" -ltiff "
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7701 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7702 #line 7703 "configure"
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7703 #include "confdefs.h"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7704 /* Override any gcc2 internal prototype to avoid an error. */
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7705 /* 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
7706 builtin and then its argument prototype would still apply. */
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7707 char TIFFClientOpen();
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7708
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7709 int main() {
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7710 TIFFClientOpen()
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7711 ; return 0; }
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
7712 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7713 if { (eval echo configure:7714: \"$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
7714 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7715 eval "ac_cv_lib_$ac_lib_var=yes"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7716 else
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7717 echo "configure: failed program was:" >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7718 cat conftest.$ac_ext >&5
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7719 rm -rf conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7720 eval "ac_cv_lib_$ac_lib_var=no"
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7721 fi
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7722 rm -f conftest*
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7723 xe_check_libs=""
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7724
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 215
diff changeset
7726 echo "$ac_t""yes" 1>&6
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7727 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7728 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7729 echo "$ac_t""no" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7730 with_tiff=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7731 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7732
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7733 }
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7734 test -z "$with_tiff" && with_tiff=yes
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7735 if test "$with_tiff" = "yes"; then
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7736 { test "$extra_verbose" = "yes" && cat << \EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7737 Defining HAVE_TIFF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7738 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7739 cat >> confdefs.h <<\EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7740 #define HAVE_TIFF 1
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7741 EOF
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7742 }
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
7743
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
7744 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
7745 fi
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7746 fi
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7747
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7748
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7749 if test "$with_x11" = "yes"; then
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7750
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
7751 echo "checking for X11 graphics libraries" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7752 echo "configure:7753: checking for X11 graphics libraries" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7753
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7754 echo "checking for the Athena widgets" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7755 echo "configure:7756: checking for the Athena widgets" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7756
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7757 case "$with_athena" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7758 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7759 "3d") athena_variant=Xaw3d athena_3d=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7760 "next") athena_variant=neXtaw athena_3d=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7761 "95") athena_variant=Xaw95 athena_3d=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7762 "xpm") athena_variant=XawXpm athena_3d=yes ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7763 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7764 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7765
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7766 if test "$athena_3d" = "no"; then
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7767
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7768 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7769 echo "configure:7770: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7770 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7771
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7772 xe_check_libs=" -l$athena_variant "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7773 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7774 #line 7775 "configure"
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7775 #include "confdefs.h"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7776 /* Override any gcc2 internal prototype to avoid an error. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7777 /* 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
7778 builtin and then its argument prototype would still apply. */
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7779 char XawScrollbarSetThumb();
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7780
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7781 int main() {
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7782 XawScrollbarSetThumb()
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7783 ; return 0; }
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7784 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7785 if { (eval echo configure:7786: \"$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
7786 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7787 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7788 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7789 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7790 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7791 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7792 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7793 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7794 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7795 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7796
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7797 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
7798 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7799
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7800 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7801 echo "configure:7802: checking for threeDClassRec in -l$athena_variant" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7802 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7803
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7804 xe_check_libs=" -l$athena_variant "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7805 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7806 #line 7807 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7807 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7808 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7809 /* 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
7810 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7811 char threeDClassRec();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7812
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7813 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7814 threeDClassRec()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7815 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7816 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7817 if { (eval echo configure:7818: \"$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
7818 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7819 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7820 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7821 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7822 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7823 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7824 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7825 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7826 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7827 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7828
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7829 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
7830 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7831 echo "configure: warning: "Could not find a non-3d Athena widget library."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7832 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7833 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7834 athena_lib=$athena_variant
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7835 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7836
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7837
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7838
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7839 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7840 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7841 echo "configure: warning: "Could not find an Athena widget library."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7842 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7843
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7844
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7845 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7846
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7847 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7848 echo "configure:7849: checking for threeDClassRec in -l$athena_variant" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7849 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7850
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7851 xe_check_libs=" -l$athena_variant "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7852 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7853 #line 7854 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7854 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7855 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7856 /* 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
7857 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7858 char threeDClassRec();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7859
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7860 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7861 threeDClassRec()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7862 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7863 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7864 if { (eval echo configure:7865: \"$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
7865 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7866 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7867 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7868 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7869 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7870 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7871 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7872 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7873 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7874 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7875
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7876 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
7877 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7878 athena_lib=$athena_variant
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7879 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7880 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7881 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7882 echo "configure:7883: checking for threeDClassRec in -lXaw" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7883 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7884
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7885 xe_check_libs=" -lXaw "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7886 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7887 #line 7888 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7888 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7889 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7890 /* 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
7891 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7892 char threeDClassRec();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7893
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7894 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7895 threeDClassRec()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7896 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7897 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7898 if { (eval echo configure:7899: \"$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
7899 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7900 eval "ac_cv_lib_$ac_lib_var=yes"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7901 else
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7902 echo "configure: failed program was:" >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7903 cat conftest.$ac_ext >&5
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7904 rm -rf conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7905 eval "ac_cv_lib_$ac_lib_var=no"
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7906 fi
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7907 rm -f conftest*
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7908 xe_check_libs=""
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7909
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
7911 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7912 athena_lib=Xaw;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7913 echo "configure: warning: "Assuming that libXaw is actually $athena_variant."" 1>&2;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7914
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7915 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7916 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7917 echo "configure: warning: "Could not find a 3d Athena widget library that looked like $athena_variant."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7918 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7919
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7920
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7921 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7922
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7923
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7924 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7925
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7926 if test "$athena_3d" = "no"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7927 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7928 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7929 echo "configure:7930: checking for X11/Xaw/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7930
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7931 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7932 #line 7933 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7933 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7934 #include <X11/Xaw/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7935 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7939 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7940 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7941 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7942 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7943 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7944 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7945 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7946 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7947 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7948 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7949 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7951 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7952 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7953 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7954 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7955 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7956 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7957 echo "configure:7958: checking for X11/Xaw/XawInit.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7958
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7959 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7960 #line 7961 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7961 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7962 #include <X11/Xaw/XawInit.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7963 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7965 { (eval echo configure:7966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7967 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7968 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7969 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7970 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7971 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7972 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7973 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7974 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7975 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7976 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7977 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7979 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7980 athena_h_path=X11/Xaw
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7981 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7982 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7983 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7984 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7985
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7986 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7987
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7988 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7989 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7990 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7991 echo "configure:7992: checking for X11/$athena_variant/XawInit.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7992
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7993 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7994 #line 7995 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7995 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7996 #include <X11/$athena_variant/XawInit.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7997 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
7998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
7999 { (eval echo configure:8000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8001 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8002 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8003 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8004 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8005 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8006 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8007 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8008 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8009 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8010 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8011 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8013 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8014 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8015 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8016 echo "configure:8017: checking for X11/$athena_variant/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8017
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8018 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8019 #line 8020 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8020 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8021 #include <X11/$athena_variant/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8022 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8024 { (eval echo configure:8025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8026 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8027 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8028 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8029 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8030 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8031 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8032 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8033 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8034 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8035 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8036 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8038 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8039 athena_h_path=X11/$athena_variant
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8040 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8041 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8042 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8043
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8044 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8045 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8046 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8047
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8048
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8049 if test -z "$athena_h_path"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8050 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8051 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8052 echo "configure:8053: checking for $athena_variant/XawInit.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8053
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8054 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8055 #line 8056 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8056 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8057 #include <$athena_variant/XawInit.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8058 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8062 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8063 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8064 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8065 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8066 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8067 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8068 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8069 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8070 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8071 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8072 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8074 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8075 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8076 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8077 echo "configure:8078: checking for $athena_variant/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8078
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8079 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8080 #line 8081 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8081 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8082 #include <$athena_variant/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8083 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8085 { (eval echo configure:8086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8087 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8088 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8089 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8090 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8091 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8092 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8093 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8094 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8095 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8096 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8097 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8099 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8100 athena_h_path=$athena_variant
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8101 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8102 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8103 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8104
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8105 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8106 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8107 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8108
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8109 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8110
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8111 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8112 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8113 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8114 echo "configure:8115: checking for X11/Xaw3d/XawInit.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8115
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8116 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8117 #line 8118 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8118 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8119 #include <X11/Xaw3d/XawInit.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8120 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8124 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8125 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8126 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8127 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8128 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8129 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8130 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8131 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8132 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8133 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8134 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8136 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8137 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8138 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8139 echo "configure:8140: checking for X11/Xaw3d/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8140
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8141 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8142 #line 8143 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8143 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8144 #include <X11/Xaw3d/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8145 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8147 { (eval echo configure:8148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8149 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8150 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8151 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8152 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8153 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8154 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8155 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8156 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8157 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8158 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8159 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8161 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8162
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8163 echo "configure: warning: "Assuming that X11/Xaw3d headers are suitable for $athena_variant."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8164 athena_h_path=X11/Xaw3d
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8165
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8166 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8167 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8168 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8169
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8170 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8171 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8172 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8173
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8174 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8175
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8176 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8177 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8178 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8179 echo "configure:8180: checking for Xaw3d/XawInit.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8180
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8181 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8182 #line 8183 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8183 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8184 #include <Xaw3d/XawInit.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8185 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8187 { (eval echo configure:8188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8189 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8190 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8191 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8192 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8193 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8194 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8195 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8196 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8197 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8198 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8199 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8201 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8202 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8203 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8204 echo "configure:8205: checking for Xaw3d/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8205
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8206 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8207 #line 8208 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8208 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8209 #include <Xaw3d/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8210 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8212 { (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8214 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8215 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8216 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8217 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8218 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8219 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8220 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8221 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8222 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8223 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8224 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8226 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8227
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8228 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8229 athena_h_path=Xaw3d
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8230
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8231 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8232 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8233 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8234
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8235 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8236 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8237 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8238
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8239 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8240
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8241 if test -z "$athena_h_path"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8242 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8243 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8244 echo "configure:8245: checking for X11/Xaw/ThreeD.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8245
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8246 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8247 #line 8248 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8248 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8249 #include <X11/Xaw/ThreeD.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8250 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8252 { (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8254 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8255 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8256 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8257 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8258 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8259 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8260 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8261 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8262 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8263 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8264 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8266 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8267
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8268 echo "configure: warning: "Assuming that X11/Xaw headers are suitable for $athena_variant."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8269 athena_h_path=X11/Xaw
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8270
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8271 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8272 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8273 echo "configure: warning: "Could not find a suitable 3d Athena header set."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8274 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8275
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8276 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8277 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8278
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8279 if test -n "$athena_lib" -a -n "$athena_h_path"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8280 have_xaw=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8281 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8282 have_xaw=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8283 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8284
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8285 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8286 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8287 echo "configure:8288: checking for Xm/Xm.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8288
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8289 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8290 #line 8291 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8291 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8292 #include <Xm/Xm.h>
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8293 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8295 { (eval echo configure:8296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8297 if test -z "$ac_err"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8298 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8299 eval "ac_cv_header_$ac_safe=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8300 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8301 echo "$ac_err" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8302 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8303 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8304 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8305 eval "ac_cv_header_$ac_safe=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8306 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8307 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8309 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8310
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8311 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8312 echo "configure:8313: checking for XmStringFree in -lXm" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8313 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8314
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8315 xe_check_libs=" -lXm "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8316 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8317 #line 8318 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8318 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8319 /* Override any gcc2 internal prototype to avoid an error. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8320 /* 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
8321 builtin and then its argument prototype would still apply. */
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8322 char XmStringFree();
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8323
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8324 int main() {
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8325 XmStringFree()
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8326 ; return 0; }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8327 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8328 if { (eval echo configure:8329: \"$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
8329 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8330 eval "ac_cv_lib_$ac_lib_var=yes"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8331 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8332 echo "configure: failed program was:" >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8333 cat conftest.$ac_ext >&5
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8334 rm -rf conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8335 eval "ac_cv_lib_$ac_lib_var=no"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8336 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8337 rm -f conftest*
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8338 xe_check_libs=""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8339
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8341 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8342 have_motif=yes
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8343 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8344 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8345 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8346 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8347
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8348
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8349 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8350 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8351 have_motif=no
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8352 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8353
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8354
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8355 if test "$have_motif" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8356 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8357 echo "configure:8358: checking for Lesstif" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8358 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8359 #line 8360 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8360 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8361 #include <Xm/Xm.h>
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8362 #ifdef LESSTIF_VERSION
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8363 yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8364 #endif
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8365
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8366 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8368 egrep "yes" >/dev/null 2>&1; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8369 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8370 have_lesstif=yes
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8371 else
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8372 rm -rf conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8373 have_lesstif=no
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8374 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8375 rm -f conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8376
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8377 echo "$ac_t""$have_lesstif" 1>&6
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8378 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8379
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 187
diff changeset
8380 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8381
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8382 case "$with_menubars" in "" | "yes" | "athena" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8383 with_menubars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8384 esac
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 239
diff changeset
8385 case "$with_dialogs" in "" | "yes" | "lucid" )
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8386 if test "$have_motif" = "yes"; then with_dialogs="motif"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8387 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8388 else with_dialogs=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8389 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8390 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8391 case "$with_scrollbars" in "" | "yes" )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8392 with_scrollbars="lucid" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8393 esac
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8394 case "$with_widgets" in "" | "yes" | "lucid")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8395 if test "$have_motif" = "yes"; then with_widgets="motif"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8396 elif test "$have_xaw" = "yes"; then with_widgets="athena"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8397 else with_widgets=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8398 fi ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8399 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8400
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8401 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8402
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8403 case "$all_widgets" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8404 *athena* )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8405 if test "$have_xaw" != "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8406 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8407 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8408
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8409 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8410
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8411 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8412
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8413 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8414 Defining ATHENA_H_PATH = $athena_h_path
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8415 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8416 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8417 #define ATHENA_H_PATH $athena_h_path
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8418 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8419 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8420
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8421
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8422 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8423 Defining LWLIB_USES_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8424 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8425 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8426 #define LWLIB_USES_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8427 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8428 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8429
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8430 { test "$extra_verbose" = "yes" && cat << \EOF
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8431 Defining NEED_ATHENA
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8432 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8433 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8434 #define NEED_ATHENA 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8435 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8436 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8437
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8438
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8439 if test "$athena_3d" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8440 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8441 Defining HAVE_ATHENA_3D
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8442 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8443 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8444 #define HAVE_ATHENA_3D 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8445 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8446 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8447
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8448 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8449 ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8450 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8452 case "$all_widgets" in *motif* )
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8453 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8454 Defining LWLIB_USES_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8455 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8456 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8457 #define LWLIB_USES_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8458 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8459 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8460
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8461 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8462 Defining NEED_MOTIF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8463 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8464 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8465 #define NEED_MOTIF 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8466 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8467 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8468
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8469 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
8470 need_motif=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
8471 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
8472
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8473 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
8474 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
8475 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8476 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8477 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8478 case "$with_widgets" in athena* )
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8479 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;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8480 esac
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8481 case "$all_widgets" in *lucid* )
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8482 { test "$extra_verbose" = "yes" && cat << \EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8483 Defining NEED_LUCID
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8484 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8485 cat >> confdefs.h <<\EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8486 #define NEED_LUCID 1
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8487 EOF
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8488 }
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8489
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8490 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
8491 esac
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8492
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8493
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
8494
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8495 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8496 Defining LWLIB_SCROLLBARS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8497 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8498 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8499 #define LWLIB_SCROLLBARS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8500 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8501 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8502
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8503 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8504 Defining LWLIB_DIALOGS_ATHENA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8505 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8506 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8507 #define LWLIB_DIALOGS_ATHENA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8508 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8509 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8510
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8511
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8512 if test "$athena_3d" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8513 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8514 Defining LWLIB_SCROLLBARS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8515 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8516 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8517 #define LWLIB_SCROLLBARS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8518 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8519 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8520
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8521 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8522 Defining LWLIB_DIALOGS_ATHENA3D
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8523 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8524 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8525 #define LWLIB_DIALOGS_ATHENA3D 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8526 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8527 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8528
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8529 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8530
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8531 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8532 Defining LWLIB_WIDGETS_ATHENA
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8533 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8534 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8535 #define LWLIB_WIDGETS_ATHENA 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8536 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8537 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8538 ;; esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8539 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8540 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8541 Defining LWLIB_TABS_LUCID
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8542 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8543 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8544 #define LWLIB_TABS_LUCID 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8545 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8546 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8547
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8548
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8549 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8550 Defining HAVE_MENUBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8552 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8553 #define HAVE_MENUBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8554 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8555 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8556
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8557 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8558 Defining HAVE_SCROLLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8559 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8560 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8561 #define HAVE_SCROLLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8562 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8563 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8565 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8566 Defining HAVE_DIALOGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8567 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8568 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8569 #define HAVE_DIALOGS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8570 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8571 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8572
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8573 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8574 Defining HAVE_TOOLBARS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8575 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8576 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8577 #define HAVE_TOOLBARS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8578 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8579 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8580
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8581 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8582 Defining HAVE_WIDGETS
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8583 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8584 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8585 #define HAVE_WIDGETS 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8586 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8587 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8588
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8589
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8590 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8591 Defining LWLIB_MENUBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8592 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8593 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8594 #define LWLIB_MENUBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8595 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8596 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8598 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8599 Defining LWLIB_SCROLLBARS_LUCID
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8600 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8601 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8602 #define LWLIB_SCROLLBARS_LUCID 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8603 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8604 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8605
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8606
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8607 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8608 Defining LWLIB_MENUBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8609 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8610 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8611 #define LWLIB_MENUBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8612 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8613 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8614
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8615 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8616 Defining LWLIB_SCROLLBARS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8617 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8618 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8619 #define LWLIB_SCROLLBARS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8620 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8621 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8622
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8623 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8624 Defining LWLIB_DIALOGS_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8625 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8626 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8627 #define LWLIB_DIALOGS_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8628 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8629 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8630
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8631 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8632 Defining LWLIB_WIDGETS_MOTIF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8633 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8634 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8635 #define LWLIB_WIDGETS_MOTIF 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8636 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8637 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8638
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8639
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8640 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
8641 echo " xemacs will be linked with \"menubar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8642 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8643 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
8644 echo " xemacs will be linked with \"scrollbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8645 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8646 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
8647 echo " xemacs will be linked with \"dialog.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8648 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8649 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
8650 echo " xemacs will be linked with \"toolbar.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8651 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8652
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8653 if test "$with_x11" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8654 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
8655 echo " xemacs will be linked with \"menubar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8656 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8657 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
8658 echo " xemacs will be linked with \"scrollbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8659 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8660 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
8661 echo " xemacs will be linked with \"dialog-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8662 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8663 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
8664 echo " xemacs will be linked with \"toolbar-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8665 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8666 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
8667 echo " xemacs will be linked with \"gui-x.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8668 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8669 fi
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8670
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8671
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8672 test -z "$with_mule" && with_mule=no
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8673 test -z "$with_file_coding" && with_file_coding=no
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8674
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8675
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8676 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8677 { test "$extra_verbose" = "yes" && cat << \EOF
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8678 Defining FILE_CODING
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8679 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8680 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8681 #define FILE_CODING 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8682 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8683 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8684
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8685 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
8686 echo " xemacs will be linked with \"file-coding.o\""
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8687 fi
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8688 fi
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
8689
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8690 if test "$with_mule" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8691 echo "checking for Mule-related features" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8692 echo "configure:8693: checking for Mule-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8693 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8694 Defining MULE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8695 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8696 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8697 #define MULE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8698 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8699 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8700
251
677f6a0ee643 Import from CVS: tag r20-5b24
cvs
parents: 249
diff changeset
8701 { test "$extra_verbose" = "yes" && cat << \EOF
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8702 Defining FILE_CODING
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8703 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8704 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8705 #define FILE_CODING 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8706 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8707 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
8708
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
8709 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
8710 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
8711 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8712
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8713 for ac_hdr in libintl.h
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8714 do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8717 echo "configure:8718: checking for $ac_hdr" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8718
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8719 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8720 #line 8721 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8721 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8722 #include <$ac_hdr>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8723 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8725 { (eval echo configure:8726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8727 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8728 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8729 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8730 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8731 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8732 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8733 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8734 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8735 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8736 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8737 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8739 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8741 { test "$extra_verbose" = "yes" && cat << EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8742 Defining $ac_tr_hdr
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8743 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8744 cat >> confdefs.h <<EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8745 #define $ac_tr_hdr 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8746 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8747 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8748
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8749 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8750 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8751 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8752 done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8753
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
8754
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8755 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8756 echo "configure:8757: checking for strerror in -lintl" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8757 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8758
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8759 xe_check_libs=" -lintl "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8760 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8761 #line 8762 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8762 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8763 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8764 /* 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
8765 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8766 char strerror();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8767
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8768 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8769 strerror()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8770 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8771 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8772 if { (eval echo configure:8773: \"$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
8773 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8774 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8775 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8776 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8777 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8778 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8779 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8780 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8781 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8782 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8783
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8784 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
8785 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8786 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
8787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8788 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8789 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8790 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8791 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8792 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8793 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8794 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8795
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8796 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
8797
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8798 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8799 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8800 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8801
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8802
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8803
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8804 echo "checking for Mule input methods" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8805 echo "configure:8806: checking for Mule input methods" >&5
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8806 case "$with_xim" in "" | "yes" )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8807 echo "checking for XIM" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8808 echo "configure:8809: checking for XIM" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8809
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8810 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8811 echo "configure:8812: checking for XOpenIM in -lX11" >&5
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8812 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8813
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8814 xe_check_libs=" -lX11 "
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8815 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8816 #line 8817 "configure"
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8817 #include "confdefs.h"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8818 /* Override any gcc2 internal prototype to avoid an error. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8819 /* 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
8820 builtin and then its argument prototype would still apply. */
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8821 char XOpenIM();
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8822
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8823 int main() {
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8824 XOpenIM()
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8825 ; return 0; }
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8826 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8827 if { (eval echo configure:8828: \"$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
8828 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8829 eval "ac_cv_lib_$ac_lib_var=yes"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8830 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8831 echo "configure: failed program was:" >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8832 cat conftest.$ac_ext >&5
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8833 rm -rf conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8834 eval "ac_cv_lib_$ac_lib_var=no"
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8835 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8836 rm -f conftest*
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8837 xe_check_libs=""
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8838
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8839 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
8840 echo "$ac_t""yes" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8841 with_xim=xlib
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8842 else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8843 echo "$ac_t""no" 1>&6
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8844 with_xim=no
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8845 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8846
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8847
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8848 if test "$have_motif $have_lesstif" = "yes no"; then
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8849
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8850 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8851 echo "configure:8852: checking for XmImMbLookupString in -lXm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8852 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8853
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8854 xe_check_libs=" -lXm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8855 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8856 #line 8857 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8857 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8858 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8859 /* 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
8860 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8861 char XmImMbLookupString();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8862
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8863 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8864 XmImMbLookupString()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8865 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8866 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8867 if { (eval echo configure:8868: \"$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
8868 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8869 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8870 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8871 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8872 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8873 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8874 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8875 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8876 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8877 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8878
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8879 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
8880 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8881 with_xim=motif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8882 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8883 echo "$ac_t""no" 1>&6
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8884 fi
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8885
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8886
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
8887 fi ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8888 esac
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
8889 if test "$with_xim" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8890 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8891 Defining HAVE_XIM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8892 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8893 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8894 #define HAVE_XIM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8895 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8896 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8897
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8898 if test "$with_xim" = "xlib"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8899 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8900 Defining XIM_XLIB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8901 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8902 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8903 #define XIM_XLIB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8904 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8905 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8906
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8907 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
8908 echo " xemacs will be linked with \"input-method-xlib.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8909 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8910 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8911 if test "$with_xim" = "motif"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8912 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8913 Defining XIM_MOTIF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8914 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8915 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8916 #define XIM_MOTIF 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8917 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8918 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8919
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8920 need_motif=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8921 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
8922 echo " xemacs will be linked with \"input-method-motif.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8923 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8924 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8925 if test "$with_xim" = "motif"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8926 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8927 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8928 fi
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8929
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8930 if test "$with_xfs" = "yes" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8931 echo "checking for XFontSet" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8932 echo "configure:8933: checking for XFontSet" >&5
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8933
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8934 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8935 echo "configure:8936: checking for XmbDrawString in -lX11" >&5
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8936 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8937
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8938 xe_check_libs=" -lX11 "
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8939 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8940 #line 8941 "configure"
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8941 #include "confdefs.h"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8942 /* Override any gcc2 internal prototype to avoid an error. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8943 /* 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
8944 builtin and then its argument prototype would still apply. */
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8945 char XmbDrawString();
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8946
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8947 int main() {
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8948 XmbDrawString()
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8949 ; return 0; }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8950 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8951 if { (eval echo configure:8952: \"$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
8952 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8953 eval "ac_cv_lib_$ac_lib_var=yes"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8954 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8955 echo "configure: failed program was:" >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8956 cat conftest.$ac_ext >&5
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8957 rm -rf conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8958 eval "ac_cv_lib_$ac_lib_var=no"
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8959 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8960 rm -f conftest*
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8961 xe_check_libs=""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8962
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8964 echo "$ac_t""yes" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8965 :
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8966 else
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8967 echo "$ac_t""no" 1>&6
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8968 with_xfs=no
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8969 fi
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8970
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8971
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8972 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8973 { test "$extra_verbose" = "yes" && cat << \EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8974 Defining USE_XFONTSET
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8975 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8976 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8977 #define USE_XFONTSET 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8978 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8979 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8980
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8981 if test "$with_xim" = "no" ; then
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8982 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8983 echo " xemacs will be linked with \"input-method-xfs.o\""
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8984 fi
215
1f0dabaa0855 Import from CVS: tag r20-4b6
cvs
parents: 213
diff changeset
8985 fi
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
8986 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8987 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8988 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8989 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
8990 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8991 echo "configure:8992: checking for wnn/jllib.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8992
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8993 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8994 #line 8995 "configure"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8995 #include "confdefs.h"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
8996 #include <wnn/jllib.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8997 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
8998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
8999 { (eval echo configure:9000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9001 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9002 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9003 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9004 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9005 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9006 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9007 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9008 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9009 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9010 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9011 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9013 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9014 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9015 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9016 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9017 with_wnn=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9018 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9019 }
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9020 if test "$with_wnn" != "no"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9021 for ac_func in crypt
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9022 do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9024 echo "configure:9025: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9025
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9026 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9027 #line 9028 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9028 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9029 /* System header to define __stub macros and hopefully few prototypes,
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9030 which can conflict with char $ac_func(); below. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9031 #include <assert.h>
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9032 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9033 /* 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
9034 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9035 char $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9036
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9037 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9038
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9039 /* The GNU C library defines this for functions which it implements
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9040 to always fail with ENOSYS. Some functions are actually named
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9041 something starting with __ and the normal name is an alias. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9043 choke me
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9044 #else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9045 $ac_func();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9046 #endif
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9047
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9048 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9049 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9050 if { (eval echo configure:9051: \"$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
9051 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9052 eval "ac_cv_func_$ac_func=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9053 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9054 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9055 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9056 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9057 eval "ac_cv_func_$ac_func=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9058 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9059 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9060
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9062 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9064 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9065 Defining $ac_tr_func
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9066 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9067 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9068 #define $ac_tr_func 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9069 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9070 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9071
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9072 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9073 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9074 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9075 done
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9076
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9077 test "$ac_cv_func_crypt" != "yes" && {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9078 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9079 echo "configure:9080: checking for crypt in -lcrypt" >&5
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9080 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9081
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9082 xe_check_libs=" -lcrypt "
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9083 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9084 #line 9085 "configure"
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9085 #include "confdefs.h"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9086 /* Override any gcc2 internal prototype to avoid an error. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9087 /* 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
9088 builtin and then its argument prototype would still apply. */
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9089 char crypt();
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9090
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9091 int main() {
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9092 crypt()
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9093 ; return 0; }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9094 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9095 if { (eval echo configure:9096: \"$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
9096 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9097 eval "ac_cv_lib_$ac_lib_var=yes"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9098 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9099 echo "configure: failed program was:" >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9100 cat conftest.$ac_ext >&5
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9101 rm -rf conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9102 eval "ac_cv_lib_$ac_lib_var=no"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9103 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9104 rm -f conftest*
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9105 xe_check_libs=""
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9106
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9108 echo "$ac_t""yes" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9109 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
9110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9111 { test "$extra_verbose" = "yes" && cat << EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9112 Defining $ac_tr_lib
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9113 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9114 cat >> confdefs.h <<EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9115 #define $ac_tr_lib 1
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9116 EOF
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9117 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9118
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9119 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
9120
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9121 else
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9122 echo "$ac_t""no" 1>&6
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9123 fi
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9124
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9125 }
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
9126 fi
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9127 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9128
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9129 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9130 echo "configure:9131: checking for jl_dic_list_e in -lwnn" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9131 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
9132
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9133 xe_check_libs=" -lwnn "
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9134 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9135 #line 9136 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9136 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9137 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9138 /* 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
9139 builtin and then its argument prototype would still apply. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9140 char jl_dic_list_e();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9141
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9142 int main() {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9143 jl_dic_list_e()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9144 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9145 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9146 if { (eval echo configure:9147: \"$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
9147 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9148 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9149 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9150 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9151 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9152 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9153 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9154 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9155 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9156 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9157
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9159 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9160 libwnn=wnn
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9161 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9162 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9163 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9164 echo "configure:9165: checking for jl_dic_list_e in -lwnn4" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9165 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9166
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9167 xe_check_libs=" -lwnn4 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9168 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9169 #line 9170 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9170 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9171 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9172 /* 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
9173 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9174 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9175
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9176 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9177 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9178 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9179 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9180 if { (eval echo configure:9181: \"$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
9181 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9182 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9183 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9184 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9185 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9186 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9187 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9188 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9189 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9190 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9191
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9192 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
9193 echo "$ac_t""yes" 1>&6
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9194 libwnn=wnn4
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9195 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9196 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9197 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9198 echo "configure:9199: checking for jl_dic_list_e in -lwnn6" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9199 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9200
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9201 xe_check_libs=" -lwnn6 "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9202 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9203 #line 9204 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9204 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9205 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9206 /* 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
9207 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9208 char jl_dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9209
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9210 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9211 jl_dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9212 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9213 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9214 if { (eval echo configure:9215: \"$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
9215 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9216 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9217 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9218 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9219 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9220 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9221 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9222 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9223 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9224 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9225
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9227 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9228 libwnn=wnn6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9229 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9230 echo "$ac_t""no" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9231 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9232 echo "configure:9233: checking for dic_list_e in -lwnn6_fromsrc" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9233 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9234
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9235 xe_check_libs=" -lwnn6_fromsrc "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9236 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9237 #line 9238 "configure"
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9238 #include "confdefs.h"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9239 /* Override any gcc2 internal prototype to avoid an error. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9240 /* 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
9241 builtin and then its argument prototype would still apply. */
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9242 char dic_list_e();
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9243
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9244 int main() {
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9245 dic_list_e()
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9246 ; return 0; }
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9247 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9248 if { (eval echo configure:9249: \"$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
9249 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9250 eval "ac_cv_lib_$ac_lib_var=yes"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9251 else
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9252 echo "configure: failed program was:" >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9253 cat conftest.$ac_ext >&5
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9254 rm -rf conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9255 eval "ac_cv_lib_$ac_lib_var=no"
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9256 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9257 rm -f conftest*
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9258 xe_check_libs=""
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9259
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9261 echo "$ac_t""yes" 1>&6
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9262 libwnn=wnn6_fromsrc
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9263 else
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9264 echo "$ac_t""no" 1>&6
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9265 with_wnn=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9266 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9267
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9268
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9269 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9270
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9271
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9272 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9273
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9274
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9275 fi
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9276
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9277
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9278 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9279 test -z "$with_wnn" && with_wnn=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9280 if test "$with_wnn" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9281 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9282 Defining HAVE_WNN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9283 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9284 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9285 #define HAVE_WNN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9286 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9287 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9288
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9289 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
9290 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
9291 echo " xemacs will be linked with \"mule-wnnfns.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9292 fi
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
9293 if test "$with_wnn6" != "no"; then
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
9294
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9295 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9296 echo "configure:9297: checking for jl_fi_dic_list in -l$libwnn" >&5
377
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9297 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9298
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9299 xe_check_libs=" -l$libwnn "
d883f39b8495 Import from CVS: tag r21-2b4
cvs
parents: 375
diff changeset
9300 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9301 #line 9302 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9302 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9303 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9304 /* 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
9305 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9306 char jl_fi_dic_list();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9307
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9308 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9309 jl_fi_dic_list()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9310 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9311 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9312 if { (eval echo configure:9313: \"$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
9313 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9314 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9315 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9316 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9317 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9318 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9319 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9320 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9321 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9322 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9323
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9324 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
9325 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9326 with_wnn6=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9327 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9328 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9329 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9330
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9331
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
9332 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9333 Defining WNN6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9334 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9335 cat >> confdefs.h <<\EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9336 #define WNN6 1
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9337 EOF
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9338 }
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9339
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
9340 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9341 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9342
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9343 canna_includes_found=no
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9344 if test "$with_canna" != "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9345 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9346 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9347 echo "configure:9348: checking for canna/jrkanji.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9348
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9349 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9350 #line 9351 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9351 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9352 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9353 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9355 { (eval echo configure:9356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9357 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9358 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9359 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9360 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9361 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9362 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9363 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9364 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9365 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9366 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9367 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9369 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9370 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9371 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9372 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9373 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9374
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9375 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9376 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9377 -d "/usr/local/canna/include"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9378 save_c_switch_site="$c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9379 c_switch_site="$c_switch_site -I/usr/local/canna/include"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9380 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9381 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9382 echo "configure:9383: checking for canna/jrkanji.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9383
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9384 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9385 #line 9386 "configure"
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9386 #include "confdefs.h"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9387 #include <canna/jrkanji.h>
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9388 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9392 if test -z "$ac_err"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9393 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9394 eval "ac_cv_header_$ac_safe=yes"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9395 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9396 echo "$ac_err" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9397 echo "configure: failed program was:" >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9398 cat conftest.$ac_ext >&5
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9399 rm -rf conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9400 eval "ac_cv_header_$ac_safe=no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9401 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9402 rm -f conftest*
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9404 echo "$ac_t""yes" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9405 canna_includes_found=yes
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9406 else
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9407 echo "$ac_t""no" 1>&6
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9408 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9409
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9410 if test "$canna_includes_found" != "yes"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9411 c_switch_site="$save_c_switch_site"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9412 with_canna="no"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9413 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9414 fi
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9415
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
9416 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
9417 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9418 echo "configure:9419: checking for canna/RK.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9419
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9420 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9421 #line 9422 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9422 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9423 #include <canna/RK.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9424 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9426 { (eval echo configure:9427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
9427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9428 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9429 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9430 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9431 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9432 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9433 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9434 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9435 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9436 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9437 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9438 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9440 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9441 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9442 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9443 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9444 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9445 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9446 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9447 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9448 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9449 echo "configure:9450: checking for RkBgnBun in -lRKC" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9450 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9451
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9452 xe_check_libs=" -lRKC "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9453 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9454 #line 9455 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9455 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9456 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9457 /* 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
9458 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9459 char RkBgnBun();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9460
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9461 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9462 RkBgnBun()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9463 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9464 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9465 if { (eval echo configure:9466: \"$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
9466 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9467 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9468 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9469 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9470 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9471 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9472 eval "ac_cv_lib_$ac_lib_var=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 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9475 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9476
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9477 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
9478 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9479 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9480 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9481 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9482 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9483 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9484
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9485 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9486 test -z "$with_canna" && {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9487 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9488 echo "configure:9489: checking for jrKanjiControl in -lcanna" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9489 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9490
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9491 xe_check_libs=" -lcanna "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9492 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9493 #line 9494 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9494 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9495 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9496 /* 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
9497 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9498 char jrKanjiControl();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9499
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9500 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9501 jrKanjiControl()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9502 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9503 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9504 if { (eval echo configure:9505: \"$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
9505 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9506 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9507 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9508 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9509 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9510 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9511 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9512 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9513 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9514 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9515
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9516 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
9517 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9518 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9519 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9520 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9521 with_canna=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9522 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9523
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9524 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9525 test -z "$with_canna" && with_canna=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9526 if test "$with_canna" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9527 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9528 Defining HAVE_CANNA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9529 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9530 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9531 #define HAVE_CANNA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9532 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9533 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9534
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9535 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
9536 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
9537 echo " xemacs will be linked with \"mule-canna.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9538 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9539 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9540
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9541 else for feature in xim canna wnn; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9542 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9543 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9544 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9545 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9546 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9547 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9548
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9549 if test "$need_motif" = "yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9550 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
9551
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9552 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9553 echo "configure:9554: checking for layout_object_getvalue in -li18n" >&5
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9554 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9555
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9556 xe_check_libs=" -li18n "
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9557 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9558 #line 9559 "configure"
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9559 #include "confdefs.h"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9560 /* Override any gcc2 internal prototype to avoid an error. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9561 /* 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
9562 builtin and then its argument prototype would still apply. */
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9563 char layout_object_getvalue();
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9564
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9565 int main() {
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9566 layout_object_getvalue()
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9567 ; return 0; }
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9568 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9569 if { (eval echo configure:9570: \"$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
9570 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9571 eval "ac_cv_lib_$ac_lib_var=yes"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9572 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9573 echo "configure: failed program was:" >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9574 cat conftest.$ac_ext >&5
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9575 rm -rf conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9576 eval "ac_cv_lib_$ac_lib_var=no"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9577 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9578 rm -f conftest*
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9579 xe_check_libs=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9580
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9582 echo "$ac_t""yes" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9583 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
9584 else
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9585 echo "$ac_t""no" 1>&6
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9586 fi
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9587
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
9588
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9589
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9590 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
9591 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
9592 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
9593
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9594 runpath="" runpath_dirs=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9595 if test -n "$LD_RUN_PATH"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9596 runpath="$LD_RUN_PATH"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9597 elif test "$GCC" = "yes"; then
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9598 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9599 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9600 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
9601 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9602 case "$arg" in P,* | -L* | -R* )
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9603 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
9604 {
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9605 xe_runpath_dir="$dir"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9606 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9607 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
9608 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9609 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9610 }
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9611 done ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9612 esac
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9613 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9614 ld_switch_run="$ld_switch_run_save"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9615 rm -f conftest*
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9616 else
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9617 for arg in $ld_switch_site $ld_switch_x_site; do
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9618 case "$arg" in -L*) {
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
9619 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9620 test "$xe_runpath_dir" != "/lib" -a \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9621 "$xe_runpath_dir" != "/usr/lib" -a \
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
9622 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9623 eval "$xe_add_unique_runpath_dir"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9624 };; esac
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9625 done
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9626 if test "$opsys $need_motif" = "sol2 yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9627 xe_runpath_dir="/opt/SUNWdt/lib";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9628 eval "$xe_add_unique_runpath_dir";
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9629 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
9630 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9631 if test -n "$runpath"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9632 ld_switch_run="${dash_r}${runpath}"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9633
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9634 if test "$GCC" = "yes"; then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9635 set x $ld_switch_run; shift; ld_switch_run=""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9636 while test -n "$1"; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9637 case $1 in
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
9638 -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
9639 -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
9640 -Xlinker* ) ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9641 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9642 esac
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9643 shift
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9644 done
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
9645 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9646 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9647 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9648 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9649
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9650 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9651
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9652 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9653 do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9655 echo "configure:9656: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9656
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9657 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9658 #line 9659 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9659 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9660 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9661 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9662 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9663 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9664 /* 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
9665 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9666 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9667
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9668 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9669
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9670 /* The GNU C library defines this for functions which it implements
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9671 to always fail with ENOSYS. Some functions are actually named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9672 something starting with __ and the normal name is an alias. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9674 choke me
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9675 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9676 $ac_func();
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9677 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9678
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9679 ; return 0; }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
9680 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9681 if { (eval echo configure:9682: \"$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
9682 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9683 eval "ac_cv_func_$ac_func=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9684 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9685 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9686 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9687 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9688 eval "ac_cv_func_$ac_func=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9689 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9690 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9691
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9693 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9695 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9696 Defining $ac_tr_func
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9697 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9698 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9699 #define $ac_tr_func 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9700 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9701 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9702
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9703 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9704 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9705 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9706 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9707
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9708
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9709 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9710 echo " xemacs will be linked with \"realpath.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9711 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9712
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9713 for ac_func in getloadavg
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9714 do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9716 echo "configure:9717: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9717
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9718 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9719 #line 9720 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9720 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9721 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9722 which can conflict with char $ac_func(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9723 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9724 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9725 /* 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
9726 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9727 char $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9728
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9729 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9730
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9731 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9732 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9733 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9735 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9736 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9737 $ac_func();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9738 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9739
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9740 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9741 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
365
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9743 rm -rf conftest*
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9744 eval "ac_cv_func_$ac_func=yes"
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9745 else
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9746 echo "configure: failed program was:" >&5
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9747 cat conftest.$ac_ext >&5
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9748 rm -rf conftest*
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9749 eval "ac_cv_func_$ac_func=no"
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9750 fi
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9751 rm -f conftest*
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9752
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9754 echo "$ac_t""yes" 1>&6
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9756 { test "$extra_verbose" = "yes" && cat << EOF
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9757 Defining $ac_tr_func
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9758 EOF
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9759 cat >> confdefs.h <<EOF
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9760 #define $ac_tr_func 1
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9761 EOF
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9762 }
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9763
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9764 else
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9765 echo "$ac_t""no" 1>&6
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9766 fi
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9767 done
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9768
30d2cfa1092a Import from CVS: tag r21-1-12
cvs
parents: 363
diff changeset
9769
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9770 if test "$ac_cv_func_getloadavg" != "yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9771 then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9772 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9773 echo " xemacs will be linked with \"getloadavg.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9774 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9775
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9776
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9777 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9778 echo "configure:9779: checking for kstat_open in -lkstat" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9779 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9780
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9781 xe_check_libs=" -lkstat "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9782 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9783 #line 9784 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9784 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9785 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9786 /* 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
9787 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9788 char kstat_open();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9789
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9790 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9791 kstat_open()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9792 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9793 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9794 if { (eval echo configure:9795: \"$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
9795 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9796 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9797 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9798 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9799 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9800 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9801 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9802 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9803 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9804 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9805
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9806 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
9807 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9808 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
9809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
9810 { test "$extra_verbose" = "yes" && cat << EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9811 Defining $ac_tr_lib
369
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
9812 EOF
1d62742628b6 Import from CVS: tag r21-1-14
cvs
parents: 367
diff changeset
9813 cat >> confdefs.h <<EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9814 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9815 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9816 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9817
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9818 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
9819
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9820 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9821 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9822 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9823
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9824
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9825
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9826
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9827 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9828 echo "configure:9829: checking for kvm_read in -lkvm" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9829 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9830
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9831 xe_check_libs=" -lkvm "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9832 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9833 #line 9834 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9834 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9835 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9836 /* 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
9837 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9838 char kvm_read();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9839
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9840 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9841 kvm_read()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9842 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9843 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9844 if { (eval echo configure:9845: \"$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
9845 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9846 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9847 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9848 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9849 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9850 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9851 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9852 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9853 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9854 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9855
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9856 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
9857 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9858 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
9859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9860 { test "$extra_verbose" = "yes" && cat << EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9861 Defining $ac_tr_lib
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9862 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9863 cat >> confdefs.h <<EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9864 #define $ac_tr_lib 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9865 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9866 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9867
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9868 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
9869
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9870 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9871 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9872 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9873
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9874
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
9875 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
9876
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9877 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9878 echo "configure:9879: checking whether netdb declares h_errno" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9879 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9880 #line 9881 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9881 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9882 #include <netdb.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9883 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9884 return h_errno;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9885 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9886 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9887 if { (eval echo configure:9888: \"$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
9888 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9889 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9890 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9891 Defining HAVE_H_ERRNO
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9892 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9893 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9894 #define HAVE_H_ERRNO 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9895 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9896 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9897
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9898 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9899 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9900 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9901 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9902 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9903 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9904 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9905
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9906 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9907 echo "configure:9908: checking for sigsetjmp" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9908 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9909 #line 9910 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9910 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9911 #include <setjmp.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9912 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9913 sigjmp_buf bar; sigsetjmp (bar, 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9914 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9915 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9916 if { (eval echo configure:9917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9917 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9918 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9919 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9920 Defining HAVE_SIGSETJMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9921 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9922 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9923 #define HAVE_SIGSETJMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9924 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9925 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9926
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9927 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9928 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9929 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9930 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9931 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9932 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9933 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9934
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9935 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9936 echo "configure:9937: checking whether localtime caches TZ" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9937
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9938 if test "$ac_cv_func_tzset" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9939 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9940 #line 9941 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9941 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9942 #include <time.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9943 #if STDC_HEADERS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9944 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9945 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9946 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9947 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9948 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9949 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9950 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9951 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9952 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9953 }
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9954 char TZ_GMT0[] = "TZ=GMT0";
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9955 char TZ_PST8[] = "TZ=PST8";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9956 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9957 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9958 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9959 int hour_GMT0, hour_unset;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9960 if (putenv (TZ_GMT0) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9961 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9962 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9963 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9964 hour_unset = localtime (&now)->tm_hour;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9965 if (putenv (TZ_PST8) != 0)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9966 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9967 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9968 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9969 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9970 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9971 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9972 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9973 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9974 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
9975 if { (eval echo configure:9976: \"$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
9976 then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9977 emacs_cv_localtime_cache=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9978 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
9979 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9980 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9981 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9982 rm -fr conftest*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9983 emacs_cv_localtime_cache=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9984 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9985 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9986 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9987 # If we lack tzset, report that localtime does not cache TZ,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9988 # 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
9989 emacs_cv_localtime_cache=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9990 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9991 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9992 if test $emacs_cv_localtime_cache = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9993 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9994 Defining LOCALTIME_CACHE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9995 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9996 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9997 #define LOCALTIME_CACHE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9998 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
9999 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10000
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10001 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10002
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10003 if test "$HAVE_TIMEVAL" = "yes"; then
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10004 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10005 echo "configure:10006: checking whether gettimeofday accepts one or two arguments" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10006 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10007 #line 10008 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10008 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10009
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10010 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10011 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10012 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10013 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10014 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10015 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10016 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10017 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10018 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10019 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10020
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10021 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10022
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10023 struct timeval time;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10024 gettimeofday (&time, 0);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10025
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10026 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10027 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10028 if { (eval echo configure:10029: \"$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
10029 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10030 echo "$ac_t""two" 1>&6
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10031 else
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10032 echo "configure: failed program was:" >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10033 cat conftest.$ac_ext >&5
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10034 rm -rf conftest*
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
10035 echo "$ac_t""one" 1>&6
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10036 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10037 Defining GETTIMEOFDAY_ONE_ARGUMENT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10038 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10039 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10040 #define GETTIMEOFDAY_ONE_ARGUMENT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10041 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10042 }
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 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10045 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10046 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10047
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10049 echo $ac_n "checking for inline""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10050 echo "configure:10051: checking for inline" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10051
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10052 ac_cv_c_inline=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10053 for ac_kw in inline __inline__ __inline; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10054 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10055 #line 10056 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10056 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10057
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10058 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10059 } $ac_kw foo() {
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10060 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10061 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10062 if { (eval echo configure:10063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10063 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10064 ac_cv_c_inline=$ac_kw; break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10065 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10066 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10067 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10068 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10069 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10070 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10071
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10072
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10073 echo "$ac_t""$ac_cv_c_inline" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10074 case "$ac_cv_c_inline" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10075 inline | yes) ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10076 no) { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10077 Defining inline =
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10078 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10079 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10080 #define inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10081 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10082 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10083 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10084 *) { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10085 Defining inline = $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10086 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10087 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10088 #define inline $ac_cv_c_inline
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10089 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10090 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10091 ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10092 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10093
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10094 if test "$ac_cv_c_inline" != "no"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10095 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10096 Defining HAVE_INLINE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10097 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10098 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10099 #define HAVE_INLINE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10100 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10101 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10102
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10103 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10104 echo " xemacs will be linked with \"inline.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10105 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10106 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10107
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10108
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10110 # for constant arguments. Useless!
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10111 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10112 echo "configure:10113: checking for working alloca.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10113
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10114 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10115 #line 10116 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10116 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10117 #include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10118 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10119 char *p = alloca(2 * sizeof(int));
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10120 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10121 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10122 if { (eval echo configure:10123: \"$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
10123 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10124 ac_cv_header_alloca_h=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10125 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10126 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10127 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10128 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10129 ac_cv_header_alloca_h=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10130 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10131 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10132
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10133 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10134 if test $ac_cv_header_alloca_h = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10135 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10136 Defining HAVE_ALLOCA_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10137 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10138 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10139 #define HAVE_ALLOCA_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10140 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10141 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10142
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10143 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10144
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10145 echo $ac_n "checking for alloca""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10146 echo "configure:10147: checking for alloca" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10147
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10148 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10149 #line 10150 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10150 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10151
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10152 #ifdef __GNUC__
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10153 # define alloca __builtin_alloca
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10154 #else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10155 # ifdef _MSC_VER
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10156 # include <malloc.h>
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10157 # define alloca _alloca
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10158 # else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10159 # if HAVE_ALLOCA_H
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10160 # include <alloca.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10161 # else
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10162 # ifdef _AIX
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10163 #pragma alloca
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10164 # else
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10165 # ifndef alloca /* predefined by HP cc +Olibcalls */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10166 char *alloca ();
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10167 # endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10168 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10169 # endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10170 # endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10171 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10172
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10173 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10174 char *p = (char *) alloca(1);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10175 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10176 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10177 if { (eval echo configure:10178: \"$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
10178 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10179 ac_cv_func_alloca_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10180 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10181 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10182 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10183 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10184 ac_cv_func_alloca_works=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10185 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10186 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10187
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10188 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10189 if test $ac_cv_func_alloca_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10190 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10191 Defining HAVE_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10192 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10193 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10194 #define HAVE_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10195 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10196 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10197
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10198 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10199
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10200 if test $ac_cv_func_alloca_works = no; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10201 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10202 # that cause trouble. Some versions do not even contain alloca or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10203 # contain a buggy version. If you still want to use their alloca,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10204 # use ar to extract alloca.o from them instead of compiling alloca.c.
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10205 ALLOCA=alloca.${ac_objext}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10206 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10207 Defining C_ALLOCA
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10208 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10209 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10210 #define C_ALLOCA 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10211 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10212 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10213
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10214
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10215 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10216 echo "configure:10217: checking whether alloca needs Cray hooks" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10217
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10218 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10219 #line 10220 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10220 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10221 #if defined(CRAY) && ! defined(CRAY2)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10222 webecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10223 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10224 wenotbecray
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10225 #endif
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 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10229 egrep "webecray" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10230 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10231 ac_cv_os_cray=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10232 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10233 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10234 ac_cv_os_cray=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10235 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10236 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10237
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10238
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10239 echo "$ac_t""$ac_cv_os_cray" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10240 if test $ac_cv_os_cray = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10241 for ac_func in _getb67 GETB67 getb67; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10243 echo "configure:10244: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10244
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10245 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10246 #line 10247 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10247 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10248 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10249 which can conflict with char $ac_func(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10250 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10251 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10252 /* 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
10253 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10254 char $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10255
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10256 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10257
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10258 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10259 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10260 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10262 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10263 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10264 $ac_func();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10265 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10266
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10267 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10268 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10269 if { (eval echo configure:10270: \"$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
10270 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10271 eval "ac_cv_func_$ac_func=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10272 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10273 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10274 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10275 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10276 eval "ac_cv_func_$ac_func=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10277 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10278 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10279
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10281 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10282 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10283 Defining CRAY_STACKSEG_END = $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10284 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10285 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10286 #define CRAY_STACKSEG_END $ac_func
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10287 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10288 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10289
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10290 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10291 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10292 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10293 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10294
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10295 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10296 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10297
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10298 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10299 echo "configure:10300: checking stack direction for C alloca" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10300
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10301 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10302 #line 10303 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10303 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10304 find_stack_direction ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10305 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10306 static char *addr = 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10307 auto char dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10308 if (addr == 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10309 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10310 addr = &dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10311 return find_stack_direction ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10312 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10313 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10314 return (&dummy > addr) ? 1 : -1;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10315 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10316 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10317 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10318 exit (find_stack_direction() < 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10319 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10320 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10321 if { (eval echo configure:10322: \"$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
10322 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10323 ac_cv_c_stack_direction=1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10324 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10325 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10326 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10327 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10328 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10329 ac_cv_c_stack_direction=-1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10330 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10331 rm -fr conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10332
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10333 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10334 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10335 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10336 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10337 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10338 #define STACK_DIRECTION $ac_cv_c_stack_direction
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10339 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10340 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10341
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10342 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10343
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10344 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10345 echo " xemacs will be linked with \"$ALLOCA\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
10346 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10347
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10348 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10349 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10350 echo "configure:10351: checking for vfork.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10351
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10352 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10353 #line 10354 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10354 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10355 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10356 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10358 { (eval echo configure:10359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10360 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10361 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10362 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10363 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10364 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10365 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10366 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10367 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10368 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10369 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10370 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10372 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10373 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10374 Defining HAVE_VFORK_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10375 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10376 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10377 #define HAVE_VFORK_H 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10378 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10379 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10380
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10381 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10382 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10383 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10384
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10385 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10386 echo "configure:10387: checking for working vfork" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10387
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10388 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10389 #line 10390 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10390 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10391 /* Thanks to Paul Eggert for this test. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10392 #include <stdio.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10393 #include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10394 #include <sys/stat.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10395 #ifdef HAVE_UNISTD_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10396 #include <unistd.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10397 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10398 #ifdef HAVE_VFORK_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10399 #include <vfork.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10400 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10401 /* On some sparc systems, changes by the child to local and incoming
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10402 argument registers are propagated back to the parent.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10403 The compiler is told about this with #include <vfork.h>,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10404 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10405 Test for this by using a static variable whose address
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10406 is put into a register that is clobbered by the vfork. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10407 static
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10408 #ifdef __cplusplus
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10409 sparc_address_test (int arg)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10410 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10411 sparc_address_test (arg) int arg;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10412 #endif
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10413 {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10414 static pid_t child;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10415 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10416 child = vfork ();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10417 if (child < 0) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10418 perror ("vfork");
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10419 _exit(2);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10420 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10421 if (!child) {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10422 arg = getpid();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10423 write(-1, "", 0);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10424 _exit (arg);
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10425 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10426 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10427 }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10428 main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10429 pid_t parent = getpid ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10430 pid_t child;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10431
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10432 sparc_address_test ();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10434 child = vfork ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10435
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10436 if (child == 0) {
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10437 /* Here is another test for sparc vfork register problems.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10438 This test uses lots of local variables, at least
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10439 as many local variables as main has allocated so far
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10440 including compiler temporaries. 4 locals are enough for
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10441 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
10442 A buggy compiler should reuse the register of parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10443 for one of the local variables, since it will think that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10444 parent can't possibly be used any more in this routine.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10445 Assigning to the local variable will thus munge parent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10446 in the parent process. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10447 pid_t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10448 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10449 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10450 /* Convince the compiler that p..p7 are live; otherwise, it might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10451 use the same hardware register for all 8 local variables. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10452 if (p != p1 || p != p2 || p != p3 || p != p4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10453 || p != p5 || p != p6 || p != p7)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10454 _exit(1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10455
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10456 /* On some systems (e.g. IRIX 3.3),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10457 vfork doesn't separate parent from child file descriptors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10458 If the child closes a descriptor before it execs or exits,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10459 this munges the parent's descriptor as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10460 Test for this by closing stdout in the child. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10461 _exit(close(fileno(stdout)) != 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10462 } else {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10463 int status;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10464 struct stat st;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10466 while (wait(&status) != child)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10467 ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10468 exit(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10469 /* Was there some problem with vforking? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10470 child < 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10471
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10472 /* Did the child fail? (This shouldn't happen.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10473 || status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10474
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10475 /* Did the vfork/compiler bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10476 || parent != getpid()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10478 /* Did the file descriptor bug occur? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10479 || fstat(fileno(stdout), &st) != 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10480 );
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10481 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10482 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10483 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10484 if { (eval echo configure:10485: \"$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
10485 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10486 ac_cv_func_vfork_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10487 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10488 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10489 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10490 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10491 rm -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10492 ac_cv_func_vfork_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10493 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10494 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10495
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10496 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10497 if test $ac_cv_func_vfork_works = no; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10498 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10499 Defining vfork = fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10500 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10501 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10502 #define vfork fork
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10503 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10504 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10505
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10506 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10507
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10508
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10509 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10510 echo "configure:10511: checking for working strcoll" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10511
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10512 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10513 #line 10514 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10514 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10515 #include <string.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10516 main ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10517 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10518 exit (strcoll ("abc", "def") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10519 strcoll ("ABC", "DEF") >= 0 ||
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10520 strcoll ("123", "456") >= 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10521 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10522 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10523 if { (eval echo configure:10524: \"$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
10524 then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10525 ac_cv_func_strcoll_works=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10526 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10527 conftest_rc="$?"
149
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 -fr conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10531 ac_cv_func_strcoll_works=no
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10532 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10533 rm -fr conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10534
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10535 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10536 if test $ac_cv_func_strcoll_works = yes; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10537 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10538 Defining HAVE_STRCOLL
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10539 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10540 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10541 #define HAVE_STRCOLL 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10542 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10543 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10544
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10545 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10546
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10547
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10548 for ac_func in getpgrp
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10549 do
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10551 echo "configure:10552: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10552
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10553 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10554 #line 10555 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10555 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10556 /* System header to define __stub macros and hopefully few prototypes,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10557 which can conflict with char $ac_func(); below. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10558 #include <assert.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10559 /* Override any gcc2 internal prototype to avoid an error. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10560 /* 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
10561 builtin and then its argument prototype would still apply. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10562 char $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10563
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10564 int main() {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10565
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10566 /* The GNU C library defines this for functions which it implements
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10567 to always fail with ENOSYS. Some functions are actually named
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10568 something starting with __ and the normal name is an alias. */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10570 choke me
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10571 #else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10572 $ac_func();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10573 #endif
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10574
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10575 ; return 0; }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10576 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10577 if { (eval echo configure:10578: \"$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
10578 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10579 eval "ac_cv_func_$ac_func=yes"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10580 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10581 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10582 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10583 rm -rf conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10584 eval "ac_cv_func_$ac_func=no"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10585 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10586 rm -f conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10587
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10589 echo "$ac_t""yes" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10591 { test "$extra_verbose" = "yes" && cat << EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10592 Defining $ac_tr_func
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10593 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10594 cat >> confdefs.h <<EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10595 #define $ac_tr_func 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10596 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10597 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10598
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10599 else
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10600 echo "$ac_t""no" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10601 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10602 done
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10603
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10604 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10605 echo "configure:10606: checking whether getpgrp takes no argument" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10606
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10607 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10608 #line 10609 "configure"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10609 #include "confdefs.h"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10610
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10611 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10612 * If this system has a BSD-style getpgrp(),
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10613 * which takes a pid argument, exit unsuccessfully.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10614 *
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10615 * Snarfed from Chet Ramey's bash pgrp.c test program
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10616 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10617 #include <stdio.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10618 #include <sys/types.h>
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10619
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10620 int pid;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10621 int pg1, pg2, pg3, pg4;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10622 int ng, np, s, child;
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10623
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10624 main()
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10625 {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10626 pid = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10627 pg1 = getpgrp(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10628 pg2 = getpgrp();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10629 pg3 = getpgrp(pid);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10630 pg4 = getpgrp(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10631
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10632 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10633 * 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
10634 * we're on a system that ignores getpgrp's first argument.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10635 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10636 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10637 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10638
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10639 child = fork();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10640 if (child < 0)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10641 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10642 else if (child == 0) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10643 np = getpid();
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10644 /*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10645 * If this is Sys V, this will not work; pgrp will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10646 * set to np because setpgrp just changes a pgrp to be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10647 * the same as the pid.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10648 */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10649 setpgrp(np, pg1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10650 ng = getpgrp(0); /* Same result for Sys V and BSD */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10651 if (ng == pg1) {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10652 exit(1);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10653 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10654 exit(0);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10655 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10656 } else {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10657 wait(&s);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10658 exit(s>>8);
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10659 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10660 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10661
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10662 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10663 if { (eval echo configure:10664: \"$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
10664 then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10665 ac_cv_func_getpgrp_void=yes
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10666 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10667 conftest_rc="$?"
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10668 echo "configure: failed program was:" >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10669 cat conftest.$ac_ext >&5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10670 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10671 ac_cv_func_getpgrp_void=no
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10672 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10673 rm -fr conftest*
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10674
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10675
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10676 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10677 if test $ac_cv_func_getpgrp_void = yes; then
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10678 { test "$extra_verbose" = "yes" && cat << \EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10679 Defining GETPGRP_VOID
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10680 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10681 cat >> confdefs.h <<\EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10682 #define GETPGRP_VOID 1
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10683 EOF
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10684 }
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10685
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10686 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10687
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10688
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10689 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10690 echo "configure:10691: checking for working mmap" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10691 case "$opsys" in ultrix* ) have_mmap=no ;; *)
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10692 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10693 #line 10694 "configure"
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10694 #include "confdefs.h"
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10695 #include <stdio.h>
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10696 #include <unistd.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10697 #include <fcntl.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10698 #include <sys/mman.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10699
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10700 #ifndef MAP_VARIABLE
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10701 #define MAP_VARIABLE 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10702 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10703
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10704 #ifndef MAP_FAILED
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10705 #define MAP_FAILED -1
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10706 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10707
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10708 int main (int argc, char *argv[])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10709 {
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10710 int fd = -1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10711 caddr_t p;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10712 #ifndef MAP_ANONYMOUS
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10713 fd = open ("/dev/zero", O_RDWR);
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10714 if (fd < 0)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10715 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10716 #define MAP_ANONYMOUS 0
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10717 #endif
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10718 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10719 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10720 fd, 0) != (void *) MAP_FAILED)
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10721 return 0;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10722 perror ("conftest: mmap failed");
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10723 return 1;
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10724 }
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10725 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10726 if { (eval echo configure:10727: \"$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
10727 then
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10728 have_mmap=yes
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10729 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
10730 conftest_rc="$?"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10731 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10732 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10733 rm -fr conftest*
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10734 have_mmap=no
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10735 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10736 rm -fr conftest* ;;
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
10737 esac
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10738 echo "$ac_t""$have_mmap" 1>&6
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
10739 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10740 Defining HAVE_MMAP
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_MMAP 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
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10747
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10748 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10749 if test "$rel_alloc $have_mmap" = "default yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10750 if test "$doug_lea_malloc" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10751 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10752 echo "configure:10753: checking for M_MMAP_THRESHOLD" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10753 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10754 #line 10755 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10755 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10756 #include <malloc.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10757 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10758
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10759 #ifndef M_MMAP_THRESHOLD
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10760 #error No M_MMAP_THRESHOLD :-(
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10761 !@+$%^&*_)(_ - unlikely to compile...
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10762 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10763
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10764 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10765 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10766 if { (eval echo configure:10767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10767 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10768 rel_alloc=no; echo "$ac_t""yes" 1>&6;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10769 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10770 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10771 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10772 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10773 rel_alloc=yes; echo "$ac_t""no" 1>&6;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10774 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10775 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10776 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10777 rel_alloc=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10778 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
10779 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10780 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10781 Defining REL_ALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10782 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10783 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10784 #define REL_ALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10785 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10786 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10788
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10789 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10790 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10791 echo "configure:10792: checking for termios.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10792
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10793 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10794 #line 10795 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10795 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10796 #include <termios.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10797 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10799 { (eval echo configure:10800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10801 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10802 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10803 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10804 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10805 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10806 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10807 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10808 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10809 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10810 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10811 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10813 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10814 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10815 Defining HAVE_TERMIOS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10816 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10817 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10818 #define HAVE_TERMIOS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10819 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10820 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10821
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10822 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10823 Defining SIGNALS_VIA_CHARACTERS
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10824 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10825 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10826 #define SIGNALS_VIA_CHARACTERS 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10827 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10828 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10829
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10830 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10831 Defining NO_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10832 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10833 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10834 #define NO_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10835 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10836 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10837
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10838 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10839 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10840 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10841 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10842 echo "configure:10843: checking for termio.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10843
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10844 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10845 #line 10846 "configure"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10846 #include "confdefs.h"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10847 #include <termio.h>
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10848 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10852 if test -z "$ac_err"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10853 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10854 eval "ac_cv_header_$ac_safe=yes"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10855 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10856 echo "$ac_err" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10857 echo "configure: failed program was:" >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10858 cat conftest.$ac_ext >&5
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10859 rm -rf conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10860 eval "ac_cv_header_$ac_safe=no"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10861 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10862 rm -f conftest*
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10864 echo "$ac_t""yes" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10865 { test "$extra_verbose" = "yes" && cat << \EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10866 Defining HAVE_TERMIO
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10867 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10868 cat >> confdefs.h <<\EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10869 #define HAVE_TERMIO 1
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10870 EOF
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10871 }
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10872
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10873 else
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10874 echo "$ac_t""no" 1>&6
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10875 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10876
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10877 fi
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10878
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10879
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
10880
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10881 echo $ac_n "checking for socket""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10882 echo "configure:10883: checking for socket" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10883
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10884 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10885 #line 10886 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10886 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10887 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10888 which can conflict with char socket(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10889 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10890 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10891 /* 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
10892 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10893 char socket();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10894
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10895 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10896
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10897 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10898 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10899 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10900 #if defined (__stub_socket) || defined (__stub___socket)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10901 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10902 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10903 socket();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10904 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10905
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10906 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10907 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10908 if { (eval echo configure:10909: \"$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
10909 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10910 eval "ac_cv_func_socket=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10911 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10912 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10913 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10914 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10915 eval "ac_cv_func_socket=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10916 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10917 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10918
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10919 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10920 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10921 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10922 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10923 echo "configure:10924: checking for netinet/in.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10924
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10925 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10926 #line 10927 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10927 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10928 #include <netinet/in.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10929 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10931 { (eval echo configure:10932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10933 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10934 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10935 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10936 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10937 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10938 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10939 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10940 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10941 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10942 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10943 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10945 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10946 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10947 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10948 echo "configure:10949: checking for arpa/inet.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10949
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10950 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10951 #line 10952 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10952 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10953 #include <arpa/inet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10954 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10958 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10959 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10960 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10961 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10962 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10963 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10964 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10965 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10966 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10967 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10968 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10970 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10971
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10972 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10973 Defining HAVE_SOCKETS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10974 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10975 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10976 #define HAVE_SOCKETS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10977 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10978 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10979
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10980 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10981 echo "configure:10982: checking "for sun_len member in struct sockaddr_un"" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10982 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10983 #line 10984 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10984 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10985
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10986 #include <sys/types.h>
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10987 #include <sys/socket.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10988 #include <sys/un.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10989
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10990 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10991 static struct sockaddr_un x; x.sun_len = 1;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10992 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10993 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
10994 if { (eval echo configure:10995: \"$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
10995 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10996 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10997 Defining HAVE_SOCKADDR_SUN_LEN
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10998 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
10999 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11000 #define HAVE_SOCKADDR_SUN_LEN 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11001 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11002 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11003
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11004 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11005 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11006 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11007 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11008 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11009 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11010 rm -f conftest*
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11011 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11012 echo "configure:11013: checking "for ip_mreq struct in netinet/in.h"" >&5
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11013 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11014 #line 11015 "configure"
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11015 #include "confdefs.h"
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11016
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 282
diff changeset
11017 #include <sys/types.h>
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11018 #include <netinet/in.h>
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11019
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11020 int main() {
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11021 static struct ip_mreq x;
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11022 ; return 0; }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11023 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11024 if { (eval echo configure:11025: \"$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
11025 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11026 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11027 Defining HAVE_MULTICAST
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11028 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11029 cat >> confdefs.h <<\EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11030 #define HAVE_MULTICAST 1
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11031 EOF
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11032 }
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11033
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11034 else
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11035 echo "configure: failed program was:" >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11036 cat conftest.$ac_ext >&5
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11037 rm -rf conftest*
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11038 echo "$ac_t""no" 1>&6
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11039 fi
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
11040 rm -f conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11041 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11042 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11043 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11044
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11045 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11046 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11047 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11048
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11049 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11050 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11051 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11052
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11053
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11054 echo $ac_n "checking for msgget""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11055 echo "configure:11056: checking for msgget" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11056
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11057 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11058 #line 11059 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11059 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11060 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11061 which can conflict with char msgget(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11062 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11063 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11064 /* 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
11065 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11066 char msgget();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11067
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11068 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11069
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11070 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11071 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11072 something starting with __ and the normal name is an alias. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11073 #if defined (__stub_msgget) || defined (__stub___msgget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11074 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11075 #else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11076 msgget();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11077 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11078
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11079 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11080 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11081 if { (eval echo configure:11082: \"$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
11082 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11083 eval "ac_cv_func_msgget=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11084 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11085 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11086 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11087 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11088 eval "ac_cv_func_msgget=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11089 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11090 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11091
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11092 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11093 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11094 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11095 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11096 echo "configure:11097: checking for sys/ipc.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11097
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11098 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11099 #line 11100 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11100 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11101 #include <sys/ipc.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11102 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11106 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11107 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11108 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11109 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11110 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11111 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11112 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11113 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11114 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11115 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11116 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11118 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11119 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11120 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11121 echo "configure:11122: checking for sys/msg.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11122
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11123 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11124 #line 11125 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11125 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11126 #include <sys/msg.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11127 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11131 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11132 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11133 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11134 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11135 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11136 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11137 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11138 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11139 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11140 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11141 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11143 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11144 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11145 Defining HAVE_SYSVIPC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11146 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11147 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11148 #define HAVE_SYSVIPC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11149 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11150 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11151
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11152 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11153 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11154 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11155
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11156 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11157 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11158 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11159
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11160 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11161 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11162 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11163
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11164
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11165 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11166 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11167 echo "configure:11168: checking for dirent.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11168
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11169 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11170 #line 11171 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11171 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11172 #include <dirent.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11173 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11175 { (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11177 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11178 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11179 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11180 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11181 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11182 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11183 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11184 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11185 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11186 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11187 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11189 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11190 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11191 Defining SYSV_SYSTEM_DIR
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11192 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11193 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11194 #define SYSV_SYSTEM_DIR 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11195 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11196 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11197
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11198 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11199 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11200 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11201 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11202 echo "configure:11203: checking for sys/dir.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11203
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11204 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11205 #line 11206 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11206 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11207 #include <sys/dir.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11208 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11212 if test -z "$ac_err"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11213 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11214 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11215 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11216 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11217 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11218 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11219 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11220 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11221 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11222 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11224 echo "$ac_t""yes" 1>&6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11225 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11226 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11227 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11228 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11229 Defining NONSYSTEM_DIR_LIBRARY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11230 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11231 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11232 #define NONSYSTEM_DIR_LIBRARY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11233 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11234 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11235
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11236 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11237
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11238 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11239
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11240
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11241 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11242 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11243 echo "configure:11244: checking for nlist.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11244
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11245 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11246 #line 11247 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11247 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11248 #include <nlist.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11249 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11251 { (eval echo configure:11252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11253 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11254 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11255 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11256 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11257 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11258 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11259 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11260 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11261 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11262 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11263 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11265 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11266 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11267 Defining NLIST_STRUCT
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11268 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11269 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11270 #define NLIST_STRUCT 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11271 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11272 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11273
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11274 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11275 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11276 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11277
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11278
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11279
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11280 echo "checking "for sound support"" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11281 echo "configure:11282: checking "for sound support"" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11282 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
11283
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11284 if test "$with_native_sound" != "no"; then
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11285 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11286 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11287 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11288 echo "configure:11289: checking for multimedia/audio_device.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11289
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11290 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11291 #line 11292 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11292 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11293 #include <multimedia/audio_device.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11294 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11296 { (eval echo configure:11297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11298 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11299 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11300 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11301 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11302 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11303 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11304 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11305 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11306 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11307 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11308 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11310 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11311 sound_found=yes sound_cflags=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11312 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11313 echo " xemacs will be linked with \"sunplay.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11314 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11315 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11316 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11317 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11318
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11319 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11320
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11321 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11322 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11323 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11324 echo " xemacs will be linked with \"sunplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11325 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11326 if test -d "/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11327 then sound_cflags="-I/usr/demo/SOUND/include"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11328 else sound_cflags="-I/usr/demo/SOUND"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11329 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11330 if test -z "$native_sound_lib" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11331 if test -r "/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11332 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11333 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11334 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11335 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11336 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11337
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11338 if test -z "$sound_found"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11339 case "$canonical" in
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11340 *-sgi-* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11341 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11342
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11343 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11344 echo "configure:11345: checking for ALopenport in -laudio" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11345 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11346
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11347 xe_check_libs=" -laudio "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11348 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11349 #line 11350 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11350 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11351 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11352 /* 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
11353 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11354 char ALopenport();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11355
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11356 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11357 ALopenport()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11358 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11359 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11360 if { (eval echo configure:11361: \"$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
11361 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11362 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11363 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11364 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11365 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11366 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11367 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11368 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11369 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11370 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11371
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11372 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
11373 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11374 native_sound_lib="-laudio"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11375 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11376 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11377 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11378
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11379
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11380 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11381 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11382 sound_found=yes sound_cflags=""
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11383 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11384 echo " xemacs will be linked with \"sgiplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11385 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11386 fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11387 hppa*-hp-hpux* )
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11388 if test -z "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11389
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11390 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11391 echo "configure:11392: checking for AOpenAudio in -lAlib" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11392 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11393
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11394 xe_check_libs=" -lAlib "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11395 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11396 #line 11397 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11397 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11398 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11399 /* 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
11400 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11401 char AOpenAudio();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11402
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11403 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11404 AOpenAudio()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11405 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11406 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11407 if { (eval echo configure:11408: \"$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
11408 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11409 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11410 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11411 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11412 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11413 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11414 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11415 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11416 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11417 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11418
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11419 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
11420 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11421 native_sound_lib="-lAlib"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11422 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11423 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11424 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11425
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11426
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11427 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11428 if test -n "$native_sound_lib"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11429 sound_found=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11430 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11431 echo " xemacs will be linked with \"hpplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11432 fi
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
11433 if test "$GCC" = "yes" # Kludge city
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11434 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11435 else sound_cflags="+e -I/usr/audio/examples"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11436 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11437 fi ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11438 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11439 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11440
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
11441 if test -z "$sound_found"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11442 for dir in "machine" "sys" "linux"; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11443 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11444 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11445 echo "configure:11446: checking for ${dir}/soundcard.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11446
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11447 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11448 #line 11449 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11449 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11450 #include <${dir}/soundcard.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11451 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11453 { (eval echo configure:11454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11455 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11456 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11457 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11458 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11459 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11460 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11461 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11462 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11463 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11464 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11465 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11467 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11468 sound_found=yes
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11469 need_miscplay=yes
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11470 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11471 echo " xemacs will be linked with \"linuxplay.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11472 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11473 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11474 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11475 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11476 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11477 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11478 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11479 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11480
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11481 break
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11482 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11483 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11484 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11485
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11486 done
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
11487 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11488
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11489 test "$sound_found" = "yes" && with_native_sound=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11490 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11491
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11492 if test "$with_native_sound" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11493 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11494 Defining HAVE_NATIVE_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11495 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11496 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11497 #define HAVE_NATIVE_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11498 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11499 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11500
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11501 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
11502 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11503
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11504 if test "$with_nas_sound" != "no"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11505 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11506 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11507 echo "configure:11508: checking for audio/audiolib.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11508
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11509 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11510 #line 11511 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11511 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11512 #include <audio/audiolib.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11513 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11517 if test -z "$ac_err"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11518 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11519 eval "ac_cv_header_$ac_safe=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11520 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11521 echo "$ac_err" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11522 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11523 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11524 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11525 eval "ac_cv_header_$ac_safe=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11526 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11527 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11529 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11530
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 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11533 echo "configure:11534: checking for AuOpenServer in -laudio" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11534 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11535
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11536 xe_check_libs=" -laudio "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11537 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11538 #line 11539 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11539 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11540 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11541 /* 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
11542 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11543 char AuOpenServer();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11544
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11545 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11546 AuOpenServer()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11547 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11548 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11549 if { (eval echo configure:11550: \"$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
11550 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11551 eval "ac_cv_lib_$ac_lib_var=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11552 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11553 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11554 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11555 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11556 eval "ac_cv_lib_$ac_lib_var=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11557 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11558 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11559 xe_check_libs=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11560
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11561 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
11562 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11563 have_nas_sound=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11564 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11565 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11566 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11567
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11568
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11569 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11570 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11571 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11572
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11573 if test "$have_nas_sound" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11574 with_nas_sound=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11575 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11576 Defining HAVE_NAS_SOUND
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11577 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11578 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11579 #define HAVE_NAS_SOUND 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11580 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11581 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11582
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11583 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
11584 echo " xemacs will be linked with \"nas.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11585 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11586 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11587 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11588 #line 11589 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11589 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11590 #include <audio/Xtutil.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11591 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11593 egrep "AuXtErrorJump" >/dev/null 2>&1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11594 :
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11595 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11596 rm -rf conftest*
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11597 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11598 Defining NAS_NO_ERROR_JUMP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11599 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11600 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11601 #define NAS_NO_ERROR_JUMP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11602 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11603 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11604
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11605 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11606 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11607
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11608 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11609 test "$with_nas_sound" = "yes" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11610 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11611 with_nas_sound=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11612 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11613 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11614
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11615 if test "$with_esd_sound" != "no"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11616 # Extract the first word of "esd-config", so it can be a program name with args.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11617 set dummy esd-config; ac_word=$2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11619 echo "configure:11620: checking for $ac_word" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11620
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11621 if test -n "$have_esd_config"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11622 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11623 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11625 ac_dummy="$PATH"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11626 for ac_dir in $ac_dummy; do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11627 test -z "$ac_dir" && ac_dir=.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11628 if test -f $ac_dir/$ac_word; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11629 ac_cv_prog_have_esd_config="yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11630 break
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11631 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11632 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11633 IFS="$ac_save_ifs"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11634 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11635 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11636 have_esd_config="$ac_cv_prog_have_esd_config"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11637 if test -n "$have_esd_config"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11638 echo "$ac_t""$have_esd_config" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11639 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11640 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11641 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11642
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11643 if test "$have_esd_config" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11644 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11645 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
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11646 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11647 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11648 echo "configure:11649: checking for esd_play_stream" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11649
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11650 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11651 #line 11652 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11652 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11653 /* System header to define __stub macros and hopefully few prototypes,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11654 which can conflict with char esd_play_stream(); below. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11655 #include <assert.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11656 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11657 /* 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
11658 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11659 char esd_play_stream();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11660
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11661 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11662
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11663 /* The GNU C library defines this for functions which it implements
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11664 to always fail with ENOSYS. Some functions are actually named
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11665 something starting with __ and the normal name is an alias. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11666 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11667 choke me
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11668 #else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11669 esd_play_stream();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11670 #endif
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11671
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11672 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11673 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11674 if { (eval echo configure:11675: \"$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
11675 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11676 eval "ac_cv_func_esd_play_stream=yes"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11677 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11678 echo "configure: failed program was:" >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11679 cat conftest.$ac_ext >&5
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11680 rm -rf conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11681 eval "ac_cv_func_esd_play_stream=no"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11682 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11683 rm -f conftest*
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11684
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11685 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11686 echo "$ac_t""yes" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11687 have_esd_sound=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11688 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11689 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11690 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11691 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11692
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11693 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11694
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11695 if test "$have_esd_sound" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11696 with_esd_sound=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11697 need_miscplay=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11698 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11699 echo " xemacs will be linked with \"esd.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11700 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11701 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11702 Defining HAVE_ESD_SOUND
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11703 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11704 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11705 #define HAVE_ESD_SOUND 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11706 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11707 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11708
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11709 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11710 test "$with_esd_sound" = "yes" && \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11711 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11712 with_esd_sound=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11713 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11714 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11715
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11716 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11717 echo " xemacs will be linked with \"miscplay.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
11718 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11719
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11720
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11721 test -z "$with_tty" && with_tty=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11722
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11723 if test "$with_tty" = "yes" ; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11724 echo "checking for TTY-related features" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11725 echo "configure:11726: checking for TTY-related features" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11726 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11727 Defining HAVE_TTY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11728 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11729 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11730 #define HAVE_TTY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11731 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11732 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11733
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11734 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
11735 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
11736 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11737
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11738 if test -z "$with_ncurses"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
11739
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11740 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11741 echo "configure:11742: checking for tgetent in -lncurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11742 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11743
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11744 xe_check_libs=" -lncurses "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11745 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11746 #line 11747 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11747 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11748 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11749 /* 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
11750 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11751 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11752
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11753 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11754 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11755 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11756 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11757 if { (eval echo configure:11758: \"$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
11758 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11759 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11760 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11761 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11762 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11763 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11764 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11765 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11766 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11767 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11768
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11769 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
11770 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11771 with_ncurses=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11772 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11773 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11774 with_ncurses=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11775 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11776
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11777
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11778 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11779 if test "$with_ncurses" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11780 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11781 Defining HAVE_NCURSES
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11782 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11783 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11784 #define HAVE_NCURSES 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11785 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11786 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11788 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11789 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11790 echo "configure:11791: checking for ncurses/curses.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11791
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11792 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11793 #line 11794 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11794 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11795 #include <ncurses/curses.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11796 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11798 { (eval echo configure:11799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11800 if test -z "$ac_err"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11801 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11802 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11803 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11804 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11805 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11806 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11807 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11808 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11809 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11810 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11812 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11813 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11814 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11815 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11816 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11817
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11818 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11819 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11820 echo "configure:11821: checking for ncurses/term.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11821
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11822 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11823 #line 11824 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11824 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11825 #include <ncurses/term.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11826 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11828 { (eval echo configure:11829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11830 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11831 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11832 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11833 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11834 echo "$ac_err" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11835 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11836 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11837 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11838 eval "ac_cv_header_$ac_safe=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11839 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11840 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11842 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11843 term_h_path=ncurses/term.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11844 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11845 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11846 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11847
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11848 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11849 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11850 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11851 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
11852
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
11853 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11854 save_c_switch_site="$c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11855 c_switch_site="$c_switch_site -I/usr/include/ncurses"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11856 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11857 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11858 echo "configure:11859: checking for ncurses/curses.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11859
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11860 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11861 #line 11862 "configure"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11862 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11863 #include <ncurses/curses.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11864 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11866 { (eval echo configure:11867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
11867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11868 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11869 rm -rf conftest*
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11870 eval "ac_cv_header_$ac_safe=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11871 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11872 echo "$ac_err" >&5
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 eval "ac_cv_header_$ac_safe=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 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11880 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11881 curses_h_path=ncurses/curses.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11882 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11883 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11884 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11885
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
11886 if test "$ac_cv_header_ncurses_curses_h" = "yes"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11887 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11888 else c_switch_site="$save_c_switch_site"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11889 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11890 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11891 else if test "$have_terminfo" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11892 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11893 echo " xemacs will be linked with \"terminfo.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11894 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11895 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11896 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
11897 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11898 for lib in curses termlib termcap; do
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11899
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11900 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11901 echo "configure:11902: checking for tgetent in -l$lib" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11902 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11903
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11904 xe_check_libs=" -l$lib "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11905 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11906 #line 11907 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11907 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11908 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11909 /* 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
11910 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11911 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11912
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11913 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11914 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11915 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11916 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11917 if { (eval echo configure:11918: \"$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
11918 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11919 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11920 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11921 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11922 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11923 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11924 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11925 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11926 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11927 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11928
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11930 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11931 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
11932 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11933 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11934 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11935
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11936
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11937 done
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11938 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11939 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
11940 echo " xemacs will be linked with \"tparam.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11941 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11942 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11943 if test -n "$libs_termcap"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11944 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
11945 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11946
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11947 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11948 echo "configure:11949: checking for tgetent in -lcurses" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11949 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11950
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11951 xe_check_libs=" -lcurses "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11952 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11953 #line 11954 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11954 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11955 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11956 /* 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
11957 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11958 char tgetent();
149
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 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11961 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11962 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11963 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11964 if { (eval echo configure:11965: \"$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
11965 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11966 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11967 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11968 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11969 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11970 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11971 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11972 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11973 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11974 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11975
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11977 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11978 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
11979 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11980 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11981 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11982 echo "configure:11983: checking for tgetent in -ltermcap" >&5
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11983 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11984
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11985 xe_check_libs=" -ltermcap "
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11986 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11987 #line 11988 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11988 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11989 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11990 /* 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
11991 builtin and then its argument prototype would still apply. */
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11992 char tgetent();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11993
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11994 int main() {
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
11995 tgetent()
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11996 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
11997 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
11998 if { (eval echo configure:11999: \"$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
11999 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12000 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12001 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12002 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12003 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12004 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12005 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12006 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12007 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12008 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12009
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12011 echo "$ac_t""yes" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12012 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
12013 else
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12014 echo "$ac_t""no" 1>&6
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12015 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12016 echo " xemacs will be linked with \"termcap.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12017 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12018 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12019
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12020
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12021 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12022
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12023
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12024 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12025 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12026 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12027 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12028 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12029 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12030 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12031 #define CURSES_H_PATH "${curses_h_path-curses.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12032 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12033 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12034
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12035 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12036 Defining TERM_H_PATH = "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12037 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12038 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12039 #define TERM_H_PATH "${term_h_path-term.h}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12040 EOF
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
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12043
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12044 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12045 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12046 echo "configure:12047: checking for gpm.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12047
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12048 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12049 #line 12050 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12050 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12051 #include <gpm.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12052 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12054 { (eval echo configure:12055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
12055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12056 if test -z "$ac_err"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12057 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12058 eval "ac_cv_header_$ac_safe=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12059 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12060 echo "$ac_err" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12061 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12062 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12063 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12064 eval "ac_cv_header_$ac_safe=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12065 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12066 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12068 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12069 :
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12070 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12071 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12072 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12073 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12074 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12075 test -z "$with_gpm" && {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12076 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12077 echo "configure:12078: checking for Gpm_Open in -lgpm" >&5
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12078 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12079
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12080 xe_check_libs=" -lgpm "
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12081 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12082 #line 12083 "configure"
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12083 #include "confdefs.h"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12084 /* Override any gcc2 internal prototype to avoid an error. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12085 /* 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
12086 builtin and then its argument prototype would still apply. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12087 char Gpm_Open();
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12088
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12089 int main() {
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12090 Gpm_Open()
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12091 ; return 0; }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12092 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12093 if { (eval echo configure:12094: \"$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
12094 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12095 eval "ac_cv_lib_$ac_lib_var=yes"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12096 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12097 echo "configure: failed program was:" >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12098 cat conftest.$ac_ext >&5
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12099 rm -rf conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12100 eval "ac_cv_lib_$ac_lib_var=no"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12101 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12102 rm -f conftest*
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12103 xe_check_libs=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12104
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12106 echo "$ac_t""yes" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12107 with_gpm=yes
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12108 else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12109 echo "$ac_t""no" 1>&6
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12110 with_gpm=no
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12111 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12112
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12113 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12114 if test "$with_gpm" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12115 { test "$extra_verbose" = "yes" && cat << \EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12116 Defining HAVE_GPM
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12117 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12118 cat >> confdefs.h <<\EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12119 #define HAVE_GPM 1
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12120 EOF
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12121 }
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12122
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12123 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12124 echo " xemacs will be linked with \"gpmevent.o\""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12125 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12126 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
12127 fi
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
12128
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12129 else for feature in ncurses gpm; do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12130 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12131 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12132 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12133 eval "with_${feature}=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12134 done
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12135 fi
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12136 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
12137 echo " xemacs will be linked with \"event-unixoid.o\""
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12138 fi
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12139
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12140
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12141 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12142 != "no no no" && echo "checking for database support" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12143 echo "configure:12144: checking for database support" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12144
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12145 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
12146 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12147 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12148 echo "configure:12149: checking for ndbm.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12149
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12150 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12151 #line 12152 "configure"
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12152 #include "confdefs.h"
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12153 #include <ndbm.h>
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12154 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12156 { (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
12157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12158 if test -z "$ac_err"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12159 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12160 eval "ac_cv_header_$ac_safe=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12161 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12162 echo "$ac_err" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12163 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12164 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12165 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12166 eval "ac_cv_header_$ac_safe=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12167 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12168 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12170 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12171 :
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12172 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12173 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12174
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12175 test "$with_database_gdbm" = "yes" -o \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12176 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12177 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12178 with_database_gdbm=no with_database_dbm=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12179 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12180
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12181 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12182
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12183 if test "$with_database_gdbm" != "no"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12184
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12185 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12186 echo "configure:12187: checking for dbm_open in -lgdbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12187 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12188
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12189 xe_check_libs=" -lgdbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12190 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12191 #line 12192 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12192 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12193 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12194 /* 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
12195 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12196 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12197
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12198 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12199 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12200 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12201 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12202 if { (eval echo configure:12203: \"$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
12203 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12204 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12205 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12206 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12207 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12208 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12209 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12210 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12211 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12212 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12213
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12214 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
12215 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12216 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12217 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12218 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12219 if test "$with_database_gdbm" = "yes"; then
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12220 { 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
12221 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12222 with_database_gdbm=no
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12223 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12224
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12225
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12226 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12227
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12228 if test "$with_database_dbm" != "no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12229 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12230 echo "configure:12231: checking for dbm_open" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12231
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12232 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12233 #line 12234 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12234 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12235 /* System header to define __stub macros and hopefully few prototypes,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12236 which can conflict with char dbm_open(); below. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12237 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12238 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12239 /* 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
12240 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12241 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12242
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12243 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12244
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12245 /* The GNU C library defines this for functions which it implements
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12246 to always fail with ENOSYS. Some functions are actually named
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12247 something starting with __ and the normal name is an alias. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12248 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12249 choke me
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12250 #else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12251 dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12252 #endif
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 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12255 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12256 if { (eval echo configure:12257: \"$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
12257 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12258 eval "ac_cv_func_dbm_open=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12259 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12260 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12261 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12262 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12263 eval "ac_cv_func_dbm_open=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12264 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12265 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12266
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12267 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12268 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12269 with_database_dbm=yes libdbm=
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12270 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12271 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12272
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12273
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12274 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12275 echo "configure:12276: checking for dbm_open in -ldbm" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12276 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12277
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12278 xe_check_libs=" -ldbm "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12279 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12280 #line 12281 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12281 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12282 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12283 /* 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
12284 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12285 char dbm_open();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12286
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12287 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12288 dbm_open()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12289 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12290 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12291 if { (eval echo configure:12292: \"$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
12292 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12293 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12294 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12295 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12296 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12297 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12298 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12299 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12300 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12301 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12302
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12303 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
12304 echo "$ac_t""yes" 1>&6
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12305 with_database_dbm=yes libdbm=-ldbm
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12306 else
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12307 echo "$ac_t""no" 1>&6
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12308 test "$with_database_dbm" = "yes" && \
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12309 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12310 with_database_dbm=no
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12311 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12312
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12313
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12314 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12315
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12316 fi
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12317
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12318 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12319 test "$with_database_gdbm" = "yes" -o \
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12320 "$with_database_dbm" = "yes" && \
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
12321 { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12322 Defining HAVE_DBM
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12323 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12324 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12325 #define HAVE_DBM 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12326 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12327 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12328
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12329
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12330 if test "$with_database_berkdb" != "no"; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12331 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12332 echo "configure:12333: checking for Berkeley db.h" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12333 for path in "db/db.h" "db.h"; do
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12334 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12335 #line 12336 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12336 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12337
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12338 #include <stdlib.h>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12339 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12340 #ifdef HAVE_INTTYPES_H
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12341 #define __BIT_TYPES_DEFINED__
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12342 #include <inttypes.h>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12343 typedef uint8_t u_int8_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12344 typedef uint16_t u_int16_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12345 typedef uint32_t u_int32_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12346 #ifdef WE_DONT_NEED_QUADS
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12347 typedef uint64_t u_int64_t;
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12348 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12349 #endif
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12350 #endif
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12351 #include <$path>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12352
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12353 int main() {
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12354
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12355 ; return 0; }
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12356 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12357 if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12358 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12359 db_h_path="$path"; break
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12360 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12361 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12362 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12363 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12364 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12365 done
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
12366 if test -z "$db_h_path"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12367 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12368 else echo "$ac_t""$db_h_path" 1>&6
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12369 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12370
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12371 if test "$with_database_berkdb" != "no"; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12372 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12373 echo "configure:12374: checking for Berkeley DB version" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12374 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12375 #line 12376 "configure"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12376 #include "confdefs.h"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12377 #include <$db_h_path>
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12378 #if DB_VERSION_MAJOR > 1
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12379 yes
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12380 #endif
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12381
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12382 EOF
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12384 egrep "yes" >/dev/null 2>&1; then
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12385 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12386 echo "$ac_t""2" 1>&6; dbfunc=db_open
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12387 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12388 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12389 echo "$ac_t""1" 1>&6; dbfunc=dbopen
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12390 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12391 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12392
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12393 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12394 echo "configure:12395: checking for $dbfunc" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12395
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12396 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12397 #line 12398 "configure"
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12398 #include "confdefs.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12399 /* System header to define __stub macros and hopefully few prototypes,
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12400 which can conflict with char $dbfunc(); below. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12401 #include <assert.h>
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12402 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12403 /* 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
12404 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12405 char $dbfunc();
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12406
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12407 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12408
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12409 /* The GNU C library defines this for functions which it implements
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12410 to always fail with ENOSYS. Some functions are actually named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12411 something starting with __ and the normal name is an alias. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12412 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12413 choke me
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12414 #else
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12415 $dbfunc();
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12416 #endif
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12417
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12418 ; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12419 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12420 if { (eval echo configure:12421: \"$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
12421 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12422 eval "ac_cv_func_$dbfunc=yes"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12423 else
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12424 echo "configure: failed program was:" >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12425 cat conftest.$ac_ext >&5
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12426 rm -rf conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12427 eval "ac_cv_func_$dbfunc=no"
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12428 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12429 rm -f conftest*
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12430
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12431 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12432 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12433 with_database_berkdb=yes need_libdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12434 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12435 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12436
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12437
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12438 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12439 echo "configure:12440: checking for $dbfunc in -ldb" >&5
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12440 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12441
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12442 xe_check_libs=" -ldb "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12443 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12444 #line 12445 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12445 #include "confdefs.h"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12446 /* Override any gcc2 internal prototype to avoid an error. */
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12447 /* 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
12448 builtin and then its argument prototype would still apply. */
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12449 char $dbfunc();
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12450
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12451 int main() {
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12452 $dbfunc()
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12453 ; return 0; }
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12454 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12455 if { (eval echo configure:12456: \"$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
12456 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12457 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12458 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12459 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12460 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12461 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12462 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12463 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12464 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12465 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12466
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12467 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
12468 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12469 with_database_berkdb=yes need_libdb=yes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12470 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12471 echo "$ac_t""no" 1>&6
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12472 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12473
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12474
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12475 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12476
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12477 fi
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 296
diff changeset
12478
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12479 if test "$with_database_berkdb" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12480 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12481 Defining DB_H_PATH = "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12482 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12483 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12484 #define DB_H_PATH "$db_h_path"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12485 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12486 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12487
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12488 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12489 Defining HAVE_BERKELEY_DB
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12490 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12491 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12492 #define HAVE_BERKELEY_DB 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12493 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12494 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12495
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12496 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
12497 else with_database_berkdb=no
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12498 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12499 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12500
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12501 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
12502 != "no no no"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12503 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12504 Defining HAVE_DATABASE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12505 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12506 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12507 #define HAVE_DATABASE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12508 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12509 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12510
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12511 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12512 echo " xemacs will be linked with \"database.o\""
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12513 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12514 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12515
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12516 if test "$with_socks" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12517
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12518 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12519 echo "configure:12520: checking for SOCKSinit in -lsocks" >&5
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12520 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12521
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12522 xe_check_libs=" -lsocks "
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12523 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12524 #line 12525 "configure"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12525 #include "confdefs.h"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12526 /* Override any gcc2 internal prototype to avoid an error. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12527 /* 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
12528 builtin and then its argument prototype would still apply. */
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12529 char SOCKSinit();
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12531 int main() {
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12532 SOCKSinit()
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12533 ; return 0; }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12534 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12535 if { (eval echo configure:12536: \"$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
12536 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12537 eval "ac_cv_lib_$ac_lib_var=yes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12538 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12539 echo "configure: failed program was:" >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12540 cat conftest.$ac_ext >&5
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12541 rm -rf conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12542 eval "ac_cv_lib_$ac_lib_var=no"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12543 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12544 rm -f conftest*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12545 xe_check_libs=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12546
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12547 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
12548 echo "$ac_t""yes" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12549 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
12550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12551 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12552 Defining $ac_tr_lib
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12553 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12554 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12555 #define $ac_tr_lib 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12556 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12557 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12558
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12559 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
12560
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12561 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12562 echo "$ac_t""no" 1>&6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12563 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12565
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12566 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
12567 Defining HAVE_SOCKS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12568 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12569 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12570 #define HAVE_SOCKS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12571 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12572 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12573
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12574 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12575
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12576 if test "$usage_tracking" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12577 { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12578 Defining USAGE_TRACKING
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12579 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12580 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12581 #define USAGE_TRACKING 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12582 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12583 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12584
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
12585 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
12586 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
12587
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12588 if test "$with_modules" != "no"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12589 echo "checking for module support" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12590 echo "configure:12591: checking for module support" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12591
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12592 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12593 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12594 echo "configure:12595: checking for dlfcn.h" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12595
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12596 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12597 #line 12598 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12598 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12599 #include <dlfcn.h>
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12600 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12602 { (eval echo configure:12603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
12603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12604 if test -z "$ac_err"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12605 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12606 eval "ac_cv_header_$ac_safe=yes"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12607 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12608 echo "$ac_err" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12609 echo "configure: failed program was:" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12610 cat conftest.$ac_ext >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12611 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12612 eval "ac_cv_header_$ac_safe=no"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12613 fi
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12614 rm -f conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12616 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12617
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12618
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12619 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12620 echo "configure:12621: checking for dlopen in -ldl" >&5
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12621 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12622
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12623 xe_check_libs=" -ldl "
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12624 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12625 #line 12626 "configure"
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12626 #include "confdefs.h"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12627 /* Override any gcc2 internal prototype to avoid an error. */
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12628 /* We use char because int might match the return type of a gcc2
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12629 builtin and then its argument prototype would still apply. */
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12630 char dlopen();
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12631
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12632 int main() {
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12633 dlopen()
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12634 ; return 0; }
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12635 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12636 if { (eval echo configure:12637: \"$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
12637 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12638 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12639 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12640 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12641 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12642 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12643 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12644 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12645 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12646 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12647
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12649 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12650 have_dl=yes libdl=dl
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12651 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12652 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12653
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12654 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12655 echo "configure:12656: checking for dlopen in -lc" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12656 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12657
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12658 xe_check_libs=" -lc "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12659 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12660 #line 12661 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12661 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12662 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12663 /* 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
12664 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12665 char dlopen();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12666
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12667 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12668 dlopen()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12669 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12670 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12671 if { (eval echo configure:12672: \"$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
12672 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12673 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12674 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12675 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12676 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12677 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12678 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12679 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12680 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12681 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12682
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12684 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12685 have_dl=yes
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12686 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12687 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12688 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12689
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12690
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12691 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12692
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12693
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12694 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12695 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12696 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12697
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12698 if test -n "$have_dl"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12699 { test "$extra_verbose" = "yes" && cat << \EOF
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12700 Defining HAVE_DLOPEN
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12701 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12702 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12703 #define HAVE_DLOPEN 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12704 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12705 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12706
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12707 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12708
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12709 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12710 echo "configure:12711: checking for shl_load in -ldld" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12711 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12712
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12713 xe_check_libs=" -ldld "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12714 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12715 #line 12716 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12716 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12717 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12718 /* 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
12719 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12720 char shl_load();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12721
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12722 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12723 shl_load()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12724 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12725 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12726 if { (eval echo configure:12727: \"$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
12727 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12728 eval "ac_cv_lib_$ac_lib_var=yes"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12729 else
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12730 echo "configure: failed program was:" >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12731 cat conftest.$ac_ext >&5
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12732 rm -rf conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12733 eval "ac_cv_lib_$ac_lib_var=no"
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12734 fi
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12735 rm -f conftest*
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12736 xe_check_libs=""
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12737
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
12739 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12740 libdl=dld have_dl=yes;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12741 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12742 Defining HAVE_SHL_LOAD
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12743 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12744 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12745 #define HAVE_SHL_LOAD 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12746 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12747 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12748
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12749 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12750 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12751
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12752 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12753 echo "configure:12754: checking for dld_init in -ldld" >&5
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12754 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12755
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12756 xe_check_libs=" -ldld "
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12757 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12758 #line 12759 "configure"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12759 #include "confdefs.h"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12760 /* Override any gcc2 internal prototype to avoid an error. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12761 /* 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
12762 builtin and then its argument prototype would still apply. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12763 char dld_init();
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12764
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12765 int main() {
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12766 dld_init()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12767 ; return 0; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12768 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12769 if { (eval echo configure:12770: \"$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
12770 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12771 eval "ac_cv_lib_$ac_lib_var=yes"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12772 else
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12773 echo "configure: failed program was:" >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12774 cat conftest.$ac_ext >&5
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12775 rm -rf conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12776 eval "ac_cv_lib_$ac_lib_var=no"
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12777 fi
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12778 rm -f conftest*
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12779 xe_check_libs=""
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12780
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12782 echo "$ac_t""yes" 1>&6
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12783 libdl=dld have_dl=yes;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12784 { test "$extra_verbose" = "yes" && cat << \EOF
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12785 Defining HAVE_DLD_INIT
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12786 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12787 cat >> confdefs.h <<\EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12788 #define HAVE_DLD_INIT 1
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12789 EOF
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
12790 }
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12791
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12792 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12793 echo "$ac_t""no" 1>&6
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12794 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12795
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12796
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12797 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12798
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12799
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12800 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12801
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12802 if test -n "$have_dl"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12803
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12804 dll_ld=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12805 dll_ldflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12806 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12807 dll_post=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12808 dll_ldo="-o"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12809 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12810 xehost=$canonical
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12811 xealias=$internal_configuration
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12812
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12813 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12814 echo "configure:12815: checking how to build dynamic libraries for ${xehost}" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12815 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12816 case "$xehost" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12817 *-*-linux-gnu*) ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12818 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12819 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12820
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12821 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12822 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12823 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12824
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12825 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12826 aix3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12827 # AIX sometimes has problems with the GCC collect2 program. For some
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12828 # reason, if we set the COLLECT_NAMES environment variable, the problems
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12829 # vanish in a puff of smoke.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12830 if test "${COLLECT_NAMES+set}" != set; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12831 COLLECT_NAMES=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12832 export COLLECT_NAMES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12833 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12834 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12835 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12836
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12837 # Now see if the compiler is really GCC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12838 if test "$GCC" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12839 XEGCC=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12840 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12841 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12842 echo "configure:12843: checking checking whether we are using GNU C" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12843 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12844 #line 12845 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12845 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12846
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12847 #ifdef __GNUC__
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12848 yes;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12849 #endif
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12850
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12851 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12853 egrep "yes" >/dev/null 2>&1; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12854 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12855 XEGCC=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12856 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12857 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12858 XEGCC=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12859 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12860 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12861
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12862 echo "$ac_t""${XEGCC}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12863 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12864
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12865 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12866 echo "configure:12867: checking how to produce PIC code" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12867 wl=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12868
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12869 can_build_shared=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12870 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12871 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12872
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12873 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12874 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12875 # PIC is the default for these OSes.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12876 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12877
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12878 aix3* | aix4* | os2*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12879 # We can build DLLs from non-PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12880 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12881 amigaos*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12882 # 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
12883 # adding the `-m68020' flag to GCC prevents building anything better,
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12884 # like `-m68040'.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12885 dll_cflags='-m68020 -resident32 -malways-restore-a4'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12886 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12887 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12888 dll_cflags='-fPIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12889 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12890 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12891 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12892 # PORTME Check for PIC flags for the system compiler.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12893 case "$xehost_os" in
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
12894 hpux9* | hpux1[0-9]*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12895 # 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
12896 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12897 dll_cflags='+Z'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12898 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12899
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12900 irix5* | irix6*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12901 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12902 # PIC (with -KPIC) is the default.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12903 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12904
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12905 os2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12906 # We can build DLLs from non-PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12907 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12908
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12909 osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12910 # All OSF/1 code is PIC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12911 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12912 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12913
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12914 sco3.2v5*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12915 dll_cflags='-belf -Kpic'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12916 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12917 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12918
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12919 unixware*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12920 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12921 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12922 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12923
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12924 sysv4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12925 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12926 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12927 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12928
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12929 sysv5*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12930 dll_cflags="-KPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12931 wl="-Wl,"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12932 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12933
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12934 solaris2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12935 dll_cflags='-KPIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12936 wl='-Wl,'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12937 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12938
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12939 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12940 dll_cflags='-PIC'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12941 wl='-Qoption ld '
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12942 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12943
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12944 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12945 dll_cflags='-pic'
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12946 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12947
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12948 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12949 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12950 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12951 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12952 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12953
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12954 if test -n "$dll_cflags"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12955 echo "$ac_t""${dll_cflags}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12956
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12957 # Check to make sure the dll_cflags actually works.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12958 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12959 echo "configure:12960: checking if PIC flag ${dll_cflags} really works" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12960 save_CFLAGS="$CFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12961 CFLAGS="$CFLAGS $dll_cflags -DPIC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12962 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12963 #line 12964 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12964 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12965
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12966 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12967 int x=0;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12968 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12969 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
12970 if { (eval echo configure:12971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12971 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12972
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12973 # 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
12974 # reports no error. So, we need to grep stderr for (Bundled).
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12975 if grep '(Bundled)' config.log >/dev/null; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12976 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12977 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12978 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12979 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12980 echo "$ac_t""yes" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12981 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12982 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12983 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12984 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12985 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12986 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12987 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12988 dll_cflags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12989 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12990 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12991 CFLAGS="$save_CFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12992 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12993 echo "$ac_t""none" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12994 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12995
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12996 if test "$can_build_shared" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12997 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12998 xldf=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
12999 xcldf=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13000 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13001 echo "configure:13002: checking if C compiler can produce shared libraries" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13002 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13003 xcldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13004 xldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13005 else # Not using GCC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13006 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13007 aix3* | aix4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13008 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
13009 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
13010 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13011
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13012 freebsd2* | netbsd* | openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13013 xldf="-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13014 xcldf="${wl}-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13015 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13016
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13017 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13018 xcldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13019 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13020
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13021 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13022 xldf="-b +s"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13023 xcldf="${wl}-b ${wl}+s"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13024 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13025
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13026 irix5* | irix6* | osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13027 xcldf="${wl}-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13028 xldf="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13029 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13030
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13031 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13032 xcldf="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13033 xldf="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13034 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13035
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13036 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13037 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13038 xldf="-assert pure-text -Bstatic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13039 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13040 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13041 fi # End if if we are using gcc
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13042
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13043 if test -n "$xcldf"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13044 save_LDFLAGS=$LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13045 save_LIBS=$LIBS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13046 save_xe_libs=$xe_libs
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13047 LDFLAGS="$xcldf $LDFLAGS"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13048 LIBS=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13049 xe_libs=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13050 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
13051 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13052 #line 13053 "configure"
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13053 #include "confdefs.h"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13054
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13055 int main() {
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13056 int x=0;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13057 ; return 0; }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13058 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13059 if { (eval echo configure:13060: \"$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
13060 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13061 cc_produces_so=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13062 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13063 echo "configure: failed program was:" >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13064 cat conftest.$ac_ext >&5
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13065 rm -rf conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13066 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13067 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13068 rm -f conftest*
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13069 LDFLAGS=$save_LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13070 LIBS=$save_LIBS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13071 xe_libs=$save_xe_libs
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13072 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
13073 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13074 cc_produces_so=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13075 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13076 echo "$ac_t""${cc_produces_so}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13077
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13078 LTLD=$LD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13079 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13080 ac_prog=ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13081 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13082 # Check if gcc -print-prog-name=ld gives a path.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13083 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13084 echo "configure:13085: checking for ld used by GCC" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13085 ac_prog=`($CC -print-prog-name=ld) 2>&5`
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13086 case "$ac_prog" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13087 # Accept absolute paths.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13088 /*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13089 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13090 case "$ac_prog" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13091 *gcc-lib*) LTLD="$CC"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13092 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13093 *) LTLD="$ac_prog"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13094 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13095 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13096 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13097 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13098 "")
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13099 # If it fails, then pretend we aren't using GCC.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13100 ac_prog=ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13101 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13102 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13103 # 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
13104 with_gnu_ld=unknown
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13105 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13106 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13107 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13108 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13109 echo "configure:13110: checking for GNU ld" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13110 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13111
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13112 if test -z "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13114 for ac_dir in $PATH; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13115 test -z "$ac_dir" && ac_dir=.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13116 if test -f "$ac_dir/$ac_prog"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13117 LTLD="$ac_dir/$ac_prog"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13118 # 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
13119 # but apparently some GNU ld's only accept -v.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13120 # 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
13121 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
13122 xe_gnu_ld=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13123 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13124 xe_gnu_ld=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13125 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13126 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13127 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13128 IFS="$ac_save_ifs"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13129 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13130
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13131 if test -n "$LTLD"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13132 echo "$ac_t""${LTLD}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13133 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13134 echo "$ac_t""no" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13135 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13136
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13137 if test -z "$LTLD" -a "$cc_produces_so" = no; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13138 { 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
13139 exit 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13140 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13141 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13142
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13143 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13144
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13145 # 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
13146 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13147 echo "configure:13148: checking if the linker is GNU ld" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13148 # 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
13149 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
13150 xe_gnu_ld=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13151 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13152 xe_gnu_ld=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13153 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13154 echo "$ac_t""${xe_gnu_ld}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13155
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13156 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13157 amigaos* | sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13158 # 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
13159 gnu_ld_acts_native=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13160 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13161 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13162 gnu_ld_acts_native=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13163 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13164 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13165
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13166 if test "$cc_produces_so" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13167 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13168 dll_ldflags=$xcldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13169 can_build_shared=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13170 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13171 # OK - only NOW do we futz about with ld.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13172 # See if the linker supports building shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13173 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13174 echo "configure:13175: checking whether the linker supports shared libraries" >&5
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13175 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13176 dll_ldflags=$LDFLAGS
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13177 ld_shlibs=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13178 can_build_shared=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13179 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
13180 # See if GNU ld supports shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13181 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
13182 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13183 dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13184 ld_shlibs=yes
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13185 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13186 ld_shlibs=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13187 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13188 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13189 # 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
13190 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13191 aix3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13192 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13193 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13194 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13195
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13196 aix4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13197 dll_ldflags=$xcldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13198 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13199
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13200 # 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
13201 # 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
13202 # 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
13203 # extra space).
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13204 freebsd2.2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13205 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13206 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13207 dll_post="/usr/lib/c++rt0.o"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13208 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13209
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13210 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13211 freebsd2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13212 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13213 dll_ldflags="-Bshareable"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13214 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13215
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13216 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13217 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13218 dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13219 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13220
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13221 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13222 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13223 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13224 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13225
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13226 irix5* | irix6*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13227 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13228 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13229 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13230
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13231 netbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13232 # Tested with NetBSD 1.2 ld
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13233 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13234 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13235 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13236
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13237 openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13238 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13239 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13240 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13241
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13242 osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13243 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13244 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13245 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13246
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13247 # 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
13248 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13249 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13250 case "$dll_ld" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13251 *gcc*) dll_ldflags="-shared"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13252 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13253 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13254 *) dll_ldflags="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13255 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13256 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13257 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13258
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13259 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13260 if test "$XEGCC" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13261 dll_ld=$CC
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13262 else
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13263 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13264 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13265 dll_ldflags=$xldf
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13266 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13267
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13268 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13269 dll_ld=$LTLD
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13270 dll_ldflags="-G"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13271 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13272
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13273 bsdi*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13274 dll_ldflags="-r"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13275 dll_ld="shlicc2"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13276 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13277
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13278 *)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13279 ld_shlibs=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13280 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13281 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13282 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13283 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13284 echo "$ac_t""${ld_shlibs}" 1>&6
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13285 if test "$ld_shlibs" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13286 can_build_shared=no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13287 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13288 fi # End of if cc_produces_so = no
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13289
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13290
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13291 if test "$xe_gnu_ld" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13292 if test "$ld_shlibs" = yes; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13293 ld_dynamic_link_flags="${wl}-export-dynamic"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13294 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13295 fi
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13296
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13297 if test -z "$ld_dynamic_link_flags"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13298 case "$xehost_os" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13299 aix3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13300 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13301 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13302
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13303 aix4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13304 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13305 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13306
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13307 freebsd2.2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13308 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13309 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13310
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13311 freebsd2*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13312 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13313 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13314
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13315 freebsd3*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13316 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13317 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13318
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13319 hpux*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13320 ld_dynamic_link_flags="${wl}-E"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13321 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13322
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13323 irix5* | irix6*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13324 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13325 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13326
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13327 netbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13328 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13329 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13330
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13331 openbsd*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13332 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13333 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13334
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13335 osf3* | osf4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13336 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13337 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13338
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13339 solaris2* | solaris7*)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13340 ld_dynamic_link_flags=
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13341 ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13342
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13343 sco3.2v5* | unixware* | sysv5* | sysv4*)
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13344 ld_dynamic_link_flags="${wl}-Bexport"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13345 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13346
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13347 sunos4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13348 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13349 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13350
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13351 uts4*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13352 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13353 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13354
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13355 bsdi*)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13356 ld_dynamic_link_flags=
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13357 ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13358
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13359 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13360 fi # End of if -z ld_dynamic_link_flags
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13361 fi # End of if test "$can_build_shared" = "yes"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13362
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13363
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13364
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13365
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13366
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13367
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13368
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13369
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13370 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13371
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13372 if test "$can_build_shared" = "yes"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13373 { test "$extra_verbose" = "yes" && cat << \EOF
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13374 Defining HAVE_SHLIB
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13375 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13376 cat >> confdefs.h <<\EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13377 #define HAVE_SHLIB 1
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13378 EOF
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13379 }
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13380
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13381 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13382 echo " xemacs will be linked with \"sysdll.o emodules.o\""
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13383 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13384 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13385 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
13386 for ac_func in dlerror _dlerror
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13387 do
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13389 echo "configure:13390: checking for $ac_func" >&5
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13390
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13391 cat > conftest.$ac_ext <<EOF
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13392 #line 13393 "configure"
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13393 #include "confdefs.h"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13394 /* System header to define __stub macros and hopefully few prototypes,
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13395 which can conflict with char $ac_func(); below. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13396 #include <assert.h>
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13397 /* Override any gcc2 internal prototype to avoid an error. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13398 /* 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
13399 builtin and then its argument prototype would still apply. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13400 char $ac_func();
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13401
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13402 int main() {
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13403
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13404 /* The GNU C library defines this for functions which it implements
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13405 to always fail with ENOSYS. Some functions are actually named
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13406 something starting with __ and the normal name is an alias. */
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13408 choke me
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13409 #else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13410 $ac_func();
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13411 #endif
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13412
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13413 ; return 0; }
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13414 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13415 if { (eval echo configure:13416: \"$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
13416 rm -rf conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13417 eval "ac_cv_func_$ac_func=yes"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13418 else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13419 echo "configure: failed program was:" >&5
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13420 cat conftest.$ac_ext >&5
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13421 rm -rf conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13422 eval "ac_cv_func_$ac_func=no"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13423 fi
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13424 rm -f conftest*
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13425
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13427 echo "$ac_t""yes" 1>&6
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13429 { test "$extra_verbose" = "yes" && cat << EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13430 Defining $ac_tr_func
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13431 EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13432 cat >> confdefs.h <<EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13433 #define $ac_tr_func 1
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13434 EOF
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13435 }
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13436
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13437 else
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13438 echo "$ac_t""no" 1>&6
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13439 fi
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13440 done
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
13441
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13442 with_modules=yes
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13443 else
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13444 if test "$with_modules" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13445 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13446 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13447 echo "configure: warning: "Module support cannot be provided."" 1>&2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13448 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13449 with_modules=no
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13450 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13451 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13452
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13453 cat > conftest.$ac_ext <<EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13454 #line 13455 "configure"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13455 #include "confdefs.h"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13456 int main(int c,char *v[]){return 0;}
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13457 EOF
400
a86b2b5e0111 Import from CVS: tag r21-2-30
cvs
parents: 398
diff changeset
13458 if { (eval echo configure:13459: \"$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
13459 then
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13460 :
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13461 else
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13462 conftest_rc="$?"
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13463 echo "configure: failed program was:" >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13464 cat conftest.$ac_ext >&5
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13465 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13466
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13467 echo ""
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13468 echo "*** PANIC *** The C compiler can no longer build working executables."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13469 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13470 echo "*** PANIC *** The most likely reason for this problem is that configure"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13471 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13472 echo "*** PANIC *** found at run time."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13473 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13474 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
13475 echo "*** PANIC *** On other systems, try telling configure where to find the"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13476 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13477 echo "*** PANIC ***"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13478 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
13479 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13480 echo "*** PANIC *** on your system. Don't do that."
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13481 exit 1
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13482 fi
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13483 rm -fr conftest*
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
13484
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13485 if test "$win32_processes" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13486 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
13487 echo " xemacs will be linked with \"process-nt.o\""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13488 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13489 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13490 { test "$extra_verbose" = "yes" && cat << \EOF
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13491 Defining HAVE_UNIX_PROCESSES
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13492 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13493 cat >> confdefs.h <<\EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13494 #define HAVE_UNIX_PROCESSES 1
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13495 EOF
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13496 }
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13497
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13498 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
13499 echo " xemacs will be linked with \"process-unix.o\""
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13500 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13501 fi
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
13502
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13503
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13504
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13505 T=""
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13506 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
13507 CFLAGS="$T"
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13508
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13509
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
13510 T=""
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13511 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
13512 extra_objs="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13513
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13514
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13515 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13516 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
13517 c_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13518
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13519
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13520 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13521 for W in $c_switch_x_site $X_CFLAGS; 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
13522 c_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13523
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13524
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13525 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13526 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
13527 c_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13528
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13529
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13530 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13531 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
13532 ld_switch_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13533
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13534
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13535 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13536 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
13537 ld_switch_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13538
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13539
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13540 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13541 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
13542 ld_switch_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13543
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13544
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13545 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13546 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
13547 ld_libs_general="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13548
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13549
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13550 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13551 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13552 ld_libs_window_system="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13553
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13554
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13555 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13556 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
13557 ld_libs_all="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13558
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13559
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13560
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13561 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
13562 internal_makefile_list="Makefile.in"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13563 SUBDIR_MAKEFILES=''
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13564 test -d lock || mkdir lock
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13565 for dir in $MAKE_SUBDIR; do
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13566 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13567 test -d "$d" || mkdir "$d"; cd "$d"
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13568 done ) ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13569 * ) test -d "$dir" || mkdir "$dir" ;;
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13570 esac
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13571
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13572 T=""
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents: 380
diff changeset
13573 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
13574 SUBDIR_MAKEFILES="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13575
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13576
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13577 T=""
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13578 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
13579 internal_makefile_list="$T"
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13580
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13581 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13582
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13583
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13584
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
13585
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13586 for dir in src/s src/m; do
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13587 if test ! -d "$dir" ; then
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13588 echo Making symbolic link to "$srcdir/$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13589 ${LN_S} "$srcdir/$dir" "$dir"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13590 fi
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13591 done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13592
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13593 if test "$extra_verbose" = "yes"; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13594 echo ""
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13595 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
13596 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13597 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13598
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13599
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13600 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13601 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13602 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13603 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13604
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13605 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13606 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13607 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13608 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13609
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13610 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13611 test "$extra_verbose" = "yes" && echo "creating TAGS"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13612 echo "
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13613 $srcdir/TAGS,include" > "TAGS"
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13614 fi
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13615
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
13616 if test "$__SUNPRO_C" = "yes"; then
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13617 test "$extra_verbose" = "yes" && echo "creating .sbinit"
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13618 ( echo "# For use with Sun WorkShop's Source browser."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13619 echo "# See sbquery(1) and sbinit(4) for more information"
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13620 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13621 ) > .sbinit
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
13622 fi
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13623
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13624 rm -f core
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
13625
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13626
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13627
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13628
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13629
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13630
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13631
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13632
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13633
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13634
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13635
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13636
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13637
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13638
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13639
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
13640
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13641
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13642
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13643
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13644 PREFIX=$prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13645 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13646 case "$PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13647 *\$* ) eval "PREFIX=$PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13648 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13649 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13650 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13651
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13652
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13653
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13654
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13655 EXEC_PREFIX=$exec_prefix
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13656 while true; do
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13657 case "$EXEC_PREFIX" in
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13658 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13659 *) break ;;
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13660 esac
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13661 done
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
13662
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13663
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13664
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13665
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13666 INFODIR=$infodir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13667 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13668 case "$INFODIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13669 *\$* ) eval "INFODIR=$INFODIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13670 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13671 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13672 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13673
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13674
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13675
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13676
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13677 INFOPATH=$infopath
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13678 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13679 case "$INFOPATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13680 *\$* ) eval "INFOPATH=$INFOPATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13681 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13682 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13683 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13684
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13685
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13686
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13687
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13688 PACKAGE_PATH=$package_path
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13689 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13690 case "$PACKAGE_PATH" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13691 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13692 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13693 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13694 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13695
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13696
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13697
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13698
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13699 LISPDIR=$lispdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13700 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13701 case "$LISPDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13702 *\$* ) eval "LISPDIR=$LISPDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13703 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13704 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13705 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13706
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13707
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13708
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13709
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13710 MODULEDIR=$moduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13711 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13712 case "$MODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13713 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13714 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13715 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13716 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13717
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13718
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13719
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13720
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13721 SITELISPDIR=$sitelispdir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13722 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13723 case "$SITELISPDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13724 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13725 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13726 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13727 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13728
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13729
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13730
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13731
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13732 SITEMODULEDIR=$sitemoduledir
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13733 while true; do
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13734 case "$SITEMODULEDIR" in
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13735 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13736 *) break ;;
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13737 esac
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13738 done
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13739
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13740
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13741
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13742
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13743 ETCDIR=$etcdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13744 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13745 case "$ETCDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13746 *\$* ) eval "ETCDIR=$ETCDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13747 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13748 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13749 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13750
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13751
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13752
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13753
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13754 LOCKDIR=$lockdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13755 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13756 case "$LOCKDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13757 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13758 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13759 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13760 done
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13761
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13762
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13763
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13764
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13765 DOCDIR=$docdir
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13766 while true; do
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13767 case "$DOCDIR" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13768 *\$* ) eval "DOCDIR=$DOCDIR" ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13769 *) break ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13770 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13771 done
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13772
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13773
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13774
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13775
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13776 ARCHLIBDIR=$archlibdir
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13777 while true; do
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13778 case "$ARCHLIBDIR" in
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13779 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13780 *) break ;;
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13781 esac
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
13782 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13783
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13784
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13785
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13786
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13787
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13788
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13789
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13790
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13791
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13792
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13793
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
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13797
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13798
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
13799
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13800
263
727739f917cb Import from CVS: tag r20-5b30
cvs
parents: 261
diff changeset
13801
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13802
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13803 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13804
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13805
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13806
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13807
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13808
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13809
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13810
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13811 : ${XEMACS_CC:=$CC}
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13812
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13813
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13814 if test "$with_prefix" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13815 { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13816 Defining PREFIX_USER_DEFINED
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13817 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13818 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13819 #define PREFIX_USER_DEFINED 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13820 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13821 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13822
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13823 fi
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13824
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13825 if test "$with_site_lisp" = "no"; then
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13826 { test "$extra_verbose" = "yes" && cat << \EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13827 Defining INHIBIT_SITE_LISP
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13828 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13829 cat >> confdefs.h <<\EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13830 #define INHIBIT_SITE_LISP 1
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13831 EOF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13832 }
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13833
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
13834 fi
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13835 if test "$with_site_modules" = "no"; then
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13836 { test "$extra_verbose" = "yes" && cat << \EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13837 Defining INHIBIT_SITE_MODULES
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13838 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13839 cat >> confdefs.h <<\EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13840 #define INHIBIT_SITE_MODULES 1
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13841 EOF
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13842 }
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13843
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
13844 fi
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
13845
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13846
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13847 T=""
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13848 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
13849 ac_configure_args="$T"
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13850
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13851 { test "$extra_verbose" = "yes" && cat << EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13852 Defining EMACS_CONFIGURATION = "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13853 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13854 cat >> confdefs.h <<EOF
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
13855 #define EMACS_CONFIGURATION "$configuration"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13856 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13857 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13858
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13859 { test "$extra_verbose" = "yes" && cat << EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13860 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13861 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13862 cat >> confdefs.h <<EOF
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
13863 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13864 EOF
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13865 }
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13866
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
13867 { test "$extra_verbose" = "yes" && cat << EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13868 Defining config_machfile = "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13869 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13870 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13871 #define config_machfile "$machfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13872 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13873 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13874
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13875 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13876 Defining config_opsysfile = "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13877 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13878 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13879 #define config_opsysfile "$opsysfile"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13880 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13881 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13882
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13883
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13884
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13885 null_string=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13886 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13887 Defining LD_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13888 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13889 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13890 #define LD_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13891 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13892 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13893
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13894 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13895 Defining LD_SWITCH_X_SITE_AUX = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13896 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13897 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13898 #define LD_SWITCH_X_SITE_AUX $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13899 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13900 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13901
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13902 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13903 Defining C_SWITCH_X_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13904 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13905 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13906 #define C_SWITCH_X_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13907 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13908 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13909
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13910 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13911 Defining LD_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13912 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13913 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13914 #define LD_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13915 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13916 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13917
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13918 { test "$extra_verbose" = "yes" && cat << EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13919 Defining C_SWITCH_SITE = $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13920 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13921 cat >> confdefs.h <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13922 #define C_SWITCH_SITE $null_string
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13923 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13924 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13925
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13926
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13927
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
13928 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
13929 Defining GNU_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13930 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13931 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13932 #define GNU_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13933 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13934 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13935
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
13936 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
13937 Defining USE_SYSTEM_MALLOC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13938 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13939 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13940 #define USE_SYSTEM_MALLOC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13941 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13942 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13943
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
13944 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
13945 Defining USE_DEBUG_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13946 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13947 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13948 #define USE_DEBUG_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13949 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13950 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13951
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
13952 { test "$extra_verbose" = "yes" && cat << \EOF
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13953 Defining USE_SYSTEM_MALLOC
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13954 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13955 cat >> confdefs.h <<\EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13956 #define USE_SYSTEM_MALLOC 1
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13957 EOF
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13958 }
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
13959
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13960 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13961 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13962 Defining I18N3
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13963 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13964 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13965 #define I18N3 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13966 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13967 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13968
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 167
diff changeset
13969 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13970 Defining USE_GCC
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13971 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13972 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13973 #define USE_GCC 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13974 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13975 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13976
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13977 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13978 Defining EXTERNAL_WIDGET
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13979 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13980 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13981 #define EXTERNAL_WIDGET 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13982 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13983 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13984
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13985 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13986 Defining NO_DOC_FILE
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13987 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13988 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13989 #define NO_DOC_FILE 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13990 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13991 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
13992
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13993 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13994 Defining PURIFY
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13995 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13996 cat >> confdefs.h <<\EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13997 #define PURIFY 1
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13998 EOF
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
13999 }
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14000
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14001 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14002 Defining QUANTIFY
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14003 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14004 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14005 #define QUANTIFY 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14006 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14007 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14008
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14009 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14010 Defining MAIL_USE_POP
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14011 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14012 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14013 #define MAIL_USE_POP 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14014 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14015 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14016
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14017 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14018 Defining KERBEROS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14019 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14020 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14021 #define KERBEROS 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14022 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14023 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14024
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14025 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14026 Defining HESIOD
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14027 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14028 cat >> confdefs.h <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14029 #define HESIOD 1
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14030 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14031 }
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14032
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14033 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14034 Defining USE_UNION_TYPE
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14035 EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14036 cat >> confdefs.h <<\EOF
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14037 #define USE_UNION_TYPE 1
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14038 EOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14039 }
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14040
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14041 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14042 Defining PDUMP
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14043 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14044 cat >> confdefs.h <<\EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14045 #define PDUMP 1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14046 EOF
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14047 }
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14048
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14049
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14050
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
14051 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14052 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14053 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14054 echo "uname -a: `uname -a`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14055 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14056 echo ""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14057 echo "$0 $quoted_arguments"
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14058 ) > Installation
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14059
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14060 if test ! -z ${emacs_beta_version} ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14061 if test -z "${emacs_is_beta}" ; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14062 xemacs_betaname=".${emacs_beta_version}"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14063 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14064 xemacs_betaname="-b${emacs_beta_version}"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14065 fi
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14066 else
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14067 xemacs_betaname=""
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14068 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14069
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14070 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14071 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14072
261
405dd6d1825b Import from CVS: tag r20-5b29
cvs
parents: 259
diff changeset
14073 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14074
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14075 Where should the build process find the source code? $srcdir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14076 What installation prefix should install use? $prefix
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14077 What operating system and machine description files should XEmacs use?
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14078 \`$opsysfile' and \`$machfile'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14079 What compiler should XEmacs be built with? $CC $CFLAGS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14080 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14081 Should XEmacs use the relocating allocator for buffers? $rel_alloc
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14082 What window system should XEmacs use? ${window_system}"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14083 if test "$with_x11" = "yes"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14084 echo " Where do we find X Windows header files? $x_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14085 echo " Where do we find X Windows libraries? $x_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14086 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14087 if test -n "$site_includes"; then
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14088 echo " Additional header files: $site_includes"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14089 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14090 if test -n "$site_libraries"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14091 echo " Additional libraries: $site_libraries"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14092 fi
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
14093 if test -n "$site_prefixes"; then
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
14094 echo " Additional prefixes: $site_prefixes"
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 207
diff changeset
14095 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14096 if test -n "$runpath"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14097 echo " Runtime library search path: $runpath"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14098 fi
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14099 if test "$have_xaw" = "yes"; then
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14100 echo " Athena library to link: $athena_lib"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14101 echo " Athena header include path: $athena_h_path"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14102 fi
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 126
diff changeset
14103 test "$with_dnet" = yes && echo " Compiling in support for DNET."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14104 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14105 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14106 if test "$with_xmu" != yes -a "$with_x11" = yes; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14107 echo " No Xmu; substituting equivalent routines."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14108 fi
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14109
153
25f70ba0133c Import from CVS: tag r20-3b3
cvs
parents: 151
diff changeset
14110 if test "$with_xpm" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14111 echo " Compiling in support for XPM images."
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
14112 elif test "$with_x11" = yes; then
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14113 echo " --------------------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14114 echo " WARNING: Compiling without XPM support."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14115 if test "$xpm_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14116 echo " Reason: $xpm_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14117 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14118 echo " WARNING: You should strongly consider installing XPM."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14119 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14120 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
308
33bdb3d4b97f Import from CVS: tag r21-0b52
cvs
parents: 306
diff changeset
14121 echo " --------------------------------------------------------------------"
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 369
diff changeset
14122 fi
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14123 if test "$with_png" = yes; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14124 echo " Compiling in support for PNG image handling."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14125 elif test "$window_system" != "none"; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14126 echo " --------------------------------------------------------------------"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14127 echo " WARNING: Compiling without PNG image support."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14128 if test "$png_problem" != ""; then
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14129 echo " Reason: $png_problem"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14130 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14131 echo " WARNING: You should strongly consider installing the PNG libraries."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14132 echo " WARNING: Otherwise certain images and glyphs may not display."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14133 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14134 echo " --------------------------------------------------------------------"
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14135 fi
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14136 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14137 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
14138 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
310
851ff35f137f Import from CVS: tag r21-0b53
cvs
parents: 308
diff changeset
14139 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14140
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14141 test "$with_native_sound" = yes && echo " Compiling in native sound support."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14142 test "$with_nas_sound" = yes && echo " Compiling in network sound (NAS) support."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14143 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14144 test "$with_esd_sound" = yes && echo " Compiling in support for Enlightened Sound Daemon (ESD)."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14145
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14146 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14147 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14148 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14149
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14150 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14151
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14152 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14153 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14154
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14155 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
259
11cf20601dec Import from CVS: tag r20-5b28
cvs
parents: 257
diff changeset
14156 test "$with_file_coding" = yes && echo " Compiling in File coding support."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14157 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14158 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14159 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 175
diff changeset
14160 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14161 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
14162 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
14163 echo " Compiling in support for the WNN input method on Mule."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14164 test "$with_wnn6" = yes && echo " Using WNN version 6."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
14165 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14166 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14167
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14168 test "$with_cde" = yes && echo " Compiling in support for CDE."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14169 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14170 test "$with_offix" = yes && echo " Compiling in support for OffiX."
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 288
diff changeset
14171 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14172 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14173 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling."
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
14174 case "$with_menubars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14175 lucid ) echo " Using Lucid menubars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14176 motif ) echo " Using Motif menubars."
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14177 echo " *WARNING* The Motif menubar implementation is currently buggy."
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14178 echo " We recommend using the Lucid menubar instead."
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14179 echo " Re-run configure with --with-menubars='lucid'." ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14180 msw ) echo " Using MS-Windows menubars." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14181 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14182 case "$with_scrollbars" in
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14183 lucid ) echo " Using Lucid scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14184 motif ) echo " Using Motif scrollbars." ;;
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14185 athena ) echo " Using Athena scrollbars." ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14186 msw ) echo " Using MS-Windows scrollbars." ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14187 esac
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14188 case "$with_widgets" in
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14189 motif ) echo " Using Motif native widgets." ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14190 athena ) echo " Using Athena native widgets." ;;
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14191 msw ) echo " Using MS-Windows native widgets." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14192 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14193 case "$with_dialogs" in
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14194 motif )
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14195 echo " Using Motif dialog boxes."
394
7d59cb494b73 Import from CVS: tag r21-2-12
cvs
parents: 392
diff changeset
14196 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14197 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14198 echo " We recommend using the Athena dialog boxes instead."
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14199 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14200 echo " Read the PROBLEMS file for more information."
394
7d59cb494b73 Import from CVS: tag r21-2-12
cvs
parents: 392
diff changeset
14201 fi; fi
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14202 ;;
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14203 athena ) echo " Using Athena dialog boxes." ;;
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14204 msw ) echo " Using MS-Windows dialog boxes." ;;
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14205 esac
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14206 test "$with_modules" = "yes" && echo " Compiling in dynamic shared object module support."
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
14207 test "$with_clash_detection" = yes && \
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
14208 echo " Clash detection will use \"$lockdir\" for locking files."
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14209 echo " movemail will use \"$mail_locking\" for locking mail spool files."
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14210 test "$with_pop" = yes && echo " Using POP for mail access."
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14211 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14212 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14213 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14214 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14215 test "$debug" = yes && echo " Compiling in extra code for debugging."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14216 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14217 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14218 != "no no no no no"; then
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14219 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14220 echo " WARNING: Compiling in support for runtime error checking."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14221 echo " WARNING: XEmacs will run noticeably more slowly as a result."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14222 echo " WARNING: Error checking is on by default for XEmacs beta releases."
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14223 echo " WARNING: ---------------------------------------------------------"
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14224 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
14225 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
14226 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
14227 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
14228
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
14229
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14230 # Remove any trailing slashes in these variables.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14231 test -n "$prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
14232 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14233 test -n "$exec_prefix" &&
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
14234 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14235
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14236
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14237 for file in $internal_makefile_list; do
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14238 test "$file" = src/Makefile.in && \
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14239 file="src/Makefile.in:src/Makefile.in.in:src/depend"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14240 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
14241 done
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
14242 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14243 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
14244
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14245 trap '' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14246
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14247 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
14248
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14250 # Let make expand exec_prefix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14252
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14253 # Any assignment to VPATH causes Sun make to only execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14254 # the first set of double-colon rules, so remove it if not needed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14255 # If there is a colon in the path, we need to keep it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14256 if test "x$srcdir" = x.; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14257 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14258 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14259
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14260 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14261
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14262 DEFS=-DHAVE_CONFIG_H
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14263
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14264 # Without the "./", some shells look in PATH for config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14265 : ${CONFIG_STATUS=./config.status}
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14266
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14267 echo creating $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14268 rm -f $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14269 cat > $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14270 #! /bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14271 # Generated automatically by configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14272 # Run this file to recreate the current configuration.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14273 # This directory was configured as follows,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14274 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14275 #
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14276 # $0 $ac_configure_args
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14277 #
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14278 # Compiler output produced by configure, useful for debugging
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14279 # configure, is in ./config.log if it exists.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14280
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14281 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14282 for ac_option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14283 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14284 case "\$ac_option" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14286 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
14287 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
14288 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14289 echo "$CONFIG_STATUS generated by autoconf version 2.13"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14290 exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14291 -help | --help | --hel | --he | --h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14292 echo "\$ac_cs_usage"; exit 0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14293 *) echo "\$ac_cs_usage"; exit 1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14294 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14295 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14296
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14297 ac_given_srcdir=$srcdir
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14298 ac_given_INSTALL="$INSTALL"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14299
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
14300 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
14301 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14302 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14303
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14304 # 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
14305 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14306 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14307 $ac_vpsub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14308 $extrasub
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14309 s%@SHELL@%$SHELL%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14310 s%@CFLAGS@%$CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14311 s%@CPPFLAGS@%$CPPFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14312 s%@CXXFLAGS@%$CXXFLAGS%g
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14313 s%@FFLAGS@%$FFLAGS%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14314 s%@DEFS@%$DEFS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14315 s%@LDFLAGS@%$LDFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14316 s%@LIBS@%$LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14317 s%@exec_prefix@%$exec_prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14318 s%@prefix@%$prefix%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14319 s%@program_transform_name@%$program_transform_name%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14320 s%@bindir@%$bindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14321 s%@sbindir@%$sbindir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14322 s%@libexecdir@%$libexecdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14323 s%@datadir@%$datadir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14324 s%@sysconfdir@%$sysconfdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14325 s%@sharedstatedir@%$sharedstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14326 s%@localstatedir@%$localstatedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14327 s%@libdir@%$libdir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14328 s%@includedir@%$includedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14329 s%@oldincludedir@%$oldincludedir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14330 s%@infodir@%$infodir%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14331 s%@mandir@%$mandir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14332 s%@LN_S@%$LN_S%g
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14333 s%@blddir@%$blddir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14334 s%@CC@%$CC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14335 s%@CPP@%$CPP%g
207
e45d5e7c476e Import from CVS: tag r20-4b2
cvs
parents: 203
diff changeset
14336 s%@start_flags@%$start_flags%g
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14337 s%@ld_switch_shared@%$ld_switch_shared%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14338 s%@start_files@%$start_files%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14339 s%@ld@%$ld%g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14340 s%@lib_gcc@%$lib_gcc%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14341 s%@RANLIB@%$RANLIB%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14342 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
392
1f50e6fe4f3f Import from CVS: tag r21-2-11
cvs
parents: 388
diff changeset
14343 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14344 s%@INSTALL_DATA@%$INSTALL_DATA%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14345 s%@YACC@%$YACC%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14346 s%@SET_MAKE@%$SET_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14347 s%@X_CFLAGS@%$X_CFLAGS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14348 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14349 s%@X_LIBS@%$X_LIBS%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14350 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
14351 s%@install_pp@%$install_pp%g
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
14352 s%@libs_xauth@%$libs_xauth%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14353 s%@dnd_objs@%$dnd_objs%g
157
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
14354 s%@lwlib_objs@%$lwlib_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14355 s%@ALLOCA@%$ALLOCA%g
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14356 s%@have_esd_config@%$have_esd_config%g
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14357 s%@dll_ld@%$dll_ld%g
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents: 263
diff changeset
14358 s%@dll_cflags@%$dll_cflags%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14359 s%@dll_ldflags@%$dll_ldflags%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14360 s%@dll_post@%$dll_post%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14361 s%@dll_ldo@%$dll_ldo%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14362 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14363 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
167
85ec50267440 Import from CVS: tag r20-3b10
cvs
parents: 165
diff changeset
14364 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14365 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14366 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
280
7df0dd720c89 Import from CVS: tag r21-0b38
cvs
parents: 278
diff changeset
14367 s%@PROGNAME@%$PROGNAME%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14368 s%@version@%$version%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14369 s%@configuration@%$configuration%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14370 s%@canonical@%$canonical%g
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14371 s%@inststaticdir@%$inststaticdir%g
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14372 s%@instvardir@%$instvardir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14373 s%@srcdir@%$srcdir%g
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
14374 s%@pkgdir@%$pkgdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14375 s%@statedir@%$statedir%g
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14376 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
14377 s%@PREFIX@%$PREFIX%g
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14378 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
14379 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14380 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14381 s%@INFODIR@%$INFODIR%g
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 201
diff changeset
14382 s%@infopath@%$infopath%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14383 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14384 s%@INFOPATH@%$INFOPATH%g
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
14385 s%@package_path@%$package_path%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14386 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14387 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14388 s%@lispdir@%$lispdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14389 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14390 s%@LISPDIR@%$LISPDIR%g
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14391 s%@moduledir@%$moduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14392 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14393 s%@MODULEDIR@%$MODULEDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14394 s%@sitelispdir@%$sitelispdir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14395 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14396 s%@SITELISPDIR@%$SITELISPDIR%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14397 s%@sitemoduledir@%$sitemoduledir%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14398 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
14399 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14400 s%@etcdir@%$etcdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14401 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14402 s%@ETCDIR@%$ETCDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14403 s%@lockdir@%$lockdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14404 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14405 s%@LOCKDIR@%$LOCKDIR%g
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14406 s%@docdir@%$docdir%g
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14407 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 394
diff changeset
14408 s%@DOCDIR@%$DOCDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14409 s%@archlibdir@%$archlibdir%g
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14410 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
14411 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14412 s%@bitmapdir@%$bitmapdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14413 s%@extra_objs@%$extra_objs%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14414 s%@machfile@%$machfile%g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14415 s%@opsysfile@%$opsysfile%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14416 s%@c_switch_general@%$c_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14417 s%@c_switch_window_system@%$c_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14418 s%@c_switch_all@%$c_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14419 s%@ld_switch_general@%$ld_switch_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14420 s%@ld_switch_window_system@%$ld_switch_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14421 s%@ld_switch_all@%$ld_switch_all%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14422 s%@ld_libs_general@%$ld_libs_general%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14423 s%@ld_libs_window_system@%$ld_libs_window_system%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14424 s%@ld_libs_all@%$ld_libs_all%g
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
14425 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14426 s%@native_sound_lib@%$native_sound_lib%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14427 s%@sound_cflags@%$sound_cflags%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14428 s%@dynodump_arch@%$dynodump_arch%g
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14429 s%@XEMACS_CC@%$XEMACS_CC%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14430 s%@internal_makefile_list@%$internal_makefile_list%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14431
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14432 CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14433 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14434
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14435 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14436
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14437 # Split the substitutions into bite-sized pieces for seds with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14438 # small command number limits, like on Digital OSF/1 and HP-UX.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14439 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
14440 ac_file=1 # Number of current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14441 ac_beg=1 # First line for current file.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14442 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
14443 ac_more_lines=:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14444 ac_sed_cmds=""
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14445 while $ac_more_lines; do
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14446 if test $ac_beg -gt 1; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14447 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
14448 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14449 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14450 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14451 if test ! -s conftest.s$ac_file; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14452 ac_more_lines=false
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14453 rm -f conftest.s$ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14454 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14455 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14456 ac_sed_cmds="sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14457 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14458 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14459 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14460 ac_file=`expr $ac_file + 1`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14461 ac_beg=$ac_end
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14462 ac_end=`expr $ac_end + $ac_max_sed_cmds`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14463 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14464 done
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14465 if test -z "$ac_sed_cmds"; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14466 ac_sed_cmds=cat
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14467 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14468 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14469
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14470 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14471
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
14472 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14473 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14474 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14475 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
14476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14477 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14478 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14479 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14480 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14481 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14482
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14483 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14484
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14485 # 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
14486 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14487 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14488 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14489 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14490 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14491 # A "../" for each directory in $ac_dir_suffix.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14492 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14493 else
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14494 ac_dir_suffix= ac_dots=
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14495 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14496
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14497 case "$ac_given_srcdir" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14498 .) srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14499 if test -z "$ac_dots"; then top_srcdir=.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14500 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14501 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14502 *) # Relative path.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14503 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14504 top_srcdir="$ac_dots$ac_given_srcdir" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14505 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14506
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14507 case "$ac_given_INSTALL" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14508 [/$]*) INSTALL="$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14509 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14510 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14511
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14512 echo creating "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14513 rm -f "$ac_file"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14514 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
14515 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14516 *Makefile*) ac_comsub="1i\\
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14517 # $configure_input" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14518 *) ac_comsub= ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14519 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14520
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14521 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
14522 sed -e "$ac_comsub
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14523 s%@configure_input@%$configure_input%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14524 s%@srcdir@%$srcdir%g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14525 s%@top_srcdir@%$top_srcdir%g
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14526 s%@INSTALL@%$INSTALL%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14527 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14528 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14529 rm -f conftest.s*
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14530
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14531 # 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
14532 # 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
14533 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14534 # ac_d sets the value in "#define NAME VALUE" lines.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14535 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14536 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14537 ac_dC='\3'
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14538 ac_dD='%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14539 # 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
14540 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14541 ac_uB='\([ ]\)%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14542 ac_uC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14543 ac_uD='\4%g'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14544 # 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
14545 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14546 ac_eB='$%\1#\2define\3'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14547 ac_eC=' '
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14548 ac_eD='%g'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14549
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14550 if test "${CONFIG_HEADERS+set}" != set; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14551 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14552 cat >> $CONFIG_STATUS <<EOF
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
14553 CONFIG_HEADERS="src/config.h lwlib/config.h"
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14554 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14555 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14556 fi
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14557 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
14558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14559 case "$ac_file" in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14560 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14561 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14562 *) ac_file_in="${ac_file}.in" ;;
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14563 esac
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14564
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14565 echo creating $ac_file
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14566
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14567 rm -f conftest.frag conftest.in conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14568 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
14569 cat $ac_file_inputs > conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14570
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14571 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14572
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14573 # Transform confdefs.h into a sed script conftest.vals that substitutes
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14574 # 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
14575 # 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
14576 # Protect against being in an unquoted here document in config.status.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14577 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14578 cat > conftest.hdr <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14579 s/[\\&%]/\\&/g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14580 s%[\\$`]%\\&%g
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14581 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
14582 s%ac_d%ac_u%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14583 s%ac_u%ac_e%gp
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14584 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14585 sed -n -f conftest.hdr confdefs.h > conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14586 rm -f conftest.hdr
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14587
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14588 # This sed command replaces #undef with comments. This is necessary, for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14589 # example, in the case of _POSIX_SOURCE, which is predefined and required
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14590 # on some systems where configure will not decide to define it.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14591 cat >> conftest.vals <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14592 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14593 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14594
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14595 # Break up conftest.vals because some shells have a limit on
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14596 # the size of here documents, and old seds have small limits too.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14597
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14598 rm -f conftest.tail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14599 while :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14600 do
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14601 ac_lines=`grep -c . conftest.vals`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14602 # 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
14603 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
14604 # Write a limited-size here document to conftest.frag.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14605 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14606 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14607 echo 'CEOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14608 sed -f conftest.frag conftest.in > conftest.out
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14609 rm -f conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14610 mv conftest.out conftest.in
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14611 ' >> $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14612 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14613 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14614 mv conftest.tail conftest.vals
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14615 done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14616 rm -f conftest.vals
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14617
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14618 cat >> $CONFIG_STATUS <<\EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14619 rm -f conftest.frag conftest.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14620 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14621 cat conftest.in >> conftest.h
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14622 rm -f conftest.in
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14623 if cmp -s $ac_file conftest.h 2>/dev/null; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14624 echo "$ac_file is unchanged"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14625 rm -f conftest.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14626 else
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14627 # 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
14628 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14629 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14630 # The file is in a subdirectory.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14631 test ! -d "$ac_dir" && mkdir "$ac_dir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14632 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14633 rm -f $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14634 mv conftest.h $ac_file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14635 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14636 fi; done
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14637
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14638 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14639 cat >> $CONFIG_STATUS <<EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14640 CPP="$CPP"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14641 top_srcdir="$srcdir"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14642 MAKE_SUBDIR="$MAKE_SUBDIR"
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14643
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14644 EOF
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14645 cat >> $CONFIG_STATUS <<\EOF
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14646 for dir in . $MAKE_SUBDIR; do
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
14647 (
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14648 cd $dir
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14649 rm -f junk.c
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14650 < Makefile.in \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
14651 sed -e '/^# Generated/d' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14652 -e 's%/\*\*/#.*%%' \
165
5a88923fcbfe Import from CVS: tag r20-3b9
cvs
parents: 163
diff changeset
14653 -e 's/^ *# */#/' \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14654 -e '/^##/d' \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14655 -e '/^#/ {
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14656 p
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14657 d
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14658 }' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14659 -e '/./ {
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14660 s/\([\"]\)/\\\1/g
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14661 s/^/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14662 s/$/"/
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14663 }' > junk.c;
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14664
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14665
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14666
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14667 echo creating $dir/Makefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14668 $CPP -I. -I${top_srcdir}/src junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14669 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14670 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14671 -e 's/^ / /' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14672 | sed -n -e '/^..*$/p' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14673 | sed '/^\"/ {
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14674 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14675 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14676 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14677 }' > Makefile.new
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14678 chmod 444 Makefile.new
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14679 mv -f Makefile.new Makefile
380
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14680
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14681 echo creating $dir/GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14682 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14683 | sed -e 's/^\#.*//' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14684 -e 's/^[ ][ ]*$//'\
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14685 -e 's/^ / /' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14686 | sed -n -e '/^..*$/p' \
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14687 | sed '/^\"/ {
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14688 s/\\\([\"]\)/\1/g
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14689 s/^[ ]*\"//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14690 s/\"[ ]*$//
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14691 }' > Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14692 chmod 444 Makefile.new
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14693 mv -f Makefile.new GNUmakefile
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14694
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14695 rm -f junk.c
8626e4521993 Import from CVS: tag r21-2-5
cvs
parents: 377
diff changeset
14696 )
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14697 done
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14698
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14699 sed < config.status >> lib-src/config.values \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14700 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14701 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14702 -e 's/^\([^ ]*\) $/\1 ""/' \
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
14703 -e 's/ 1$/ t/'
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
14704
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
14705
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14706 exit 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14707 EOF
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14708 chmod +x $CONFIG_STATUS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14709 rm -fr confdefs* $ac_clean_files
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 144
diff changeset
14710 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1