|
149
|
1 #! /bin/sh
|
|
|
2
|
|
|
3 #### Configuration script for XEmacs. Largely divergent from FSF.
|
|
|
4 #### Guess values for system-dependent variables and create Makefiles.
|
|
|
5 #### Generated automatically using autoconf version 2.12
|
|
|
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
0
|
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
|
|
149
|
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
|
|
0
|
9 #### Copyright (C) 1995, 1996 Ben Wing.
|
|
|
10
|
|
|
11 ### Don't edit this script!
|
|
|
12 ### This script was automatically generated by the `autoconf' program
|
|
|
13 ### from the file `./configure.in'.
|
|
|
14 ### To rebuild it, execute the command
|
|
|
15 ### autoconf
|
|
149
|
16 ### in the this directory. You must have autoconf version 2.12 or later.
|
|
0
|
17
|
|
|
18 ### This file is part of XEmacs.
|
|
|
19
|
|
|
20 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
|
21 ### under the terms of the GNU General Public License as published by
|
|
|
22 ### the Free Software Foundation; either version 2, or (at your
|
|
|
23 ### option) any later version.
|
|
|
24
|
|
|
25 ### XEmacs is distributed in the hope that it will be useful, but
|
|
|
26 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
27 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
28 ### General Public License for more details.
|
|
|
29
|
|
|
30 ### You should have received a copy of the GNU General Public License
|
|
|
31 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
|
32 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
33 ### 02111-1307, USA.
|
|
|
34
|
|
149
|
35 ### For usage, run `./configure --help'
|
|
|
36 ### For more detailed information on building and installing XEmacs,
|
|
|
37 ### read the file `INSTALL'.
|
|
0
|
38 ###
|
|
|
39 ### If configure succeeds, it leaves its status in config.status.
|
|
149
|
40 ### A log of configuration tests can be found in config.log.
|
|
0
|
41 ### If configure fails after disturbing the status quo,
|
|
|
42 ### config.status is removed.
|
|
|
43
|
|
149
|
44 ac_help="$ac_help
|
|
|
45 --with-x use the X Window System"
|
|
|
46
|
|
284
|
47
|
|
|
48
|
|
|
49 if test -n "$ZSH_VERSION"; then
|
|
|
50 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
|
|
|
51 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
|
|
|
52 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
|
|
|
53 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
|
|
|
54 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
|
55 elif test -n "$BASH_VERSION"; then
|
|
|
56 set -o posix
|
|
|
57 unset CDPATH
|
|
|
58 else
|
|
|
59 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
|
60 fi
|
|
|
61
|
|
149
|
62 exec_prefix=NONE
|
|
|
63 host=NONE
|
|
|
64 no_create=
|
|
|
65 nonopt=NONE
|
|
|
66 no_recursion=
|
|
|
67 prefix=NONE
|
|
|
68 program_prefix=NONE
|
|
|
69 program_suffix=NONE
|
|
|
70 program_transform_name=s,x,x,
|
|
|
71 silent=
|
|
|
72 site=
|
|
|
73 srcdir=
|
|
|
74 target=NONE
|
|
|
75 verbose=
|
|
|
76 x_includes=NONE
|
|
|
77 x_libraries=NONE
|
|
153
|
78
|
|
149
|
79 bindir='${exec_prefix}/bin'
|
|
|
80 sbindir='${exec_prefix}/sbin'
|
|
|
81 libexecdir='${exec_prefix}/libexec'
|
|
|
82 datadir='${prefix}/share'
|
|
|
83 sysconfdir='${prefix}/etc'
|
|
|
84 sharedstatedir='${prefix}/com'
|
|
|
85 localstatedir='${prefix}/var'
|
|
|
86 libdir='${{exec_prefix}}/lib'
|
|
|
87 includedir='${prefix}/include'
|
|
|
88 oldincludedir='/usr/include'
|
|
|
89 infodir='${prefix}/info'
|
|
|
90 mandir='${prefix}/man'
|
|
|
91
|
|
|
92 subdirs=
|
|
|
93 MFLAGS= MAKEFLAGS=
|
|
|
94 ac_max_here_lines=12
|
|
|
95
|
|
|
96 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
97
|
|
|
98 # File descriptor usage:
|
|
|
99 # 0 standard input
|
|
|
100 # 1 file creation
|
|
|
101 # 2 errors and warnings
|
|
|
102 # 3 some systems may open it to /dev/tty
|
|
|
103 # 4 used on the Kubota Titan
|
|
|
104 # 6 checking for... messages and results
|
|
|
105 # 5 compiler messages saved in config.log
|
|
|
106 if test "$silent" = yes; then
|
|
|
107 exec 6>/dev/null
|
|
|
108 else
|
|
|
109 exec 6>&1
|
|
|
110 fi
|
|
|
111 exec 5>./config.log
|
|
|
112
|
|
|
113 echo "\
|
|
|
114 This file contains any messages produced by compilers while
|
|
|
115 running configure, to aid debugging if configure makes a mistake.
|
|
|
116 " 1>&5
|
|
|
117
|
|
|
118 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
|
119 # Also quote any args containing shell metacharacters.
|
|
|
120 ac_configure_args=
|
|
|
121 for ac_arg
|
|
|
122 do
|
|
|
123 case "$ac_arg" in
|
|
|
124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
125 | --no-cr | --no-c) ;;
|
|
|
126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
|
128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
|
129 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
|
130 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
|
131 esac
|
|
|
132 done
|
|
|
133
|
|
|
134 # NLS nuisances.
|
|
|
135 # Only set these to C if already set. These must not be set unconditionally
|
|
|
136 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
|
137 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
|
138 # Non-C LC_CTYPE values break the ctype check.
|
|
|
139 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
|
140 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
|
141 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
|
142 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
|
143
|
|
|
144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
|
145 rm -rf conftest* confdefs.h
|
|
|
146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
|
147 echo > confdefs.h
|
|
|
148
|
|
|
149 # A filename unique to this package, relative to the directory that
|
|
|
150 # configure is in, which we can look for to find out if srcdir is correct.
|
|
|
151 ac_unique_file=src/lisp.h
|
|
|
152
|
|
|
153 # Find the source files, if location was not specified.
|
|
|
154 if test -z "$srcdir"; then
|
|
|
155 ac_srcdir_defaulted=yes
|
|
|
156 # Try the directory containing this script, then its parent.
|
|
|
157 ac_prog=$0
|
|
|
158 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
|
159 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
|
160 srcdir=$ac_confdir
|
|
|
161 if test ! -r $srcdir/$ac_unique_file; then
|
|
|
162 srcdir=..
|
|
|
163 fi
|
|
|
164 else
|
|
|
165 ac_srcdir_defaulted=no
|
|
|
166 fi
|
|
|
167 if test ! -r $srcdir/$ac_unique_file; then
|
|
|
168 if test "$ac_srcdir_defaulted" = yes; then
|
|
|
169 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
|
170 else
|
|
|
171 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
|
172 fi
|
|
|
173 fi
|
|
|
174 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
175
|
|
|
176 # Prefer explicitly selected file to automatically selected ones.
|
|
|
177 if test -z "$CONFIG_SITE"; then
|
|
|
178 if test "x$prefix" != xNONE; then
|
|
|
179 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
|
180 else
|
|
|
181 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
|
182 fi
|
|
|
183 fi
|
|
|
184 for ac_site_file in $CONFIG_SITE; do
|
|
|
185 if test -r "$ac_site_file"; then
|
|
|
186 echo "loading site script $ac_site_file"
|
|
|
187 . "$ac_site_file"
|
|
|
188 fi
|
|
|
189 done
|
|
|
190
|
|
|
191
|
|
|
192 ac_ext=c
|
|
151
|
193 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
194 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
195 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
196 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
199 cross_compiling=no
|
|
|
200
|
|
|
201 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
|
202 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
|
203 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
|
204 ac_n= ac_c='
|
|
|
205 ' ac_t=' '
|
|
|
206 else
|
|
|
207 ac_n=-n ac_c= ac_t=
|
|
|
208 fi
|
|
|
209 else
|
|
|
210 ac_n= ac_c='\c' ac_t=
|
|
|
211 fi
|
|
|
212
|
|
|
213
|
|
0
|
214 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
|
215
|
|
149
|
216
|
|
151
|
217 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
|
167
|
218 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
|
219
|
|
0
|
220 prefix='/usr/local'
|
|
|
221 exec_prefix='${prefix}'
|
|
|
222 bindir='${exec_prefix}/bin'
|
|
|
223 datadir='${prefix}/lib'
|
|
|
224 statedir='${prefix}/lib'
|
|
|
225 libdir='${exec_prefix}/lib'
|
|
|
226 mandir='${prefix}/man/man1'
|
|
280
|
227 infodir='${datadir}/${PROGNAME}-${version}/info'
|
|
274
|
228 infopath=''
|
|
276
|
229 install_pp=''
|
|
280
|
230 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
|
|
|
231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
|
|
274
|
232 package_path=''
|
|
280
|
233 etcdir='${datadir}/${PROGNAME}-${version}/etc'
|
|
|
234 lockdir='${statedir}/${PROGNAME}/lock'
|
|
|
235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}'
|
|
269
|
236 with_site_lisp='no'
|
|
0
|
237 with_menubars=''
|
|
|
238 with_scrollbars=''
|
|
|
239 with_dialogs=''
|
|
259
|
240 with_file_coding=''
|
|
0
|
241 puresize=''
|
|
272
|
242 cpp='' cppflags='' libs='' ldflags=''
|
|
0
|
243 dynamic=''
|
|
|
244 with_x11=''
|
|
263
|
245 with_msw=''
|
|
0
|
246 rel_alloc='default'
|
|
181
|
247 with_system_malloc='default'
|
|
261
|
248 with_dlmalloc='default'
|
|
0
|
249 native_sound_lib=''
|
|
153
|
250 use_assertions="yes"
|
|
|
251 with_toolbars=""
|
|
157
|
252 with_tty=""
|
|
153
|
253 use_union_type="no"
|
|
|
254 with_dnet=""
|
|
0
|
255
|
|
149
|
256
|
|
|
257
|
|
|
258
|
|
0
|
259 arguments="$@"
|
|
|
260
|
|
120
|
261 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
|
0
|
262 quoted_arguments=
|
|
|
263 for i in "$@"; do
|
|
120
|
264 case "$i" in
|
|
|
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
266 | --no-cr | --no-c) ;;
|
|
153
|
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
120
|
269 *)
|
|
159
|
270 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
|
120
|
271 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
|
272 esac
|
|
0
|
273 done
|
|
|
274
|
|
70
|
275 while test $# != 0; do
|
|
0
|
276 arg="$1"; shift
|
|
149
|
277 case "$arg" in
|
|
157
|
278 --no-create|--no-recursion) ;;
|
|
149
|
279 -* )
|
|
|
280 case "$arg" in
|
|
0
|
281 -*=*)
|
|
149
|
282 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
|
283 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
|
0
|
284 valomitted=no
|
|
|
285 ;;
|
|
149
|
286 -*)
|
|
|
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
|
243
|
288 val="yes" valomitted=yes
|
|
0
|
289 ;;
|
|
|
290 esac
|
|
|
291
|
|
274
|
292 optname="$opt"
|
|
|
293 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
|
294
|
|
243
|
295 case "${valomitted}-${opt}" in yes-without_* )
|
|
|
296 opt=`echo $opt | sed 's/without/with/'`
|
|
|
297 valomitted="no" val="no" ;;
|
|
|
298 esac
|
|
|
299
|
|
149
|
300 case "$opt" in
|
|
|
301
|
|
|
302 run_in_place | \
|
|
269
|
303 with_site_lisp | \
|
|
70
|
304 with_x | \
|
|
|
305 with_x11 | \
|
|
263
|
306 with_msw | \
|
|
70
|
307 with_gcc | \
|
|
|
308 with_gnu_make | \
|
|
|
309 dynamic | \
|
|
149
|
310 with_ncurses | \
|
|
|
311 with_dnet | \
|
|
|
312 with_socks | \
|
|
282
|
313 with_dragndrop | \
|
|
70
|
314 with_cde | \
|
|
|
315 with_offix | \
|
|
149
|
316 with_gpm | \
|
|
|
317 with_xpm | \
|
|
|
318 with_xface | \
|
|
251
|
319 with_gif | \
|
|
|
320 with_jpeg | \
|
|
|
321 with_png | \
|
|
|
322 with_tiff | \
|
|
179
|
323 with_session | \
|
|
70
|
324 with_xmu | \
|
|
149
|
325 with_quantify | \
|
|
70
|
326 with_toolbars | \
|
|
|
327 with_tty | \
|
|
215
|
328 with_xfs | \
|
|
70
|
329 with_i18n3 | \
|
|
|
330 with_mule | \
|
|
259
|
331 with_file_coding | \
|
|
70
|
332 with_canna | \
|
|
|
333 with_wnn | \
|
|
98
|
334 with_wnn6 | \
|
|
149
|
335 with_workshop | \
|
|
70
|
336 with_sparcworks | \
|
|
|
337 with_tooltalk | \
|
|
259
|
338 with_ldap | \
|
|
118
|
339 with_pop | \
|
|
|
340 with_kerberos | \
|
|
|
341 with_hesiod | \
|
|
136
|
342 with_dnet | \
|
|
280
|
343 with_infodock | \
|
|
70
|
344 external_widget | \
|
|
120
|
345 verbose | \
|
|
|
346 extra_verbose | \
|
|
70
|
347 const_is_losing | \
|
|
|
348 usage_tracking | \
|
|
|
349 use_union_type | \
|
|
|
350 debug | \
|
|
|
351 use_assertions | \
|
|
272
|
352 use_minimal_tagbits | \
|
|
|
353 use_indexed_lrecord_implementation | \
|
|
|
354 gung_ho | \
|
|
|
355 use_assertions | \
|
|
70
|
356 memory_usage_stats | \
|
|
173
|
357 with_clash_detection | \
|
|
245
|
358 with_shlib | \
|
|
149
|
359 no_doc_file )
|
|
|
360 case "$val" in
|
|
0
|
361 y | ye | yes ) val=yes ;;
|
|
|
362 n | no ) val=no ;;
|
|
149
|
363 * ) (echo "$progname: Usage error:"
|
|
|
364 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
|
365 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
366 esac
|
|
149
|
367 eval "$opt=\"$val\"" ;;
|
|
|
368
|
|
|
369
|
|
153
|
370 srcdir | \
|
|
70
|
371 compiler | \
|
|
157
|
372 cflags | \
|
|
272
|
373 cpp | \
|
|
|
374 cppflags | \
|
|
|
375 libs | \
|
|
|
376 ldflags | \
|
|
70
|
377 puresize | \
|
|
153
|
378 cache_file | \
|
|
120
|
379 native_sound_lib | \
|
|
267
|
380 site_lisp | \
|
|
70
|
381 x_includes | \
|
|
|
382 x_libraries | \
|
|
|
383 site_includes | \
|
|
|
384 site_libraries | \
|
|
209
|
385 site_prefixes | \
|
|
149
|
386 site_runtime_libraries )
|
|
|
387 if test "$valomitted" = "yes" ; then
|
|
|
388 if test "$#" = 0 ; then
|
|
|
389 (echo "$progname: Usage error:"
|
|
|
390 echo " " "The \`--$optname' option requires a value."
|
|
|
391 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
0
|
392 fi
|
|
|
393 val="$1"; shift
|
|
|
394 fi
|
|
149
|
395 eval "$opt=\"$val\""
|
|
0
|
396 ;;
|
|
|
397
|
|
149
|
398 rel_alloc | \
|
|
261
|
399 with_dlmalloc | \
|
|
181
|
400 with_debug_malloc | use_debug_malloc | \
|
|
|
401 with_system_malloc | use_system_malloc )
|
|
149
|
402 case "$val" in
|
|
0
|
403 y | ye | yes ) val=yes ;;
|
|
|
404 n | no ) val=no ;;
|
|
181
|
405 d | de | def | defa | defau | defaul | default ) val=default ;;
|
|
149
|
406 * ) (echo "$progname: Usage error:"
|
|
|
407 echo " " "The \`--$optname' option requires one of these values:
|
|
120
|
408 \`yes', \`no', or \`default'."
|
|
149
|
409 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
410 esac
|
|
265
|
411 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
|
149
|
412 eval "$opt=\"$val\""
|
|
0
|
413 ;;
|
|
|
414
|
|
149
|
415 "with_database" )
|
|
120
|
416 with_database_berkdb=no
|
|
|
417 with_database_dbm=no
|
|
|
418 with_database_gnudbm=no
|
|
300
|
419 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
149
|
420 case "$x" in
|
|
151
|
421 no ) ;;
|
|
120
|
422 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
|
423 d | db | dbm ) with_database_dbm=yes ;;
|
|
70
|
424 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
|
|
149
|
425 * ) (echo "$progname: Usage error:"
|
|
|
426 echo " " "The \`--$optname' option value
|
|
120
|
427 must be either \`no' or a comma-separated list
|
|
|
428 of one or more of \`berkdb', \`dbm', or \`gnudbm'."
|
|
149
|
429 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
120
|
430 esac
|
|
|
431 done
|
|
149
|
432 if test "$with_database_dbm" = "yes" -a \
|
|
151
|
433 "$with_database_gnudbm" = "yes"; then
|
|
149
|
434 (echo "$progname: Usage error:"
|
|
120
|
435 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
|
149
|
436 with the \`--$optname' option."
|
|
|
437 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
438 fi
|
|
70
|
439 ;;
|
|
0
|
440
|
|
149
|
441 "with_sound" )
|
|
|
442 case "$val" in
|
|
0
|
443 y | ye | yes ) val=native ;;
|
|
|
444 n | no | non | none ) val=no;;
|
|
|
445 na | nat | nati | nativ | native ) val=native ;;
|
|
149
|
446 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
|
|
0
|
447 b | bo | bot | both ) val=both;;
|
|
149
|
448 * ) (echo "$progname: Usage error:"
|
|
|
449 echo " " "The \`--$optname' option must have one of these values:
|
|
120
|
450 \`native', \`nas', \`both', or \`none'."
|
|
149
|
451 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
2
|
452 esac
|
|
149
|
453 eval "$opt=\"$val\""
|
|
0
|
454 ;;
|
|
|
455
|
|
149
|
456 "with_xim" )
|
|
|
457 case "$val" in
|
|
|
458 y | ye | yes ) val=yes ;;
|
|
|
459 n | no | non | none ) val=no ;;
|
|
|
460 x | xl | xli | xlib ) val=xlib ;;
|
|
|
461 m | mo | mot | moti | motif ) val=motif ;;
|
|
|
462 * ) (echo "$progname: Usage error:"
|
|
|
463 echo " " "The \`--$optname' option must have one of these values:
|
|
|
464 \`motif', \`xlib', \`yes', or \`no'."
|
|
|
465 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
466 esac
|
|
149
|
467 eval "$opt=\"$val\""
|
|
0
|
468 ;;
|
|
|
469
|
|
177
|
470 "with_xfs" )
|
|
|
471 case "$val" in
|
|
187
|
472 y | ye | yes ) val=yes ;;
|
|
|
473 n | no | non | none ) val=no ;;
|
|
177
|
474 * ) (echo "$progname: Usage error:"
|
|
|
475 echo " " "The \`--$optname' option must have one of these values:
|
|
|
476 \`yes', or \`no'."
|
|
|
477 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
478 esac
|
|
|
479 eval "$opt=\"$val\""
|
|
|
480 ;;
|
|
|
481
|
|
149
|
482 "mail_locking" )
|
|
|
483 case "$val" in
|
|
|
484 lockf ) val=lockf ;;
|
|
|
485 flock ) val=flock ;;
|
|
151
|
486 file ) val=file ;;
|
|
149
|
487 * ) (echo "$progname: Usage error:"
|
|
|
488 echo " " "The \`--$optname' option must have one of these values:
|
|
|
489 \`lockf', \`flock', or \`file'."
|
|
|
490 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
|
491 esac
|
|
|
492 eval "$opt=\"$val\""
|
|
|
493 ;;
|
|
|
494
|
|
|
495 "error_checking" )
|
|
|
496
|
|
267
|
497 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
149
|
498 case "$x" in
|
|
|
499 n | no | non | none ) new_default=no ;;
|
|
0
|
500 a | al | all ) new_default=yes ;;
|
|
|
501
|
|
|
502 extents ) error_check_extents=yes ;;
|
|
|
503 noextents ) error_check_extents=no ;;
|
|
|
504
|
|
|
505 typecheck ) error_check_typecheck=yes ;;
|
|
|
506 notypecheck ) error_check_typecheck=no ;;
|
|
|
507
|
|
|
508 bufpos ) error_check_bufpos=yes ;;
|
|
|
509 nobufpos ) error_check_bufpos=no ;;
|
|
|
510
|
|
|
511 gc ) error_check_gc=yes ;;
|
|
|
512 nogc ) error_check_gc=no ;;
|
|
|
513
|
|
|
514 malloc ) error_check_malloc=yes ;;
|
|
|
515 nomalloc ) error_check_malloc=no ;;
|
|
149
|
516
|
|
0
|
517 * ) bogus_error_check=yes ;;
|
|
|
518 esac
|
|
70
|
519 if test "$bogus_error_check" -o \
|
|
|
520 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
|
267
|
521 if test "$error_check_default" = yes ; then
|
|
120
|
522 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
|
|
0
|
523 else
|
|
120
|
524 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
|
|
0
|
525 fi
|
|
149
|
526 (echo "$progname: Usage error:"
|
|
|
527 echo " " "Valid types for the \`--$optname' option are:
|
|
120
|
528 $types."
|
|
149
|
529 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
151
|
530 elif test -n "$new_default" ; then
|
|
0
|
531 error_check_extents=$new_default
|
|
|
532 error_check_typecheck=$new_default
|
|
|
533 error_check_bufpos=$new_default
|
|
|
534 error_check_gc=$new_default
|
|
|
535 error_check_malloc=$new_default
|
|
|
536 new_default= # reset this
|
|
|
537 fi
|
|
|
538 echeck_notfirst=true
|
|
|
539 done
|
|
|
540 ;;
|
|
|
541
|
|
149
|
542
|
|
|
543 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
|
203
|
544 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
|
|
278
|
545 archlibdir | docdir | package_path )
|
|
151
|
546 if test "$valomitted" = "yes"; then
|
|
|
547 if test "$#" = 0; then
|
|
149
|
548 (echo "$progname: Usage error:"
|
|
|
549 echo " " "The \`--$optname' option requires a value."
|
|
|
550 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
|
120
|
551 fi
|
|
|
552 val="$1"; shift
|
|
0
|
553 fi
|
|
149
|
554 eval "$opt=\"$val\""
|
|
|
555
|
|
278
|
556 case "$opt" in
|
|
274
|
557 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
558 Defining LISPDIR_USER_DEFINED
|
|
|
559 EOF
|
|
|
560 cat >> confdefs.h <<\EOF
|
|
|
561 #define LISPDIR_USER_DEFINED 1
|
|
|
562 EOF
|
|
|
563 }
|
|
|
564 ;;
|
|
|
565 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
566 Defining ETCDIR_USER_DEFINED
|
|
|
567 EOF
|
|
|
568 cat >> confdefs.h <<\EOF
|
|
|
569 #define ETCDIR_USER_DEFINED 1
|
|
|
570 EOF
|
|
|
571 }
|
|
|
572 ;;
|
|
|
573 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
574 Defining INFODIR_USER_DEFINED
|
|
|
575 EOF
|
|
|
576 cat >> confdefs.h <<\EOF
|
|
|
577 #define INFODIR_USER_DEFINED 1
|
|
|
578 EOF
|
|
|
579 }
|
|
|
580 ;;
|
|
|
581 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
582 Defining INFOPATH_USER_DEFINED
|
|
|
583 EOF
|
|
|
584 cat >> confdefs.h <<\EOF
|
|
|
585 #define INFOPATH_USER_DEFINED 1
|
|
|
586 EOF
|
|
|
587 }
|
|
|
588 ;;
|
|
|
589 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
590 Defining PACKAGE_PATH_USER_DEFINED
|
|
|
591 EOF
|
|
|
592 cat >> confdefs.h <<\EOF
|
|
|
593 #define PACKAGE_PATH_USER_DEFINED 1
|
|
|
594 EOF
|
|
|
595 }
|
|
|
596 ;;
|
|
278
|
597 datadir )
|
|
|
598 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
599 Defining INFODIR_USER_DEFINED
|
|
|
600 EOF
|
|
|
601 cat >> confdefs.h <<\EOF
|
|
|
602 #define INFODIR_USER_DEFINED 1
|
|
|
603 EOF
|
|
|
604 }
|
|
|
605
|
|
|
606 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
607 Defining LISPDIR_USER_DEFINED
|
|
|
608 EOF
|
|
|
609 cat >> confdefs.h <<\EOF
|
|
|
610 #define LISPDIR_USER_DEFINED 1
|
|
|
611 EOF
|
|
|
612 }
|
|
|
613
|
|
|
614 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
274
|
615 Defining ETCDIR_USER_DEFINED
|
|
|
616 EOF
|
|
|
617 cat >> confdefs.h <<\EOF
|
|
|
618 #define ETCDIR_USER_DEFINED 1
|
|
|
619 EOF
|
|
|
620 }
|
|
|
621 ;;
|
|
|
622 statedir | lockdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
623 Defining LOCKDIR_USER_DEFINED
|
|
|
624 EOF
|
|
|
625 cat >> confdefs.h <<\EOF
|
|
|
626 #define LOCKDIR_USER_DEFINED 1
|
|
|
627 EOF
|
|
|
628 }
|
|
|
629 ;;
|
|
|
630 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
631 Defining ARCHLIBDIR_USER_DEFINED
|
|
|
632 EOF
|
|
|
633 cat >> confdefs.h <<\EOF
|
|
|
634 #define ARCHLIBDIR_USER_DEFINED 1
|
|
|
635 EOF
|
|
|
636 }
|
|
|
637 ;;
|
|
149
|
638 esac
|
|
0
|
639 ;;
|
|
|
640
|
|
149
|
641 "no_create" ) ;;
|
|
|
642
|
|
215
|
643 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
|
149
|
644
|
|
|
645 "with_menubars" | "with_scrollbars" | "with_dialogs" )
|
|
|
646 case "$val" in
|
|
0
|
647 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
|
648 m | mo | mot | moti | motif ) val=motif ;;
|
|
82
|
649 athena3d | athena-3d ) val=athena3d ;;
|
|
0
|
650 a | at | ath | athe | athen | athena ) val=athena ;;
|
|
|
651 n | no | non | none ) val=no ;;
|
|
149
|
652 * ) (echo "$progname: Usage error:"
|
|
|
653 echo " " "The \`--$optname' option must have one of these values:
|
|
|
654 \`lucid', \`motif', \`athena', \`athena3d', or \`no'."
|
|
|
655 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
656 esac
|
|
149
|
657 eval "$opt=\"$val\""
|
|
0
|
658 ;;
|
|
|
659
|
|
149
|
660 * ) (echo "$progname: Usage error:"
|
|
|
661 echo " " "Unrecognized option: $arg"
|
|
|
662 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
663
|
|
|
664 esac
|
|
|
665 ;;
|
|
|
666
|
|
243
|
667 *-*-*) configuration="$arg" ;;
|
|
|
668
|
|
|
669 *) (echo "$progname: Usage error:"
|
|
|
670 echo " " "Unrecognized argument: $arg"
|
|
|
671 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
0
|
672
|
|
|
673 esac
|
|
|
674 done
|
|
|
675
|
|
149
|
676
|
|
272
|
677 test -n "$cpp" && CPP="$cpp"
|
|
|
678 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
|
679 test -n "$libs" && LIBS="$libs"
|
|
|
680 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
|
681
|
|
0
|
682 eval set x "$quoted_arguments"; shift
|
|
|
683
|
|
149
|
684 test "$extra_verbose" = "yes" && verbose=yes
|
|
|
685
|
|
187
|
686 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
|
687 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
209
|
688 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
187
|
689 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
149
|
690
|
|
|
691 test -n "$with_x" && with_x11="$with_x"
|
|
|
692
|
|
272
|
693
|
|
|
694 if test -n "$gung_ho"; then
|
|
|
695 test -z "$use_minimal_tagbits" && use_minimal_tagbits="$gung_ho"
|
|
|
696 test -z "$use_indexed_lrecord_implementation" && \
|
|
|
697 use_indexed_lrecord_implementation="$gung_ho"
|
|
|
698 fi
|
|
|
699 if test "$use_minimal_tagbits" = "no"; then
|
|
|
700 test "$with_dlmalloc" = "yes" && \
|
|
|
701 (echo "$progname: Usage error:"
|
|
284
|
702 echo " " "--with-dlmalloc requires --use-minimal-tagbits"
|
|
272
|
703 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
704 with_dlmalloc=no
|
|
|
705 fi
|
|
|
706
|
|
284
|
707
|
|
|
708
|
|
|
709 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
|
710 (echo "$progname: Usage error:"
|
|
|
711 echo " " "--with-cde requires --with-tooltalk"
|
|
|
712 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
713 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
|
714 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
|
715 fi
|
|
|
716
|
|
|
717
|
|
149
|
718 if test "$run_in_place" = "yes"; then
|
|
|
719 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2
|
|
|
720 fi
|
|
|
721
|
|
|
722 case "$srcdir" in
|
|
|
723
|
|
|
724 "" )
|
|
70
|
725 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
|
120
|
726 if test -f "$dir/src/lisp.h" -a \
|
|
|
727 -f "$dir/lisp/version.el" ; then
|
|
149
|
728 srcdir="$dir"
|
|
70
|
729 break
|
|
|
730 fi
|
|
|
731 done
|
|
149
|
732 if test -z "$srcdir" ; then
|
|
|
733 (echo "$progname: Usage error:"
|
|
120
|
734 echo " " "Neither the current directory nor its parent seem to
|
|
|
735 contain the XEmacs sources. If you do not want to build XEmacs in its
|
|
149
|
736 source tree, you should run \`$progname' in the directory in which
|
|
120
|
737 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
|
738 sources may be found."
|
|
149
|
739 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
120
|
740 fi
|
|
0
|
741 ;;
|
|
|
742
|
|
149
|
743 * )
|
|
243
|
744 if test ! -f "$srcdir/src/lisp.h" -o \
|
|
149
|
745 ! -f "$srcdir/lisp/version.el" ; then
|
|
|
746 (echo "$progname: Usage error:"
|
|
120
|
747 echo " " "The directory specified with the \`--srcdir' option,
|
|
149
|
748 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
|
749 either run the \`$progname' script at the top of the XEmacs source
|
|
120
|
750 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
|
149
|
751 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
0
|
752 fi
|
|
|
753 ;;
|
|
|
754 esac
|
|
|
755
|
|
243
|
756 if test -z "$configuration"; then
|
|
|
757 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
|
284
|
758 echo "configure:759: checking "host system type"" >&5
|
|
243
|
759 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
|
|
|
760 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
|
|
|
761 echo "$ac_t""$configuration" 1>&6
|
|
|
762 else
|
|
|
763 echo "$ac_t""unknown" 1>&6
|
|
|
764 (echo "$progname: Usage error:"
|
|
|
765 echo " " "XEmacs has not been ported to this host type.
|
|
|
766 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
|
767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
768 fi
|
|
|
769 fi
|
|
|
770
|
|
149
|
771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
284
|
772 echo "configure:773: checking whether ln -s works" >&5
|
|
149
|
773
|
|
0
|
774 rm -f conftestdata
|
|
|
775 if ln -s X conftestdata 2>/dev/null
|
|
|
776 then
|
|
|
777 rm -f conftestdata
|
|
149
|
778 ac_cv_prog_LN_S="ln -s"
|
|
|
779 else
|
|
|
780 ac_cv_prog_LN_S=ln
|
|
|
781 fi
|
|
|
782 LN_S="$ac_cv_prog_LN_S"
|
|
|
783 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
|
784 echo "$ac_t""yes" 1>&6
|
|
|
785 else
|
|
|
786 echo "$ac_t""no" 1>&6
|
|
|
787 fi
|
|
|
788
|
|
|
789
|
|
207
|
790 for dir in lisp etc man info; do
|
|
149
|
791 if test ! -d "$dir" ; then
|
|
|
792 echo Making symbolic link to "$srcdir/$dir"
|
|
157
|
793 ${LN_S} "$srcdir/$dir" "$dir"
|
|
0
|
794 fi
|
|
|
795 done
|
|
|
796
|
|
181
|
797 absolute_pwd="`pwd`";
|
|
187
|
798 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
|
181
|
799 then blddir="$PWD"
|
|
|
800 else blddir="$absolute_pwd"
|
|
|
801 fi
|
|
|
802
|
|
|
803
|
|
149
|
804 case "$srcdir" in
|
|
0
|
805 /* ) ;;
|
|
181
|
806 . ) srcdir="$blddir" ;;
|
|
|
807 * ) srcdir="`cd $srcdir && pwd`" ;;
|
|
0
|
808 esac
|
|
|
809
|
|
149
|
810 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
|
811 && test -f "$srcdir/src/config.h"; then
|
|
|
812 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
|
0
|
813 echo " as a build directory right now; it has been configured in its own"
|
|
|
814 echo " right. To configure in another directory as well, you MUST"
|
|
|
815 echo " use GNU make. If you do not have GNU make, then you must"
|
|
149
|
816 echo " now do \`make distclean' in $srcdir,"
|
|
|
817 echo " and then run $progname again.") >&2
|
|
0
|
818 extrasub='/^VPATH[ ]*=/c\
|
|
|
819 vpath %.c $(srcdir)\
|
|
|
820 vpath %.h $(srcdir)\
|
|
|
821 vpath %.y $(srcdir)\
|
|
|
822 vpath %.l $(srcdir)\
|
|
|
823 vpath %.s $(srcdir)\
|
|
|
824 vpath %.in $(srcdir)'
|
|
|
825 fi
|
|
|
826
|
|
171
|
827 . "$srcdir/version.sh" || exit 1;
|
|
173
|
828 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
829 : "${extra_verbose=$beta}"
|
|
171
|
830 version="${emacs_major_version}.${emacs_minor_version}"
|
|
|
831 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
832 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
|
833 EOF
|
|
|
834 cat >> confdefs.h <<EOF
|
|
|
835 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
|
836 EOF
|
|
|
837 }
|
|
|
838
|
|
|
839 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
840 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
|
841 EOF
|
|
|
842 cat >> confdefs.h <<EOF
|
|
|
843 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
|
844 EOF
|
|
|
845 }
|
|
|
846
|
|
|
847 if test -n "$emacs_beta_version"; then
|
|
|
848 version="${version}-b${emacs_beta_version}"
|
|
|
849 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
850 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
|
851 EOF
|
|
|
852 cat >> confdefs.h <<EOF
|
|
|
853 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
|
854 EOF
|
|
|
855 }
|
|
|
856
|
|
|
857 fi
|
|
|
858 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
859 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
|
860 EOF
|
|
|
861 cat >> confdefs.h <<EOF
|
|
|
862 #define XEMACS_CODENAME "$xemacs_codename"
|
|
|
863 EOF
|
|
|
864 }
|
|
|
865
|
|
|
866 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
867 Defining EMACS_VERSION = "$version"
|
|
|
868 EOF
|
|
|
869 cat >> confdefs.h <<EOF
|
|
|
870 #define EMACS_VERSION "$version"
|
|
|
871 EOF
|
|
|
872 }
|
|
|
873
|
|
|
874
|
|
280
|
875 if test "$with_infodock" = "yes"; then
|
|
306
|
876 if test ! -f ../../ID-INSTALL; then
|
|
280
|
877 echo "Cannot build InfoDock without InfoDock sources"
|
|
|
878 with_infodock=no
|
|
|
879 fi
|
|
|
880 fi
|
|
|
881
|
|
|
882 if test "$with_infodock" = "yes"; then
|
|
|
883 { test "$extra_verbose" = "yes" && cat << EOF
|
|
278
|
884 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
|
885 EOF
|
|
|
886 cat >> confdefs.h <<EOF
|
|
|
887 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
|
888 EOF
|
|
|
889 }
|
|
|
890
|
|
280
|
891 { test "$extra_verbose" = "yes" && cat << EOF
|
|
278
|
892 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
|
893 EOF
|
|
|
894 cat >> confdefs.h <<EOF
|
|
|
895 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
|
896 EOF
|
|
|
897 }
|
|
|
898
|
|
280
|
899 { test "$extra_verbose" = "yes" && cat << EOF
|
|
278
|
900 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
|
901 EOF
|
|
|
902 cat >> confdefs.h <<EOF
|
|
|
903 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
|
904 EOF
|
|
|
905 }
|
|
|
906
|
|
280
|
907 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
|
908 PROGNAME=infodock
|
|
|
909 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
|
910 else
|
|
|
911 PROGNAME=xemacs
|
|
|
912 fi
|
|
278
|
913
|
|
171
|
914 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi
|
|
|
915 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
916 Defining ERROR_CHECK_EXTENTS
|
|
|
917 EOF
|
|
|
918 cat >> confdefs.h <<\EOF
|
|
|
919 #define ERROR_CHECK_EXTENTS 1
|
|
|
920 EOF
|
|
|
921 }
|
|
|
922
|
|
|
923 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
924 Defining ERROR_CHECK_TYPECHECK
|
|
|
925 EOF
|
|
|
926 cat >> confdefs.h <<\EOF
|
|
|
927 #define ERROR_CHECK_TYPECHECK 1
|
|
|
928 EOF
|
|
|
929 }
|
|
|
930
|
|
|
931 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
932 Defining ERROR_CHECK_BUFPOS
|
|
|
933 EOF
|
|
|
934 cat >> confdefs.h <<\EOF
|
|
|
935 #define ERROR_CHECK_BUFPOS 1
|
|
|
936 EOF
|
|
|
937 }
|
|
|
938
|
|
|
939 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
940 Defining ERROR_CHECK_GC
|
|
|
941 EOF
|
|
|
942 cat >> confdefs.h <<\EOF
|
|
|
943 #define ERROR_CHECK_GC 1
|
|
|
944 EOF
|
|
|
945 }
|
|
|
946
|
|
|
947 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
948 Defining ERROR_CHECK_MALLOC
|
|
|
949 EOF
|
|
|
950 cat >> confdefs.h <<\EOF
|
|
|
951 #define ERROR_CHECK_MALLOC 1
|
|
|
952 EOF
|
|
|
953 }
|
|
|
954
|
|
272
|
955 if test "${debug:=$beta}" = "yes"; then
|
|
171
|
956 use_assertions=yes memory_usage_stats=yes
|
|
|
957 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
|
|
|
958 echo " xemacs will be linked with \"debug.o\""
|
|
|
959 fi
|
|
|
960 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
961 Defining DEBUG_XEMACS
|
|
|
962 EOF
|
|
|
963 cat >> confdefs.h <<\EOF
|
|
|
964 #define DEBUG_XEMACS 1
|
|
|
965 EOF
|
|
|
966 }
|
|
|
967
|
|
|
968 fi
|
|
|
969 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
970 Defining USE_ASSERTIONS
|
|
|
971 EOF
|
|
|
972 cat >> confdefs.h <<\EOF
|
|
|
973 #define USE_ASSERTIONS 1
|
|
|
974 EOF
|
|
|
975 }
|
|
|
976
|
|
|
977 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
978 Defining MEMORY_USAGE_STATS
|
|
|
979 EOF
|
|
|
980 cat >> confdefs.h <<\EOF
|
|
|
981 #define MEMORY_USAGE_STATS 1
|
|
|
982 EOF
|
|
|
983 }
|
|
|
984
|
|
|
985
|
|
149
|
986
|
|
|
987 echo "checking "the configuration name"" 1>&6
|
|
284
|
988 echo "configure:989: checking "the configuration name"" >&5
|
|
217
|
989 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
|
149
|
990 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
|
|
0
|
991 exit $?
|
|
|
992 fi
|
|
|
993
|
|
149
|
994
|
|
|
995
|
|
|
996
|
|
|
997
|
|
151
|
998 machine='' opsys=''
|
|
149
|
999
|
|
|
1000 case "$canonical" in
|
|
|
1001 sparc-*-* ) machine=sparc ;;
|
|
306
|
1002 alpha*-*-* ) machine=alpha ;;
|
|
149
|
1003 vax-*-* ) machine=vax ;;
|
|
|
1004 mips-dec-* ) machine=pmax ;;
|
|
|
1005 mips-sgi-* ) machine=iris4d ;;
|
|
|
1006 romp-ibm-* ) machine=ibmrt ;;
|
|
|
1007 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
|
1008 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
|
163
|
1009 powerpc*-* ) machine=powerpc ;;
|
|
149
|
1010 hppa-*-* ) machine=hp800 ;;
|
|
|
1011 m88k-dg-* ) machine=aviion ;;
|
|
|
1012 m68*-sony-* ) machine=news ;;
|
|
|
1013 mips-sony-* ) machine=news-risc ;;
|
|
|
1014 clipper-* ) machine=clipper ;;
|
|
|
1015 esac
|
|
|
1016
|
|
|
1017 case "$canonical" in
|
|
|
1018 *-*-linux* ) opsys=linux ;;
|
|
|
1019 *-*-netbsd* ) opsys=netbsd ;;
|
|
286
|
1020 *-*-openbsd* ) opsys=openbsd ;;
|
|
149
|
1021 *-*-nextstep* ) opsys=nextstep ;;
|
|
|
1022 *-*-vms ) opsys=vms ;;
|
|
|
1023
|
|
|
1024 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
|
1025 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
|
1026 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
|
1027 *-dec-osf3* ) opsys=decosf3-1 ;;
|
|
|
1028 *-dec-osf4* ) opsys=decosf4-0 ;;
|
|
|
1029
|
|
|
1030 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
|
1031 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
|
1032 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
|
1033
|
|
|
1034 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
|
1035 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
|
1036 *-*-aix3* ) opsys=aix3-2 ;;
|
|
318
|
1037 *-*-aix4.0* ) opsys=aix4 ;;
|
|
149
|
1038 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
318
|
1039 *-*-aix4* ) opsys=aix4-2 ;;
|
|
149
|
1040
|
|
|
1041 *-gnu* ) opsys=gnu ;;
|
|
|
1042 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
|
1043 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
|
1044 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
|
1045 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
|
1046 *-*-aos* ) opsys=bsd4-3 ;;
|
|
|
1047 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
|
1048 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
|
1049 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
|
1050 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
|
1051 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
1052 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
|
1053 if test -z "$NON_GNU_CPP" ; then
|
|
151
|
1054 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
|
1055 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
|
1056 done
|
|
149
|
1057 fi
|
|
|
1058 opsys=usg5-4-2 ;;
|
|
|
1059 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
|
1060 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
|
1061 esac
|
|
|
1062
|
|
|
1063 case "$canonical" in
|
|
|
1064
|
|
|
1065 *-*-netbsd* )
|
|
|
1066 case "$canonical" in
|
|
0
|
1067 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
|
1068 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
|
149
|
1069 machine=hp9000s300 ;;
|
|
70
|
1070 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
|
1071 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
|
0
|
1072 esac
|
|
|
1073 ;;
|
|
|
1074
|
|
286
|
1075 *-*-openbsd* )
|
|
|
1076 case "${canonical}" in
|
|
|
1077 alpha*-*-openbsd*) machine=alpha ;;
|
|
|
1078 i386-*-openbsd*) machine=intel386 ;;
|
|
|
1079 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
|
1080 mipsel-*-openbsd*) machine=pmax ;;
|
|
|
1081 ns32k-*-openbsd*) machine=ns32000 ;;
|
|
|
1082 sparc-*-openbsd*) machine=sparc ;;
|
|
|
1083 vax-*-openbsd*) machine=vax ;;
|
|
|
1084 esac
|
|
|
1085 ;;
|
|
|
1086
|
|
149
|
1087 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
|
70
|
1088 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
|
0
|
1089
|
|
149
|
1090 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
|
70
|
1091 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
|
0
|
1092
|
|
149
|
1093 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
|
1094
|
|
|
1095 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
|
1096
|
|
|
1097 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
|
1098
|
|
|
1099 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
|
1100
|
|
|
1101 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
|
1102
|
|
|
1103 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
|
74
|
1104 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
|
1105 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
|
0
|
1106
|
|
149
|
1107
|
|
|
1108 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
|
1109
|
|
|
1110 *-convex-bsd* | *-convex-convexos* )
|
|
0
|
1111 machine=convex opsys=bsd4-3
|
|
|
1112 NON_GNU_CPP="cc -E -P"
|
|
|
1113 ;;
|
|
|
1114
|
|
149
|
1115 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
|
1116
|
|
|
1117 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
|
1118 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
|
1119 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
|
1120 m88k-dg-dgux* ) opsys=dgux ;;
|
|
|
1121
|
|
|
1122 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
|
0
|
1123 m88k-motorola-sysv4* )
|
|
149
|
1124 machine=delta88k opsys=usg5-4-2
|
|
0
|
1125 ;;
|
|
70
|
1126 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
|
0
|
1127
|
|
149
|
1128 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
|
70
|
1129 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
|
0
|
1130
|
|
149
|
1131 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
|
1132
|
|
|
1133 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
|
70
|
1134 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
|
1135 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
|
0
|
1136
|
|
149
|
1137 m88k-harris-cxux* )
|
|
|
1138 case "`uname -r`" in
|
|
74
|
1139 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
|
70
|
1140 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
|
0
|
1141 esac
|
|
|
1142 NON_GNU_CPP="/lib/cpp"
|
|
|
1143 ;;
|
|
149
|
1144 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
|
1145 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
|
1146
|
|
|
1147 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
|
1148
|
|
|
1149 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
|
1150
|
|
|
1151 *-hp-hpux* )
|
|
|
1152 case "$canonical" in
|
|
70
|
1153 m68* ) machine=hp9000s300 ;;
|
|
|
1154 hppa* ) machine=hp800 ;;
|
|
|
1155 esac
|
|
|
1156
|
|
149
|
1157 case "$canonical" in
|
|
|
1158 *-hp-hpux7* ) opsys=hpux ;;
|
|
|
1159 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
|
1160 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
|
1161 *-hp-hpux10* ) opsys=hpux10 ;;
|
|
269
|
1162 *-hp-hpux11* ) opsys=hpux11 ;;
|
|
151
|
1163 * ) opsys=hpux ;;
|
|
0
|
1164 esac
|
|
72
|
1165
|
|
151
|
1166 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1167 echo " xemacs will be linked with \"strcat.o\""
|
|
|
1168 fi ;; esac
|
|
149
|
1169
|
|
269
|
1170 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
|
1171 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
|
149
|
1172 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
|
1173
|
|
|
1174 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
|
0
|
1175 ;;
|
|
|
1176
|
|
149
|
1177 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
|
70
|
1178 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
|
0
|
1179
|
|
149
|
1180 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
|
70
|
1181 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
|
1182 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
|
149
|
1183 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
|
1184 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
|
1185 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1186
|
|
|
1187 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
|
70
|
1188 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
|
0
|
1189
|
|
149
|
1190 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
|
1191
|
|
|
1192 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
|
1193
|
|
|
1194 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
|
1195
|
|
|
1196 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
|
1197
|
|
|
1198 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
|
1199
|
|
|
1200 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
|
1201
|
|
|
1202 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
|
1203
|
|
|
1204 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
|
1205
|
|
|
1206 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
|
1207
|
|
|
1208 mips-mips-usg* ) machine=mips4 ;;
|
|
70
|
1209 mips-mips-riscos4 )
|
|
|
1210 machine=mips4
|
|
0
|
1211 NON_GNU_CC="cc -systype bsd43"
|
|
|
1212 NON_GNU_CPP="cc -systype bsd43 -E"
|
|
149
|
1213 case "$canonical" in
|
|
70
|
1214 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
|
1215 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
|
1216 esac
|
|
0
|
1217 ;;
|
|
70
|
1218 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
|
1219 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
|
0
|
1220
|
|
149
|
1221 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
|
1222
|
|
|
1223 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
|
1224
|
|
|
1225 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
|
70
|
1226 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
|
0
|
1227
|
|
149
|
1228 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
|
1229
|
|
|
1230 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
|
1231
|
|
|
1232 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
|
1233
|
|
|
1234 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
|
1235
|
|
|
1236 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
|
70
|
1237 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
|
0
|
1238
|
|
149
|
1239 mips-siemens-sysv* | mips-sni-sysv*)
|
|
0
|
1240 machine=mips-siemens opsys=usg5-4
|
|
|
1241 NON_GNU_CC=/usr/ccs/bin/cc
|
|
|
1242 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1243 ;;
|
|
|
1244
|
|
321
|
1245 mips-nec-sysv*)
|
|
|
1246 machine=mips-nec
|
|
|
1247 NON_GNU_CC=/usr/ccs/bin/cc
|
|
|
1248 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1249 ;;
|
|
|
1250
|
|
149
|
1251 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
|
70
|
1252 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
|
149
|
1253 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
|
1254 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
|
207
|
1255 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
|
149
|
1256 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
|
1257 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
|
1258 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
|
1259 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
|
1260
|
|
|
1261 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
|
1262 *-sony-news* ) opsys=newsos5 ;;
|
|
|
1263
|
|
|
1264 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
|
1265
|
|
|
1266 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
|
1267 case "$canonical" in
|
|
0
|
1268 m68*-sunos1* ) machine=sun1 ;;
|
|
|
1269 m68*-sunos2* ) machine=sun2 ;;
|
|
|
1270 m68* ) machine=sun3 ;;
|
|
163
|
1271 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
|
1272 i*86-*-* ) machine=intel386 ;;
|
|
0
|
1273 rs6000* ) machine=rs6000 ;;
|
|
|
1274 esac
|
|
149
|
1275
|
|
|
1276 case "$canonical" in *-sunos5*)
|
|
163
|
1277 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
|
0
|
1278 esac
|
|
|
1279
|
|
149
|
1280 case "$canonical" in
|
|
0
|
1281 *-sunos4* )
|
|
157
|
1282 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
|
1283 : ;;
|
|
70
|
1284 *-solaris2* )
|
|
157
|
1285 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
|
1286 RANLIB=':' ;;
|
|
151
|
1287 esac
|
|
149
|
1288
|
|
|
1289 case "$canonical" in
|
|
163
|
1290 *-solaris* )
|
|
|
1291 opsys=sol2
|
|
|
1292 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
|
1293 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
1294 Defining OS_RELEASE = $os_release
|
|
|
1295 EOF
|
|
|
1296 cat >> confdefs.h <<EOF
|
|
|
1297 #define OS_RELEASE $os_release
|
|
|
1298 EOF
|
|
|
1299 }
|
|
|
1300 ;;
|
|
|
1301
|
|
|
1302 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
|
74
|
1303 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
|
1304 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
|
110
|
1305 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
|
120
|
1306 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
|
74
|
1307 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
|
1308 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1309 * ) opsys=bsd4-2 ;;
|
|
0
|
1310 esac
|
|
70
|
1311
|
|
149
|
1312 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
|
1313
|
|
163
|
1314 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
|
0
|
1315 ;;
|
|
70
|
1316
|
|
149
|
1317 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
|
1318
|
|
|
1319 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
|
70
|
1320 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
|
0
|
1321
|
|
149
|
1322 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
|
1323
|
|
|
1324 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
|
1325
|
|
|
1326 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
|
1327 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
|
1328
|
|
|
1329 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
|
1330
|
|
|
1331 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
|
1332
|
|
|
1333 vax-dec-* )
|
|
|
1334 case "$canonical" in
|
|
|
1335 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
|
1336 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
|
1337 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
0
|
1338 esac
|
|
|
1339 ;;
|
|
|
1340
|
|
149
|
1341 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
|
1342
|
|
|
1343 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
|
1344
|
|
|
1345 i[3-9]86-*-* )
|
|
0
|
1346 machine=intel386
|
|
149
|
1347 case "$canonical" in
|
|
120
|
1348 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
|
0
|
1349 *-isc2.2* ) opsys=isc2-2 ;;
|
|
|
1350 *-isc4.0* ) opsys=isc4-0 ;;
|
|
|
1351 *-isc4.* ) opsys=isc4-1
|
|
|
1352 GCC_TEST_OPTIONS=-posix
|
|
|
1353 NON_GCC_TEST_OPTIONS=-Xp
|
|
|
1354 ;;
|
|
|
1355 *-isc* ) opsys=isc3-0 ;;
|
|
149
|
1356 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
0
|
1357 *-esix* ) opsys=esix ;;
|
|
|
1358 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
|
1359 *-xenix* ) opsys=xenix ;;
|
|
149
|
1360 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
|
0
|
1361 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
|
110
|
1362 *-bsdi3* ) opsys=bsdos3 ;;
|
|
0
|
1363 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
|
1364 *-bsdi2* ) opsys=bsdos2 ;;
|
|
149
|
1365 *-sco3.2v5* ) opsys=sco5 ;
|
|
|
1366 if test "$dynamic" = "yes" ; then
|
|
70
|
1367 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
|
1368 else
|
|
|
1369 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
|
1370 fi ;;
|
|
|
1371 *-386bsd* ) opsys=386bsd ;;
|
|
|
1372 *-freebsd* ) opsys=freebsd ;;
|
|
0
|
1373 *-nextstep* ) opsys=nextstep ;;
|
|
231
|
1374 *-pc-cygwin32 ) opsys=cygwin32 ;;
|
|
149
|
1375 esac
|
|
0
|
1376 ;;
|
|
|
1377
|
|
149
|
1378 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
|
1379
|
|
0
|
1380 esac
|
|
|
1381
|
|
149
|
1382 if test -z "$machine" -o -z "$opsys"; then
|
|
|
1383 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
|
|
|
1384 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
|
|
0
|
1385 ) >&2
|
|
|
1386 exit 1
|
|
|
1387 fi
|
|
|
1388
|
|
173
|
1389 if test -z "$dynamic"; then
|
|
|
1390 case "$opsys" in
|
|
|
1391 hpux* | sunos4* | sco5 ) dynamic=no ;;
|
|
|
1392 *) dynamic=yes ;;
|
|
|
1393 esac
|
|
|
1394 fi
|
|
|
1395 if test "$dynamic" = "yes"; then
|
|
149
|
1396 case "$opsys" in
|
|
72
|
1397 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
|
173
|
1398 decosf* ) ld_call_shared="-call_shared" ;;
|
|
0
|
1399 esac
|
|
173
|
1400 else case "$opsys" in
|
|
187
|
1401 sol2 )
|
|
173
|
1402 echo "Static linking is not supported on Solaris 2."
|
|
|
1403 echo "Rerun configure without specifying --dynamic=no."
|
|
|
1404 exit 1 ;;
|
|
|
1405 linux ) ld_call_shared="-Bstatic" ;;
|
|
|
1406 decosf* ) ld_call_shared="-non_shared" ;;
|
|
0
|
1407 esac
|
|
|
1408 fi
|
|
|
1409
|
|
207
|
1410 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
|
1411
|
|
280
|
1412 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
|
173
|
1413 { test "$extra_verbose" = "yes" && cat << EOF
|
|
177
|
1414 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
|
173
|
1415 EOF
|
|
|
1416 cat >> confdefs.h <<EOF
|
|
177
|
1417 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
|
173
|
1418 EOF
|
|
|
1419 }
|
|
|
1420
|
|
|
1421
|
|
0
|
1422 machfile="m/${machine}.h"
|
|
|
1423 opsysfile="s/${opsys}.h"
|
|
|
1424
|
|
|
1425
|
|
151
|
1426 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
|
284
|
1427 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
|
1428 (echo "$progname: Usage error:"
|
|
|
1429 echo " " "--with-workshop requires --with-tooltalk"
|
|
|
1430 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
1431 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
|
1432 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
|
1433 fi
|
|
|
1434
|
|
151
|
1435 if test "$with_workshop" = "yes"; then
|
|
|
1436 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1437 Defining SUNPRO
|
|
|
1438 EOF
|
|
|
1439 cat >> confdefs.h <<\EOF
|
|
|
1440 #define SUNPRO 1
|
|
|
1441 EOF
|
|
|
1442 }
|
|
|
1443
|
|
|
1444 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1445 echo " xemacs will be linked with \"sunpro.o\""
|
|
|
1446 fi
|
|
|
1447 fi
|
|
|
1448
|
|
175
|
1449 if test "$with_clash_detection" = "yes"; then
|
|
|
1450 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
1451 Defining CLASH_DETECTION
|
|
|
1452 EOF
|
|
|
1453 cat >> confdefs.h <<\EOF
|
|
|
1454 #define CLASH_DETECTION 1
|
|
|
1455 EOF
|
|
|
1456 }
|
|
|
1457
|
|
|
1458 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
|
|
|
1459 echo " xemacs will be linked with \"filelock.o\""
|
|
|
1460 fi
|
|
|
1461 fi
|
|
|
1462
|
|
169
|
1463 test -n "$compiler" && CC="$compiler"
|
|
|
1464 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
|
1465 fi
|
|
149
|
1466
|
|
272
|
1467 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
|
1468 if test "${CFLAGS-unset}" != unset
|
|
|
1469 then cflags_specified=yes;
|
|
|
1470 else cflags_specified=no;
|
|
|
1471 fi
|
|
|
1472
|
|
157
|
1473 xe_save_CFLAGS="$CFLAGS"
|
|
|
1474
|
|
149
|
1475 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1476 set dummy gcc; ac_word=$2
|
|
|
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1478 echo "configure:1479: checking for $ac_word" >&5
|
|
149
|
1479
|
|
|
1480 if test -n "$CC"; then
|
|
|
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1482 else
|
|
|
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1484 for ac_dir in $PATH; do
|
|
|
1485 test -z "$ac_dir" && ac_dir=.
|
|
|
1486 if test -f $ac_dir/$ac_word; then
|
|
|
1487 ac_cv_prog_CC="gcc"
|
|
|
1488 break
|
|
|
1489 fi
|
|
|
1490 done
|
|
|
1491 IFS="$ac_save_ifs"
|
|
|
1492 fi
|
|
|
1493 CC="$ac_cv_prog_CC"
|
|
|
1494 if test -n "$CC"; then
|
|
|
1495 echo "$ac_t""$CC" 1>&6
|
|
|
1496 else
|
|
|
1497 echo "$ac_t""no" 1>&6
|
|
|
1498 fi
|
|
|
1499
|
|
|
1500 if test -z "$CC"; then
|
|
|
1501 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1502 set dummy cc; ac_word=$2
|
|
|
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1504 echo "configure:1505: checking for $ac_word" >&5
|
|
149
|
1505
|
|
|
1506 if test -n "$CC"; then
|
|
|
1507 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1508 else
|
|
|
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1510 ac_prog_rejected=no
|
|
|
1511 for ac_dir in $PATH; do
|
|
|
1512 test -z "$ac_dir" && ac_dir=.
|
|
|
1513 if test -f $ac_dir/$ac_word; then
|
|
|
1514 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1515 ac_prog_rejected=yes
|
|
|
1516 continue
|
|
|
1517 fi
|
|
|
1518 ac_cv_prog_CC="cc"
|
|
|
1519 break
|
|
|
1520 fi
|
|
|
1521 done
|
|
|
1522 IFS="$ac_save_ifs"
|
|
|
1523 if test $ac_prog_rejected = yes; then
|
|
|
1524 # We found a bogon in the path, so make sure we never use it.
|
|
|
1525 set dummy $ac_cv_prog_CC
|
|
|
1526 shift
|
|
|
1527 if test $# -gt 0; then
|
|
|
1528 # We chose a different compiler from the bogus one.
|
|
|
1529 # However, it has the same basename, so the bogon will be chosen
|
|
|
1530 # first if we set CC to just the basename; use the full file name.
|
|
|
1531 shift
|
|
|
1532 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1533 shift
|
|
|
1534 ac_cv_prog_CC="$@"
|
|
|
1535 fi
|
|
|
1536 fi
|
|
|
1537 fi
|
|
|
1538 CC="$ac_cv_prog_CC"
|
|
|
1539 if test -n "$CC"; then
|
|
|
1540 echo "$ac_t""$CC" 1>&6
|
|
|
1541 else
|
|
|
1542 echo "$ac_t""no" 1>&6
|
|
|
1543 fi
|
|
|
1544
|
|
|
1545 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1546 fi
|
|
|
1547
|
|
|
1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
321
|
1549 echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
70
|
1550
|
|
0
|
1551 ac_ext=c
|
|
151
|
1552 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1553 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1554 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1555 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1556 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1557 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1558 cross_compiling=no
|
|
|
1559
|
|
|
1560 cat > conftest.$ac_ext <<EOF
|
|
321
|
1561 #line 1562 "configure"
|
|
149
|
1562 #include "confdefs.h"
|
|
|
1563 main(){return(0);}
|
|
|
1564 EOF
|
|
321
|
1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1566 ac_cv_prog_cc_works=yes
|
|
|
1567 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1568 if (./conftest; exit) 2>/dev/null; then
|
|
|
1569 ac_cv_prog_cc_cross=no
|
|
|
1570 else
|
|
|
1571 ac_cv_prog_cc_cross=yes
|
|
0
|
1572 fi
|
|
149
|
1573 else
|
|
|
1574 echo "configure: failed program was:" >&5
|
|
|
1575 cat conftest.$ac_ext >&5
|
|
|
1576 ac_cv_prog_cc_works=no
|
|
|
1577 fi
|
|
|
1578 rm -fr conftest*
|
|
|
1579
|
|
|
1580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1581 if test $ac_cv_prog_cc_works = no; then
|
|
|
1582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1583 fi
|
|
|
1584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
321
|
1585 echo "configure:1586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1587 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1588
|
|
|
1589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
321
|
1590 echo "configure:1591: checking whether we are using GNU C" >&5
|
|
149
|
1591
|
|
|
1592 cat > conftest.c <<EOF
|
|
|
1593 #ifdef __GNUC__
|
|
|
1594 yes;
|
|
|
1595 #endif
|
|
|
1596 EOF
|
|
321
|
1597 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1598 ac_cv_prog_gcc=yes
|
|
|
1599 else
|
|
|
1600 ac_cv_prog_gcc=no
|
|
|
1601 fi
|
|
|
1602
|
|
|
1603 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1604
|
|
|
1605 if test $ac_cv_prog_gcc = yes; then
|
|
|
1606 GCC=yes
|
|
|
1607 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1608 ac_save_CFLAGS="$CFLAGS"
|
|
|
1609 CFLAGS=
|
|
|
1610 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
321
|
1611 echo "configure:1612: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1612
|
|
|
1613 echo 'void f(){}' > conftest.c
|
|
|
1614 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1615 ac_cv_prog_cc_g=yes
|
|
|
1616 else
|
|
|
1617 ac_cv_prog_cc_g=no
|
|
|
1618 fi
|
|
|
1619 rm -f conftest*
|
|
|
1620
|
|
|
1621
|
|
|
1622 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1623 if test "$ac_test_CFLAGS" = set; then
|
|
|
1624 CFLAGS="$ac_save_CFLAGS"
|
|
|
1625 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1626 CFLAGS="-g -O2"
|
|
0
|
1627 else
|
|
149
|
1628 CFLAGS="-O2"
|
|
0
|
1629 fi
|
|
149
|
1630 else
|
|
|
1631 GCC=
|
|
|
1632 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1633 fi
|
|
169
|
1634
|
|
|
1635 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
|
149
|
1636 CC=${NON_GNU_CC-cc}
|
|
|
1637 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1638 set dummy gcc; ac_word=$2
|
|
|
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1640 echo "configure:1641: checking for $ac_word" >&5
|
|
149
|
1641
|
|
|
1642 if test -n "$CC"; then
|
|
|
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1644 else
|
|
0
|
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1646 for ac_dir in $PATH; do
|
|
|
1647 test -z "$ac_dir" && ac_dir=.
|
|
|
1648 if test -f $ac_dir/$ac_word; then
|
|
149
|
1649 ac_cv_prog_CC="gcc"
|
|
|
1650 break
|
|
|
1651 fi
|
|
|
1652 done
|
|
|
1653 IFS="$ac_save_ifs"
|
|
|
1654 fi
|
|
|
1655 CC="$ac_cv_prog_CC"
|
|
|
1656 if test -n "$CC"; then
|
|
|
1657 echo "$ac_t""$CC" 1>&6
|
|
|
1658 else
|
|
|
1659 echo "$ac_t""no" 1>&6
|
|
|
1660 fi
|
|
|
1661
|
|
|
1662 if test -z "$CC"; then
|
|
|
1663 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1664 set dummy cc; ac_word=$2
|
|
|
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1666 echo "configure:1667: checking for $ac_word" >&5
|
|
157
|
1667
|
|
|
1668 if test -n "$CC"; then
|
|
|
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1670 else
|
|
|
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1672 ac_prog_rejected=no
|
|
|
1673 for ac_dir in $PATH; do
|
|
|
1674 test -z "$ac_dir" && ac_dir=.
|
|
|
1675 if test -f $ac_dir/$ac_word; then
|
|
|
1676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1677 ac_prog_rejected=yes
|
|
|
1678 continue
|
|
|
1679 fi
|
|
|
1680 ac_cv_prog_CC="cc"
|
|
|
1681 break
|
|
|
1682 fi
|
|
|
1683 done
|
|
|
1684 IFS="$ac_save_ifs"
|
|
|
1685 if test $ac_prog_rejected = yes; then
|
|
|
1686 # We found a bogon in the path, so make sure we never use it.
|
|
|
1687 set dummy $ac_cv_prog_CC
|
|
|
1688 shift
|
|
|
1689 if test $# -gt 0; then
|
|
|
1690 # We chose a different compiler from the bogus one.
|
|
|
1691 # However, it has the same basename, so the bogon will be chosen
|
|
|
1692 # first if we set CC to just the basename; use the full file name.
|
|
|
1693 shift
|
|
|
1694 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1695 shift
|
|
|
1696 ac_cv_prog_CC="$@"
|
|
|
1697 fi
|
|
|
1698 fi
|
|
|
1699 fi
|
|
|
1700 CC="$ac_cv_prog_CC"
|
|
|
1701 if test -n "$CC"; then
|
|
|
1702 echo "$ac_t""$CC" 1>&6
|
|
|
1703 else
|
|
|
1704 echo "$ac_t""no" 1>&6
|
|
|
1705 fi
|
|
|
1706
|
|
|
1707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1708 fi
|
|
|
1709
|
|
|
1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
321
|
1711 echo "configure:1712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
157
|
1712
|
|
|
1713 ac_ext=c
|
|
|
1714 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1715 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1716 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
157
|
1717 ac_cpp='$CPP '"$xe_cppflags"
|
|
|
1718 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1719 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
|
1720 cross_compiling=no
|
|
|
1721
|
|
|
1722 cat > conftest.$ac_ext <<EOF
|
|
321
|
1723 #line 1724 "configure"
|
|
157
|
1724 #include "confdefs.h"
|
|
|
1725 main(){return(0);}
|
|
|
1726 EOF
|
|
321
|
1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
157
|
1728 ac_cv_prog_cc_works=yes
|
|
|
1729 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1730 if (./conftest; exit) 2>/dev/null; then
|
|
|
1731 ac_cv_prog_cc_cross=no
|
|
|
1732 else
|
|
|
1733 ac_cv_prog_cc_cross=yes
|
|
|
1734 fi
|
|
|
1735 else
|
|
|
1736 echo "configure: failed program was:" >&5
|
|
|
1737 cat conftest.$ac_ext >&5
|
|
|
1738 ac_cv_prog_cc_works=no
|
|
|
1739 fi
|
|
|
1740 rm -fr conftest*
|
|
|
1741
|
|
|
1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1743 if test $ac_cv_prog_cc_works = no; then
|
|
|
1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1745 fi
|
|
|
1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
321
|
1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
157
|
1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1749 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1750
|
|
|
1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
321
|
1752 echo "configure:1753: checking whether we are using GNU C" >&5
|
|
157
|
1753
|
|
|
1754 cat > conftest.c <<EOF
|
|
|
1755 #ifdef __GNUC__
|
|
|
1756 yes;
|
|
|
1757 #endif
|
|
|
1758 EOF
|
|
321
|
1759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
157
|
1760 ac_cv_prog_gcc=yes
|
|
|
1761 else
|
|
|
1762 ac_cv_prog_gcc=no
|
|
|
1763 fi
|
|
|
1764
|
|
|
1765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1766
|
|
|
1767 if test $ac_cv_prog_gcc = yes; then
|
|
|
1768 GCC=yes
|
|
|
1769 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1770 ac_save_CFLAGS="$CFLAGS"
|
|
|
1771 CFLAGS=
|
|
|
1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
321
|
1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5
|
|
157
|
1774
|
|
|
1775 echo 'void f(){}' > conftest.c
|
|
|
1776 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1777 ac_cv_prog_cc_g=yes
|
|
|
1778 else
|
|
|
1779 ac_cv_prog_cc_g=no
|
|
|
1780 fi
|
|
|
1781 rm -f conftest*
|
|
|
1782
|
|
|
1783
|
|
|
1784 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1785 if test "$ac_test_CFLAGS" = set; then
|
|
|
1786 CFLAGS="$ac_save_CFLAGS"
|
|
|
1787 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1788 CFLAGS="-g -O2"
|
|
|
1789 else
|
|
|
1790 CFLAGS="-O2"
|
|
|
1791 fi
|
|
|
1792 else
|
|
|
1793 GCC=
|
|
|
1794 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1795 fi
|
|
|
1796
|
|
169
|
1797 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
|
157
|
1798 CC=gcc
|
|
|
1799 # Extract the first word of "gcc", so it can be a program name with args.
|
|
|
1800 set dummy gcc; ac_word=$2
|
|
|
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1802 echo "configure:1803: checking for $ac_word" >&5
|
|
157
|
1803
|
|
|
1804 if test -n "$CC"; then
|
|
|
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1806 else
|
|
|
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1808 for ac_dir in $PATH; do
|
|
|
1809 test -z "$ac_dir" && ac_dir=.
|
|
|
1810 if test -f $ac_dir/$ac_word; then
|
|
|
1811 ac_cv_prog_CC="gcc"
|
|
|
1812 break
|
|
|
1813 fi
|
|
|
1814 done
|
|
|
1815 IFS="$ac_save_ifs"
|
|
|
1816 fi
|
|
|
1817 CC="$ac_cv_prog_CC"
|
|
|
1818 if test -n "$CC"; then
|
|
|
1819 echo "$ac_t""$CC" 1>&6
|
|
|
1820 else
|
|
|
1821 echo "$ac_t""no" 1>&6
|
|
|
1822 fi
|
|
|
1823
|
|
|
1824 if test -z "$CC"; then
|
|
|
1825 # Extract the first word of "cc", so it can be a program name with args.
|
|
|
1826 set dummy cc; ac_word=$2
|
|
|
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
1828 echo "configure:1829: checking for $ac_word" >&5
|
|
149
|
1829
|
|
|
1830 if test -n "$CC"; then
|
|
|
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
1832 else
|
|
|
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
1834 ac_prog_rejected=no
|
|
|
1835 for ac_dir in $PATH; do
|
|
|
1836 test -z "$ac_dir" && ac_dir=.
|
|
|
1837 if test -f $ac_dir/$ac_word; then
|
|
|
1838 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
1839 ac_prog_rejected=yes
|
|
|
1840 continue
|
|
|
1841 fi
|
|
|
1842 ac_cv_prog_CC="cc"
|
|
|
1843 break
|
|
|
1844 fi
|
|
|
1845 done
|
|
|
1846 IFS="$ac_save_ifs"
|
|
|
1847 if test $ac_prog_rejected = yes; then
|
|
|
1848 # We found a bogon in the path, so make sure we never use it.
|
|
|
1849 set dummy $ac_cv_prog_CC
|
|
|
1850 shift
|
|
|
1851 if test $# -gt 0; then
|
|
|
1852 # We chose a different compiler from the bogus one.
|
|
|
1853 # However, it has the same basename, so the bogon will be chosen
|
|
|
1854 # first if we set CC to just the basename; use the full file name.
|
|
|
1855 shift
|
|
|
1856 set dummy "$ac_dir/$ac_word" "$@"
|
|
|
1857 shift
|
|
|
1858 ac_cv_prog_CC="$@"
|
|
|
1859 fi
|
|
|
1860 fi
|
|
|
1861 fi
|
|
|
1862 CC="$ac_cv_prog_CC"
|
|
|
1863 if test -n "$CC"; then
|
|
|
1864 echo "$ac_t""$CC" 1>&6
|
|
|
1865 else
|
|
|
1866 echo "$ac_t""no" 1>&6
|
|
|
1867 fi
|
|
|
1868
|
|
|
1869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
1870 fi
|
|
|
1871
|
|
|
1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
321
|
1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
149
|
1874
|
|
|
1875 ac_ext=c
|
|
151
|
1876 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
|
1877 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
|
173
|
1878 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
|
149
|
1879 ac_cpp='$CPP '"$xe_cppflags"
|
|
151
|
1880 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
|
1881 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
149
|
1882 cross_compiling=no
|
|
|
1883
|
|
|
1884 cat > conftest.$ac_ext <<EOF
|
|
321
|
1885 #line 1886 "configure"
|
|
149
|
1886 #include "confdefs.h"
|
|
|
1887 main(){return(0);}
|
|
|
1888 EOF
|
|
321
|
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
1890 ac_cv_prog_cc_works=yes
|
|
|
1891 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
1892 if (./conftest; exit) 2>/dev/null; then
|
|
|
1893 ac_cv_prog_cc_cross=no
|
|
|
1894 else
|
|
|
1895 ac_cv_prog_cc_cross=yes
|
|
|
1896 fi
|
|
|
1897 else
|
|
|
1898 echo "configure: failed program was:" >&5
|
|
|
1899 cat conftest.$ac_ext >&5
|
|
|
1900 ac_cv_prog_cc_works=no
|
|
|
1901 fi
|
|
|
1902 rm -fr conftest*
|
|
|
1903
|
|
|
1904 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
1905 if test $ac_cv_prog_cc_works = no; then
|
|
|
1906 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
1907 fi
|
|
|
1908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
321
|
1909 echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
149
|
1910 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
1911 cross_compiling=$ac_cv_prog_cc_cross
|
|
|
1912
|
|
|
1913 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
321
|
1914 echo "configure:1915: checking whether we are using GNU C" >&5
|
|
149
|
1915
|
|
|
1916 cat > conftest.c <<EOF
|
|
|
1917 #ifdef __GNUC__
|
|
|
1918 yes;
|
|
|
1919 #endif
|
|
|
1920 EOF
|
|
321
|
1921 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
149
|
1922 ac_cv_prog_gcc=yes
|
|
|
1923 else
|
|
|
1924 ac_cv_prog_gcc=no
|
|
|
1925 fi
|
|
|
1926
|
|
|
1927 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
1928
|
|
|
1929 if test $ac_cv_prog_gcc = yes; then
|
|
|
1930 GCC=yes
|
|
|
1931 ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
1932 ac_save_CFLAGS="$CFLAGS"
|
|
|
1933 CFLAGS=
|
|
|
1934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
321
|
1935 echo "configure:1936: checking whether ${CC-cc} accepts -g" >&5
|
|
149
|
1936
|
|
|
1937 echo 'void f(){}' > conftest.c
|
|
|
1938 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
1939 ac_cv_prog_cc_g=yes
|
|
|
1940 else
|
|
|
1941 ac_cv_prog_cc_g=no
|
|
|
1942 fi
|
|
|
1943 rm -f conftest*
|
|
|
1944
|
|
|
1945
|
|
|
1946 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
|
1947 if test "$ac_test_CFLAGS" = set; then
|
|
|
1948 CFLAGS="$ac_save_CFLAGS"
|
|
|
1949 elif test $ac_cv_prog_cc_g = yes; then
|
|
|
1950 CFLAGS="-g -O2"
|
|
|
1951 else
|
|
|
1952 CFLAGS="-O2"
|
|
|
1953 fi
|
|
|
1954 else
|
|
|
1955 GCC=
|
|
|
1956 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
|
1957 fi
|
|
|
1958
|
|
157
|
1959 fi
|
|
|
1960 CFLAGS="$xe_save_CFLAGS"
|
|
149
|
1961
|
|
171
|
1962
|
|
|
1963 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
|
1964
|
|
169
|
1965 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
|
149
|
1966
|
|
|
1967 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
321
|
1968 echo "configure:1969: checking how to run the C preprocessor" >&5
|
|
149
|
1969 # On Suns, sometimes $CPP names a directory.
|
|
|
1970 if test -n "$CPP" && test -d "$CPP"; then
|
|
|
1971 CPP=
|
|
|
1972 fi
|
|
0
|
1973 if test -z "$CPP"; then
|
|
149
|
1974
|
|
0
|
1975 # This must be in double quotes, not single quotes, because CPP may get
|
|
149
|
1976 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
0
|
1977 CPP="${CC-cc} -E"
|
|
149
|
1978 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
1979 # not just through cpp.
|
|
|
1980 cat > conftest.$ac_ext <<EOF
|
|
321
|
1981 #line 1982 "configure"
|
|
149
|
1982 #include "confdefs.h"
|
|
|
1983 #include <assert.h>
|
|
0
|
1984 Syntax Error
|
|
|
1985 EOF
|
|
149
|
1986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
1987 { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
1988 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
1989 if test -z "$ac_err"; then
|
|
|
1990 :
|
|
|
1991 else
|
|
|
1992 echo "$ac_err" >&5
|
|
|
1993 echo "configure: failed program was:" >&5
|
|
|
1994 cat conftest.$ac_ext >&5
|
|
|
1995 rm -rf conftest*
|
|
|
1996 CPP="${CC-cc} -E -traditional-cpp"
|
|
|
1997 cat > conftest.$ac_ext <<EOF
|
|
321
|
1998 #line 1999 "configure"
|
|
149
|
1999 #include "confdefs.h"
|
|
|
2000 #include <assert.h>
|
|
|
2001 Syntax Error
|
|
|
2002 EOF
|
|
|
2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2005 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
2006 if test -z "$ac_err"; then
|
|
|
2007 :
|
|
|
2008 else
|
|
149
|
2009 echo "$ac_err" >&5
|
|
|
2010 echo "configure: failed program was:" >&5
|
|
|
2011 cat conftest.$ac_ext >&5
|
|
0
|
2012 rm -rf conftest*
|
|
|
2013 CPP=/lib/cpp
|
|
|
2014 fi
|
|
|
2015 rm -f conftest*
|
|
|
2016 fi
|
|
|
2017 rm -f conftest*
|
|
149
|
2018 ac_cv_prog_CPP="$CPP"
|
|
|
2019 CPP="$ac_cv_prog_CPP"
|
|
|
2020 else
|
|
|
2021 ac_cv_prog_CPP="$CPP"
|
|
|
2022 fi
|
|
|
2023 echo "$ac_t""$CPP" 1>&6
|
|
|
2024
|
|
|
2025
|
|
157
|
2026 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
|
321
|
2027 echo "configure:2028: checking for AIX" >&5
|
|
|
2028 cat > conftest.$ac_ext <<EOF
|
|
|
2029 #line 2030 "configure"
|
|
157
|
2030 #include "confdefs.h"
|
|
|
2031 #ifdef _AIX
|
|
|
2032 yes
|
|
|
2033 #endif
|
|
|
2034
|
|
|
2035 EOF
|
|
|
2036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
2037 egrep "yes" >/dev/null 2>&1; then
|
|
|
2038 rm -rf conftest*
|
|
|
2039 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2040 Defining _ALL_SOURCE
|
|
|
2041 EOF
|
|
|
2042 cat >> confdefs.h <<\EOF
|
|
|
2043 #define _ALL_SOURCE 1
|
|
|
2044 EOF
|
|
|
2045 }
|
|
|
2046
|
|
|
2047 else
|
|
|
2048 rm -rf conftest*
|
|
|
2049 echo "$ac_t""no" 1>&6
|
|
|
2050 fi
|
|
|
2051 rm -f conftest*
|
|
|
2052
|
|
|
2053
|
|
|
2054
|
|
243
|
2055 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
|
321
|
2056 echo "configure:2057: checking for GNU libc" >&5
|
|
|
2057 cat > conftest.$ac_ext <<EOF
|
|
|
2058 #line 2059 "configure"
|
|
243
|
2059 #include "confdefs.h"
|
|
|
2060 #include <features.h>
|
|
|
2061 int main() {
|
|
|
2062
|
|
|
2063 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
|
2064 #error Not a GNU libc system :-(
|
|
|
2065 ******* ======= ******** &&&&&&&&
|
|
|
2066 #endif
|
|
|
2067
|
|
|
2068 ; return 0; }
|
|
|
2069 EOF
|
|
321
|
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
243
|
2071 rm -rf conftest*
|
|
|
2072 have_glibc=yes
|
|
|
2073 else
|
|
|
2074 echo "configure: failed program was:" >&5
|
|
|
2075 cat conftest.$ac_ext >&5
|
|
|
2076 rm -rf conftest*
|
|
|
2077 have_glibc=no
|
|
|
2078 fi
|
|
|
2079 rm -f conftest*
|
|
|
2080 echo "$ac_t""$have_glibc" 1>&6
|
|
272
|
2081 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2082 Defining _GNU_SOURCE
|
|
|
2083 EOF
|
|
|
2084 cat >> confdefs.h <<\EOF
|
|
|
2085 #define _GNU_SOURCE 1
|
|
|
2086 EOF
|
|
|
2087 }
|
|
|
2088
|
|
243
|
2089
|
|
306
|
2090
|
|
|
2091 cat > conftest.$ac_ext <<EOF
|
|
321
|
2092 #line 2093 "configure"
|
|
306
|
2093 #include "confdefs.h"
|
|
|
2094 int main () {
|
|
|
2095 #if defined __SUNPRO_C
|
|
|
2096 return 11;
|
|
|
2097 #elif defined __DECC
|
|
|
2098 return 12;
|
|
|
2099 #else
|
|
|
2100 return 0;
|
|
157
|
2101 #endif
|
|
306
|
2102 }
|
|
|
2103 EOF
|
|
321
|
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
306
|
2105 then
|
|
|
2106 :
|
|
|
2107 else
|
|
|
2108 conftest_rc="$?"
|
|
|
2109 echo "configure: failed program was:" >&5
|
|
|
2110 cat conftest.$ac_ext >&5
|
|
|
2111 rm -fr conftest*
|
|
|
2112 case "$conftest_rc" in
|
|
|
2113 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
|
2114 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
|
|
2115 esac
|
|
|
2116 fi
|
|
|
2117 rm -fr conftest*
|
|
|
2118
|
|
157
|
2119
|
|
0
|
2120
|
|
149
|
2121
|
|
|
2122 echo "Extracting information from the machine- and system-dependent headers..."
|
|
|
2123
|
|
|
2124 tempcname="conftest.c"
|
|
|
2125
|
|
|
2126
|
|
|
2127
|
|
284
|
2128 cat > $tempcname <<EOF
|
|
149
|
2129 #define NOT_C_CODE
|
|
|
2130 #define C_SWITCH_SITE
|
|
|
2131 #define C_SWITCH_X_SITE
|
|
|
2132 #define LD_SWITCH_SITE
|
|
|
2133 #define LD_SWITCH_X_SITE
|
|
|
2134 #define LD_SWITCH_X_SITE_AUX
|
|
284
|
2135 #define OS_RELEASE $os_release
|
|
|
2136 #include "$srcdir/src/$opsysfile"
|
|
|
2137 #include "$srcdir/src/$machfile"
|
|
149
|
2138
|
|
|
2139 #ifndef LIBS_MACHINE
|
|
151
|
2140 #define LIBS_MACHINE
|
|
149
|
2141 #endif
|
|
|
2142 configure___ libs_machine=LIBS_MACHINE
|
|
|
2143
|
|
|
2144 #ifndef LIBS_SYSTEM
|
|
151
|
2145 #define LIBS_SYSTEM
|
|
149
|
2146 #endif
|
|
|
2147 configure___ libs_system=LIBS_SYSTEM
|
|
|
2148
|
|
|
2149 #ifndef LIBS_TERMCAP
|
|
151
|
2150 #define LIBS_TERMCAP
|
|
149
|
2151 #endif
|
|
|
2152 configure___ libs_termcap=LIBS_TERMCAP
|
|
|
2153
|
|
|
2154 #ifndef LIB_STANDARD
|
|
151
|
2155 #define LIB_STANDARD
|
|
149
|
2156 #endif
|
|
|
2157 configure___ libs_standard=LIB_STANDARD
|
|
|
2158
|
|
|
2159
|
|
163
|
2160 #ifndef OBJECTS_MACHINE
|
|
|
2161 #define OBJECTS_MACHINE
|
|
|
2162 #endif
|
|
|
2163 configure___ objects_machine=OBJECTS_MACHINE
|
|
|
2164
|
|
|
2165 #ifndef OBJECTS_SYSTEM
|
|
|
2166 #define OBJECTS_SYSTEM
|
|
|
2167 #endif
|
|
|
2168 configure___ objects_system=OBJECTS_SYSTEM
|
|
|
2169
|
|
|
2170
|
|
149
|
2171 #ifndef C_SWITCH_MACHINE
|
|
151
|
2172 #define C_SWITCH_MACHINE
|
|
149
|
2173 #endif
|
|
|
2174 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
|
2175
|
|
157
|
2176 #ifndef C_SWITCH_SYSTEM
|
|
|
2177 #define C_SWITCH_SYSTEM
|
|
|
2178 #endif
|
|
|
2179 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
|
2180
|
|
|
2181
|
|
|
2182 #ifndef LD_SWITCH_MACHINE
|
|
|
2183 #define LD_SWITCH_MACHINE
|
|
|
2184 #endif
|
|
|
2185 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
|
2186
|
|
|
2187 #ifndef LD_SWITCH_SYSTEM
|
|
|
2188 #define LD_SWITCH_SYSTEM
|
|
|
2189 #endif
|
|
|
2190 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
|
2191
|
|
149
|
2192
|
|
|
2193 #ifndef UNEXEC
|
|
157
|
2194 #define UNEXEC "unexec.o"
|
|
149
|
2195 #endif
|
|
|
2196 configure___ unexec=UNEXEC
|
|
|
2197
|
|
|
2198
|
|
163
|
2199 #ifndef LD_SWITCH_SHARED
|
|
|
2200 #define LD_SWITCH_SHARED "-c"
|
|
|
2201 #endif
|
|
|
2202 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
|
2203
|
|
|
2204
|
|
|
2205 #ifdef ORDINARY_LINK
|
|
284
|
2206 #define LD "\$(CC) \$(CFLAGS)"
|
|
163
|
2207 #else /* no ORDINARY LINK */
|
|
|
2208 #ifdef COFF_ENCAPSULATE
|
|
284
|
2209 #define LD "\$(CC) -nostdlib"
|
|
163
|
2210 #else /* not COFF_ENCAPSULATE */
|
|
|
2211 #ifdef LINKER
|
|
|
2212 #define LD LINKER
|
|
|
2213 #else /* ! defined (LINKER) */
|
|
|
2214 #define LD "ld"
|
|
|
2215 #endif /* ! defined (LINKER) */
|
|
|
2216 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2217 #endif /* not ORDINARY_LINK */
|
|
|
2218 configure___ ld=LD
|
|
|
2219
|
|
|
2220 #ifndef LIB_GCC
|
|
|
2221 #define LIB_GCC
|
|
|
2222 #endif
|
|
|
2223 configure___ lib_gcc=LIB_GCC
|
|
|
2224
|
|
|
2225 #ifndef LD_TEXT_START_ADDR
|
|
|
2226 #define LD_TEXT_START_ADDR
|
|
|
2227 #endif
|
|
|
2228 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
|
2229
|
|
|
2230
|
|
|
2231 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
|
2232 #ifdef NO_REMAP
|
|
|
2233 #ifdef COFF_ENCAPSULATE
|
|
|
2234 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
|
2235 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2236 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
|
2237 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
|
2238 #else /* ! defined (NO_REMAP) */
|
|
|
2239 #define START_FILES "ecrt0.o"
|
|
|
2240 #endif /* ! defined (NO_REMAP) */
|
|
|
2241 #endif /* no ORDINARY_LINK */
|
|
|
2242 #ifndef START_FILES
|
|
|
2243 #define START_FILES
|
|
|
2244 #endif
|
|
|
2245 configure___ start_files=START_FILES
|
|
|
2246
|
|
153
|
2247 #ifdef ORDINARY_LINK
|
|
|
2248 configure___ ordinary_link=yes
|
|
|
2249 #else
|
|
|
2250 configure___ ordinary_link=no
|
|
|
2251 #endif
|
|
|
2252
|
|
149
|
2253 #ifdef SYSTEM_MALLOC
|
|
|
2254 configure___ system_malloc=yes
|
|
|
2255 #else
|
|
|
2256 configure___ system_malloc=no
|
|
|
2257 #endif
|
|
|
2258
|
|
|
2259 #ifdef TERMINFO
|
|
|
2260 configure___ have_terminfo=yes
|
|
|
2261 #else
|
|
|
2262 configure___ have_terminfo=no
|
|
|
2263 #endif
|
|
|
2264
|
|
|
2265 #ifdef MAIL_USE_FLOCK
|
|
|
2266 configure___ mail_use_flock=yes
|
|
|
2267 #else
|
|
|
2268 configure___ mail_use_flock=no
|
|
|
2269 #endif
|
|
|
2270
|
|
|
2271 #ifdef MAIL_USE_LOCKF
|
|
|
2272 configure___ mail_use_lockf=yes
|
|
|
2273 #else
|
|
|
2274 configure___ mail_use_lockf=no
|
|
|
2275 #endif
|
|
|
2276
|
|
284
|
2277 EOF
|
|
|
2278
|
|
149
|
2279 CPP=`eval "echo $CPP"`
|
|
|
2280 eval `$CPP -Isrc $tempcname \
|
|
165
|
2281 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
|
153
|
2282
|
|
149
|
2283 rm $tempcname
|
|
|
2284
|
|
163
|
2285 test "$extra_verbose" = "yes" && \
|
|
201
|
2286 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
|
2287
|
|
153
|
2288 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
|
2289
|
|
306
|
2290 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
|
|
|
2291
|
|
272
|
2292 if test "$cflags_specified" = "no"; then
|
|
157
|
2293 if test "$GCC" = "yes"; then
|
|
286
|
2294 CFLAGS="-g -O3 -Wall -Wno-switch"
|
|
288
|
2295 test "$opsys $machine" = "cygwin32 intel386" && \
|
|
|
2296 CFLAGS="-g -O2 -Wall -Wno-switch"
|
|
306
|
2297 elif test "$__SUNPRO_C" = "yes"; then
|
|
157
|
2298 case "$opsys" in
|
|
163
|
2299 sol2 ) CFLAGS="-v -xO4" ;;
|
|
|
2300 sunos4* ) CFLAGS="-xO2";;
|
|
157
|
2301 esac
|
|
306
|
2302 elif test "$__DECC" = "yes"; then
|
|
|
2303 CFLAGS="-O3"
|
|
207
|
2304 elif test "$CC" = "xlc"; then
|
|
318
|
2305 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
|
306
|
2306 else
|
|
|
2307 CFLAGS="-O" ; fi
|
|
272
|
2308 fi
|
|
|
2309
|
|
|
2310
|
|
|
2311 if test "$GCC" = "yes"; then
|
|
|
2312 set x $ld_switch_system; shift; ld_switch_system=""
|
|
|
2313 while test -n "$1"; do
|
|
|
2314 case $1 in
|
|
|
2315 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
|
2316 -L* | -l* | -u* | -Wl* ) ld_switch_system="$ld_switch_system $1" ;;
|
|
|
2317 -Xlinker* ) ;;
|
|
|
2318 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
|
2319 esac
|
|
|
2320 shift
|
|
|
2321 done
|
|
157
|
2322 fi
|
|
151
|
2323
|
|
163
|
2324 if test "$GCC" = "yes"; then
|
|
272
|
2325 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
|
2326 while test -n "$1"; do
|
|
|
2327 case $1 in
|
|
|
2328 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
|
2329 -L* | -l* | -u* | -Wl* ) ld_switch_machine="$ld_switch_machine $1" ;;
|
|
163
|
2330 -Xlinker* ) ;;
|
|
272
|
2331 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
|
163
|
2332 esac
|
|
272
|
2333 shift
|
|
163
|
2334 done
|
|
272
|
2335 fi
|
|
|
2336
|
|
|
2337 if test "$GCC" = "yes"; then
|
|
|
2338 set x $LDFLAGS; shift; LDFLAGS=""
|
|
|
2339 while test -n "$1"; do
|
|
|
2340 case $1 in
|
|
|
2341 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
|
2342 -L* | -l* | -u* | -Wl* ) LDFLAGS="$LDFLAGS $1" ;;
|
|
163
|
2343 -Xlinker* ) ;;
|
|
272
|
2344 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
|
163
|
2345 esac
|
|
272
|
2346 shift
|
|
163
|
2347 done
|
|
272
|
2348 fi
|
|
|
2349
|
|
|
2350 if test "$GCC" = "yes"; then
|
|
|
2351 set x $ld_call_shared; shift; ld_call_shared=""
|
|
|
2352 while test -n "$1"; do
|
|
|
2353 case $1 in
|
|
|
2354 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
|
2355 -L* | -l* | -u* | -Wl* ) ld_call_shared="$ld_call_shared $1" ;;
|
|
173
|
2356 -Xlinker* ) ;;
|
|
272
|
2357 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
|
173
|
2358 esac
|
|
272
|
2359 shift
|
|
173
|
2360 done
|
|
163
|
2361 fi
|
|
|
2362
|
|
|
2363 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
|
2364 echo " xemacs will be linked with \"$objects_machine\""
|
|
|
2365 fi
|
|
|
2366 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
|
2367 echo " xemacs will be linked with \"$objects_system\""
|
|
|
2368 fi
|
|
|
2369 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
|
151
|
2370 echo " xemacs will be linked with \"$unexec\""
|
|
|
2371 fi
|
|
|
2372
|
|
163
|
2373 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
|
321
|
2374 echo "configure:2375: checking for dynodump" >&5
|
|
163
|
2375 if test "$unexec" != "unexsol2.o"; then
|
|
|
2376 echo "$ac_t""no" 1>&6
|
|
|
2377 else
|
|
|
2378 echo "$ac_t""yes" 1>&6
|
|
|
2379 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2380 Defining DYNODUMP
|
|
|
2381 EOF
|
|
|
2382 cat >> confdefs.h <<\EOF
|
|
|
2383 #define DYNODUMP 1
|
|
|
2384 EOF
|
|
|
2385 }
|
|
|
2386
|
|
|
2387 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
|
175
|
2388 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
|
163
|
2389 case "$machine" in
|
|
|
2390 sparc ) dynodump_arch=sparc ;;
|
|
|
2391 *86* ) dynodump_arch=i386 ;;
|
|
|
2392 powerpc ) dynodump_arch=ppc ;;
|
|
|
2393 esac
|
|
|
2394 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
|
|
|
2395 fi
|
|
|
2396
|
|
|
2397
|
|
274
|
2398 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
|
272
|
2399
|
|
207
|
2400 if test "$unexec" = "unexaix.o"; then
|
|
219
|
2401 if test "$dynamic" = "no"; then
|
|
207
|
2402 start_flags="-Wl,-bnso,-bnodelcsect"
|
|
209
|
2403 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
|
272
|
2404 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
|
207
|
2405 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
|
2406 done
|
|
|
2407 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
|
2408 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
|
2409 done
|
|
294
|
2410
|
|
|
2411 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
|
321
|
2412 echo "configure:2413: checking for terminateAndUnload in -lC" >&5
|
|
294
|
2413 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
|
2414
|
|
|
2415 xe_check_libs=" -lC "
|
|
|
2416 cat > conftest.$ac_ext <<EOF
|
|
321
|
2417 #line 2418 "configure"
|
|
294
|
2418 #include "confdefs.h"
|
|
|
2419 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
2420 /* We use char because int might match the return type of a gcc2
|
|
|
2421 builtin and then its argument prototype would still apply. */
|
|
|
2422 char terminateAndUnload();
|
|
|
2423
|
|
|
2424 int main() {
|
|
|
2425 terminateAndUnload()
|
|
|
2426 ; return 0; }
|
|
|
2427 EOF
|
|
321
|
2428 if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
294
|
2429 rm -rf conftest*
|
|
|
2430 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
2431 else
|
|
|
2432 echo "configure: failed program was:" >&5
|
|
|
2433 cat conftest.$ac_ext >&5
|
|
|
2434 rm -rf conftest*
|
|
|
2435 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
2436 fi
|
|
|
2437 rm -f conftest*
|
|
|
2438 xe_check_libs=""
|
|
|
2439
|
|
|
2440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
2441 echo "$ac_t""yes" 1>&6
|
|
|
2442 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
|
2443 else
|
|
|
2444 echo "$ac_t""no" 1>&6
|
|
|
2445 fi
|
|
|
2446
|
|
|
2447
|
|
272
|
2448 fi
|
|
207
|
2449 elif test -n "$ld_text_start_addr"; then
|
|
|
2450 start_flags="-T $ld_text_start_addr -e __start"
|
|
|
2451 fi
|
|
|
2452
|
|
|
2453
|
|
|
2454
|
|
163
|
2455
|
|
|
2456 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
|
2457 test -z "$linker" && linker='$(CC) -nostdlib'
|
|
175
|
2458 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
|
163
|
2459 fi
|
|
|
2460 test "$GCC" != "yes" && lib_gcc=
|
|
|
2461
|
|
|
2462
|
|
|
2463
|
|
151
|
2464
|
|
209
|
2465
|
|
|
2466 if test -n "$site_prefixes"; then
|
|
|
2467 for arg in $site_prefixes; do
|
|
272
|
2468 case "$arg" in
|
|
|
2469 -* ) ;;
|
|
|
2470 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
|
|
209
|
2471 esac
|
|
|
2472 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
|
|
|
2473 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
|
|
|
2474 done
|
|
|
2475 fi
|
|
|
2476
|
|
151
|
2477 if test -n "$site_libraries"; then
|
|
|
2478 for arg in $site_libraries; do
|
|
|
2479 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
|
|
|
2480 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
|
2481 done
|
|
|
2482 fi
|
|
|
2483
|
|
272
|
2484 if test -n "$site_includes"; then
|
|
151
|
2485 for arg in $site_includes; do
|
|
|
2486 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
|
|
|
2487 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
|
2488 done
|
|
|
2489 fi
|
|
|
2490
|
|
157
|
2491
|
|
151
|
2492 for dir in "/usr/ccs/lib"; do
|
|
|
2493 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi
|
|
|
2494 done
|
|
|
2495
|
|
272
|
2496 if test -n "$site_runtime_libraries"; then
|
|
165
|
2497 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
|
151
|
2498 export LD_RUN_PATH
|
|
|
2499 fi
|
|
|
2500
|
|
|
2501
|
|
|
2502 if test "$dynamic" = "no"; then add_runtime_path=no
|
|
|
2503 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
|
163
|
2504 else case "$opsys" in
|
|
306
|
2505 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
|
151
|
2506 * ) add_runtime_path=no ;;
|
|
|
2507 esac
|
|
|
2508 fi
|
|
|
2509
|
|
|
2510 if test "$add_runtime_path" = "yes"; then
|
|
|
2511 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
|
321
|
2512 echo "configure:2513: checking "for runtime libraries flag"" >&5
|
|
306
|
2513 case "$opsys" in
|
|
|
2514 sol2 ) dash_r="-R" ;;
|
|
308
|
2515 decosf* | linux* ) dash_r="-rpath " ;;
|
|
306
|
2516 *)
|
|
|
2517 dash_r=""
|
|
|
2518 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
|
2519 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
|
2520
|
|
272
|
2521 if test "$GCC" = "yes"; then
|
|
|
2522 set x $xe_check_libs; shift; xe_check_libs=""
|
|
|
2523 while test -n "$1"; do
|
|
|
2524 case $1 in
|
|
|
2525 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
|
2526 -L* | -l* | -u* | -Wl* ) xe_check_libs="$xe_check_libs $1" ;;
|
|
|
2527 -Xlinker* ) ;;
|
|
|
2528 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
|
2529 esac
|
|
|
2530 shift
|
|
|
2531 done
|
|
|
2532 fi
|
|
306
|
2533 cat > conftest.$ac_ext <<EOF
|
|
321
|
2534 #line 2535 "configure"
|
|
|
2535 #include "confdefs.h"
|
|
|
2536
|
|
|
2537 int main() {
|
|
|
2538
|
|
|
2539 ; return 0; }
|
|
|
2540 EOF
|
|
|
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
2542 rm -rf conftest*
|
|
|
2543 dash_r="$try_dash_r"
|
|
|
2544 else
|
|
|
2545 echo "configure: failed program was:" >&5
|
|
|
2546 cat conftest.$ac_ext >&5
|
|
|
2547 fi
|
|
|
2548 rm -f conftest*
|
|
306
|
2549 xe_check_libs=""
|
|
|
2550 test -n "$dash_r" && break
|
|
|
2551 done ;;
|
|
|
2552 esac
|
|
151
|
2553 if test -n "$dash_r";
|
|
|
2554 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
|
2555 else echo "$ac_t""NONE" 1>&6
|
|
|
2556 fi
|
|
|
2557 fi
|
|
|
2558
|
|
163
|
2559 xe_add_unique_runpath_dir='
|
|
|
2560 xe_add_p=yes
|
|
|
2561 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
|
2562 done
|
|
|
2563 if test "$xe_add_p" = "yes"; then
|
|
|
2564 test -n "$runpath" && runpath="${runpath}:"
|
|
|
2565 runpath="${runpath}${xe_runpath_dir}"
|
|
|
2566 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
|
2567 fi'
|
|
|
2568
|
|
|
2569
|
|
151
|
2570
|
|
155
|
2571
|
|
151
|
2572 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
2573 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
2574 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
2575
|
|
163
|
2576 runpath="" runpath_dirs=""
|
|
155
|
2577 if test -n "$LD_RUN_PATH"; then
|
|
151
|
2578 runpath="$LD_RUN_PATH"
|
|
155
|
2579 elif test "$GCC" = "yes"; then
|
|
163
|
2580 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
2581 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
2582 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
2583 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
2584 case "$arg" in P,* | -L* | -R* )
|
|
159
|
2585 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
2586 {
|
|
155
|
2587 xe_runpath_dir="$dir"
|
|
163
|
2588 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2589 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2590 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2591 eval "$xe_add_unique_runpath_dir"
|
|
|
2592 }
|
|
155
|
2593 done ;;
|
|
|
2594 esac
|
|
|
2595 done
|
|
163
|
2596 ld_switch_run="$ld_switch_run_save"
|
|
155
|
2597 rm -f conftest*
|
|
151
|
2598 else
|
|
155
|
2599 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
2600 case "$arg" in -L*) {
|
|
159
|
2601 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
2602 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
2603 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
2604 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
2605 eval "$xe_add_unique_runpath_dir"
|
|
|
2606 };; esac
|
|
151
|
2607 done
|
|
163
|
2608 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
2609 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
2610 eval "$xe_add_unique_runpath_dir";
|
|
|
2611 fi
|
|
155
|
2612 fi
|
|
151
|
2613 if test -n "$runpath"; then
|
|
|
2614 ld_switch_run="${dash_r}${runpath}"
|
|
272
|
2615
|
|
|
2616 if test "$GCC" = "yes"; then
|
|
|
2617 set x $ld_switch_run; shift; ld_switch_run=""
|
|
|
2618 while test -n "$1"; do
|
|
|
2619 case $1 in
|
|
|
2620 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
|
2621 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
|
2622 -Xlinker* ) ;;
|
|
|
2623 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
|
2624 esac
|
|
|
2625 shift
|
|
|
2626 done
|
|
|
2627 fi
|
|
151
|
2628 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
2629 fi
|
|
|
2630 fi
|
|
|
2631
|
|
|
2632
|
|
149
|
2633
|
|
|
2634 GNU_MALLOC=yes
|
|
261
|
2635 if test "$with_dlmalloc" != "no"; then
|
|
|
2636 doug_lea_malloc=yes
|
|
|
2637 else
|
|
|
2638 doug_lea_malloc=no
|
|
|
2639 fi
|
|
259
|
2640 after_morecore_hook_exists=yes
|
|
255
|
2641 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
|
|
321
|
2642 echo "configure:2643: checking for malloc_get_state" >&5
|
|
|
2643
|
|
|
2644 cat > conftest.$ac_ext <<EOF
|
|
|
2645 #line 2646 "configure"
|
|
255
|
2646 #include "confdefs.h"
|
|
|
2647 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
2648 which can conflict with char malloc_get_state(); below. */
|
|
|
2649 #include <assert.h>
|
|
|
2650 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
2651 /* We use char because int might match the return type of a gcc2
|
|
|
2652 builtin and then its argument prototype would still apply. */
|
|
|
2653 char malloc_get_state();
|
|
|
2654
|
|
|
2655 int main() {
|
|
|
2656
|
|
|
2657 /* The GNU C library defines this for functions which it implements
|
|
|
2658 to always fail with ENOSYS. Some functions are actually named
|
|
|
2659 something starting with __ and the normal name is an alias. */
|
|
|
2660 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
|
|
|
2661 choke me
|
|
|
2662 #else
|
|
|
2663 malloc_get_state();
|
|
|
2664 #endif
|
|
|
2665
|
|
|
2666 ; return 0; }
|
|
|
2667 EOF
|
|
321
|
2668 if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
255
|
2669 rm -rf conftest*
|
|
|
2670 eval "ac_cv_func_malloc_get_state=yes"
|
|
|
2671 else
|
|
|
2672 echo "configure: failed program was:" >&5
|
|
|
2673 cat conftest.$ac_ext >&5
|
|
|
2674 rm -rf conftest*
|
|
|
2675 eval "ac_cv_func_malloc_get_state=no"
|
|
|
2676 fi
|
|
|
2677 rm -f conftest*
|
|
|
2678
|
|
|
2679 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
|
|
|
2680 echo "$ac_t""yes" 1>&6
|
|
|
2681 :
|
|
|
2682 else
|
|
|
2683 echo "$ac_t""no" 1>&6
|
|
|
2684 doug_lea_malloc=no
|
|
|
2685 fi
|
|
|
2686
|
|
|
2687 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
|
321
|
2688 echo "configure:2689: checking for malloc_set_state" >&5
|
|
|
2689
|
|
|
2690 cat > conftest.$ac_ext <<EOF
|
|
|
2691 #line 2692 "configure"
|
|
255
|
2692 #include "confdefs.h"
|
|
|
2693 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
2694 which can conflict with char malloc_set_state(); below. */
|
|
|
2695 #include <assert.h>
|
|
|
2696 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
2697 /* We use char because int might match the return type of a gcc2
|
|
|
2698 builtin and then its argument prototype would still apply. */
|
|
|
2699 char malloc_set_state();
|
|
|
2700
|
|
|
2701 int main() {
|
|
|
2702
|
|
|
2703 /* The GNU C library defines this for functions which it implements
|
|
|
2704 to always fail with ENOSYS. Some functions are actually named
|
|
|
2705 something starting with __ and the normal name is an alias. */
|
|
|
2706 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
|
2707 choke me
|
|
|
2708 #else
|
|
|
2709 malloc_set_state();
|
|
|
2710 #endif
|
|
|
2711
|
|
|
2712 ; return 0; }
|
|
|
2713 EOF
|
|
321
|
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
255
|
2715 rm -rf conftest*
|
|
|
2716 eval "ac_cv_func_malloc_set_state=yes"
|
|
|
2717 else
|
|
|
2718 echo "configure: failed program was:" >&5
|
|
|
2719 cat conftest.$ac_ext >&5
|
|
|
2720 rm -rf conftest*
|
|
|
2721 eval "ac_cv_func_malloc_set_state=no"
|
|
|
2722 fi
|
|
|
2723 rm -f conftest*
|
|
|
2724
|
|
|
2725 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
|
2726 echo "$ac_t""yes" 1>&6
|
|
|
2727 :
|
|
|
2728 else
|
|
|
2729 echo "$ac_t""no" 1>&6
|
|
|
2730 doug_lea_malloc=no
|
|
|
2731 fi
|
|
|
2732
|
|
|
2733 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
|
321
|
2734 echo "configure:2735: checking whether __after_morecore_hook exists" >&5
|
|
|
2735 cat > conftest.$ac_ext <<EOF
|
|
|
2736 #line 2737 "configure"
|
|
255
|
2737 #include "confdefs.h"
|
|
|
2738 extern void (* __after_morecore_hook)();
|
|
|
2739 int main() {
|
|
|
2740 __after_morecore_hook = 0
|
|
|
2741 ; return 0; }
|
|
|
2742 EOF
|
|
321
|
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
259
|
2744 rm -rf conftest*
|
|
|
2745 echo "$ac_t""yes" 1>&6
|
|
|
2746 else
|
|
|
2747 echo "configure: failed program was:" >&5
|
|
|
2748 cat conftest.$ac_ext >&5
|
|
|
2749 rm -rf conftest*
|
|
|
2750 echo "$ac_t""no" 1>&6
|
|
|
2751 after_morecore_hook_exists=no
|
|
255
|
2752 fi
|
|
|
2753 rm -f conftest*
|
|
149
|
2754 if test "$system_malloc" = "yes" ; then
|
|
|
2755 GNU_MALLOC=no
|
|
|
2756 GNU_MALLOC_reason="
|
|
177
|
2757 (The GNU allocators don't work with this system configuration)."
|
|
181
|
2758 elif test "$with_system_malloc" = "yes" ; then
|
|
149
|
2759 GNU_MALLOC=no
|
|
|
2760 GNU_MALLOC_reason="
|
|
177
|
2761 (User chose not to use GNU allocators)."
|
|
181
|
2762 elif test "$with_debug_malloc" = "yes" ; then
|
|
177
|
2763 GNU_MALLOC=no
|
|
|
2764 GNU_MALLOC_reason="
|
|
|
2765 (User chose to use Debugging Malloc)."
|
|
149
|
2766 fi
|
|
|
2767
|
|
255
|
2768 if test "$doug_lea_malloc" = "yes" ; then
|
|
|
2769 if test "$GNU_MALLOC" = yes ; then
|
|
|
2770 GNU_MALLOC_reason="
|
|
259
|
2771 (Using Doug Lea's new malloc from the GNU C Library.)"
|
|
255
|
2772 fi
|
|
|
2773 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2774 Defining DOUG_LEA_MALLOC
|
|
|
2775 EOF
|
|
|
2776 cat >> confdefs.h <<\EOF
|
|
|
2777 #define DOUG_LEA_MALLOC 1
|
|
|
2778 EOF
|
|
|
2779 }
|
|
|
2780
|
|
259
|
2781 if test "$after_morecore_hook_exists" = "no" ; then
|
|
|
2782 GNU_MALLOC_reason="
|
|
|
2783 (Using Doug Lea's new malloc from the Linux C Library.)"
|
|
|
2784 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
2785 Defining _NO_MALLOC_WARNING_
|
|
|
2786 EOF
|
|
|
2787 cat >> confdefs.h <<\EOF
|
|
|
2788 #define _NO_MALLOC_WARNING_ 1
|
|
|
2789 EOF
|
|
|
2790 }
|
|
|
2791
|
|
|
2792 fi
|
|
272
|
2793 use_minimal_tagbits=yes
|
|
255
|
2794 fi
|
|
|
2795
|
|
149
|
2796
|
|
267
|
2797
|
|
|
2798
|
|
149
|
2799 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
2800 set dummy ranlib; ac_word=$2
|
|
|
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
2802 echo "configure:2803: checking for $ac_word" >&5
|
|
149
|
2803
|
|
|
2804 if test -n "$RANLIB"; then
|
|
|
2805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
2806 else
|
|
0
|
2807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2808 for ac_dir in $PATH; do
|
|
|
2809 test -z "$ac_dir" && ac_dir=.
|
|
|
2810 if test -f $ac_dir/$ac_word; then
|
|
149
|
2811 ac_cv_prog_RANLIB="ranlib"
|
|
0
|
2812 break
|
|
|
2813 fi
|
|
|
2814 done
|
|
|
2815 IFS="$ac_save_ifs"
|
|
149
|
2816 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
|
2817 fi
|
|
|
2818 RANLIB="$ac_cv_prog_RANLIB"
|
|
|
2819 if test -n "$RANLIB"; then
|
|
|
2820 echo "$ac_t""$RANLIB" 1>&6
|
|
|
2821 else
|
|
|
2822 echo "$ac_t""no" 1>&6
|
|
|
2823 fi
|
|
|
2824
|
|
|
2825 ac_aux_dir=
|
|
|
2826 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
|
2827 if test -f $ac_dir/install-sh; then
|
|
|
2828 ac_aux_dir=$ac_dir
|
|
|
2829 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
2830 break
|
|
|
2831 elif test -f $ac_dir/install.sh; then
|
|
|
2832 ac_aux_dir=$ac_dir
|
|
|
2833 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
2834 break
|
|
|
2835 fi
|
|
|
2836 done
|
|
|
2837 if test -z "$ac_aux_dir"; then
|
|
|
2838 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
|
2839 fi
|
|
|
2840 ac_config_guess=$ac_aux_dir/config.guess
|
|
|
2841 ac_config_sub=$ac_aux_dir/config.sub
|
|
|
2842 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
|
2843
|
|
|
2844 # Find a good install program. We prefer a C program (faster),
|
|
|
2845 # so one script is as good as another. But avoid the broken or
|
|
|
2846 # incompatible versions:
|
|
|
2847 # SysV /etc/install, /usr/sbin/install
|
|
|
2848 # SunOS /usr/etc/install
|
|
|
2849 # IRIX /sbin/install
|
|
|
2850 # AIX /bin/install
|
|
|
2851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
|
2852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
2853 # ./install, which can be erroneously created by make from ./install.sh.
|
|
|
2854 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
321
|
2855 echo "configure:2856: checking for a BSD compatible install" >&5
|
|
149
|
2856 if test -z "$INSTALL"; then
|
|
|
2857
|
|
|
2858 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
|
0
|
2859 for ac_dir in $PATH; do
|
|
149
|
2860 # Account for people who put trailing slashes in PATH elements.
|
|
|
2861 case "$ac_dir/" in
|
|
|
2862 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
0
|
2863 *)
|
|
|
2864 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
149
|
2865 for ac_prog in ginstall installbsd scoinst install; do
|
|
0
|
2866 if test -f $ac_dir/$ac_prog; then
|
|
|
2867 if test $ac_prog = install &&
|
|
|
2868 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
|
2869 # AIX install. It has an incompatible calling convention.
|
|
|
2870 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
|
2871 :
|
|
|
2872 else
|
|
149
|
2873 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
0
|
2874 break 2
|
|
|
2875 fi
|
|
|
2876 fi
|
|
|
2877 done
|
|
|
2878 ;;
|
|
|
2879 esac
|
|
|
2880 done
|
|
149
|
2881 IFS="$ac_save_IFS"
|
|
|
2882
|
|
|
2883 if test "${ac_cv_path_install+set}" = set; then
|
|
|
2884 INSTALL="$ac_cv_path_install"
|
|
|
2885 else
|
|
|
2886 # As a last resort, use the slow shell script. We don't cache a
|
|
|
2887 # path for INSTALL within a source directory, because that will
|
|
|
2888 # break other packages using the cache if that directory is
|
|
|
2889 # removed, or if the path is relative.
|
|
|
2890 INSTALL="$ac_install_sh"
|
|
|
2891 fi
|
|
|
2892 fi
|
|
|
2893 echo "$ac_t""$INSTALL" 1>&6
|
|
|
2894
|
|
|
2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
0
|
2896 # It thinks the first close brace ends the variable substitution.
|
|
|
2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
2898
|
|
|
2899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
2900
|
|
|
2901 for ac_prog in 'bison -y' byacc
|
|
|
2902 do
|
|
149
|
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
2904 set dummy $ac_prog; ac_word=$2
|
|
|
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
321
|
2906 echo "configure:2907: checking for $ac_word" >&5
|
|
149
|
2907
|
|
|
2908 if test -n "$YACC"; then
|
|
|
2909 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
|
2910 else
|
|
0
|
2911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
2912 for ac_dir in $PATH; do
|
|
|
2913 test -z "$ac_dir" && ac_dir=.
|
|
|
2914 if test -f $ac_dir/$ac_word; then
|
|
149
|
2915 ac_cv_prog_YACC="$ac_prog"
|
|
0
|
2916 break
|
|
|
2917 fi
|
|
|
2918 done
|
|
|
2919 IFS="$ac_save_ifs"
|
|
|
2920 fi
|
|
149
|
2921 YACC="$ac_cv_prog_YACC"
|
|
|
2922 if test -n "$YACC"; then
|
|
|
2923 echo "$ac_t""$YACC" 1>&6
|
|
|
2924 else
|
|
|
2925 echo "$ac_t""no" 1>&6
|
|
|
2926 fi
|
|
0
|
2927
|
|
|
2928 test -n "$YACC" && break
|
|
|
2929 done
|
|
|
2930 test -n "$YACC" || YACC="yacc"
|
|
|
2931
|
|
|
2932
|
|
120
|
2933 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
|
|
|
2934 do
|
|
149
|
2935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
2937 echo "configure:2938: checking for $ac_hdr" >&5
|
|
|
2938
|
|
|
2939 cat > conftest.$ac_ext <<EOF
|
|
|
2940 #line 2941 "configure"
|
|
149
|
2941 #include "confdefs.h"
|
|
|
2942 #include <$ac_hdr>
|
|
|
2943 EOF
|
|
|
2944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
2945 { (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2946 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2947 if test -z "$ac_err"; then
|
|
|
2948 rm -rf conftest*
|
|
149
|
2949 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2950 else
|
|
|
2951 echo "$ac_err" >&5
|
|
|
2952 echo "configure: failed program was:" >&5
|
|
|
2953 cat conftest.$ac_ext >&5
|
|
|
2954 rm -rf conftest*
|
|
|
2955 eval "ac_cv_header_$ac_safe=no"
|
|
|
2956 fi
|
|
|
2957 rm -f conftest*
|
|
|
2958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
2959 echo "$ac_t""yes" 1>&6
|
|
|
2960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
2961 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
2962 Defining $ac_tr_hdr
|
|
|
2963 EOF
|
|
|
2964 cat >> confdefs.h <<EOF
|
|
|
2965 #define $ac_tr_hdr 1
|
|
|
2966 EOF
|
|
|
2967 }
|
|
|
2968
|
|
|
2969 else
|
|
|
2970 echo "$ac_t""no" 1>&6
|
|
|
2971 fi
|
|
120
|
2972 done
|
|
|
2973
|
|
321
|
2974 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
|
|
120
|
2975 do
|
|
149
|
2976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
2977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
2978 echo "configure:2979: checking for $ac_hdr" >&5
|
|
|
2979
|
|
|
2980 cat > conftest.$ac_ext <<EOF
|
|
|
2981 #line 2982 "configure"
|
|
149
|
2982 #include "confdefs.h"
|
|
|
2983 #include <$ac_hdr>
|
|
|
2984 EOF
|
|
|
2985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
2986 { (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
2987 ac_err=`grep -v '^ *+' conftest.out`
|
|
120
|
2988 if test -z "$ac_err"; then
|
|
|
2989 rm -rf conftest*
|
|
149
|
2990 eval "ac_cv_header_$ac_safe=yes"
|
|
|
2991 else
|
|
|
2992 echo "$ac_err" >&5
|
|
|
2993 echo "configure: failed program was:" >&5
|
|
|
2994 cat conftest.$ac_ext >&5
|
|
|
2995 rm -rf conftest*
|
|
|
2996 eval "ac_cv_header_$ac_safe=no"
|
|
|
2997 fi
|
|
|
2998 rm -f conftest*
|
|
|
2999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
3000 echo "$ac_t""yes" 1>&6
|
|
|
3001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
3002 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3003 Defining $ac_tr_hdr
|
|
|
3004 EOF
|
|
|
3005 cat >> confdefs.h <<EOF
|
|
|
3006 #define $ac_tr_hdr 1
|
|
|
3007 EOF
|
|
|
3008 }
|
|
|
3009
|
|
|
3010 else
|
|
|
3011 echo "$ac_t""no" 1>&6
|
|
|
3012 fi
|
|
120
|
3013 done
|
|
|
3014
|
|
251
|
3015 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
|
|
0
|
3016 do
|
|
149
|
3017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
3018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
3019 echo "configure:3020: checking for $ac_hdr" >&5
|
|
|
3020
|
|
|
3021 cat > conftest.$ac_ext <<EOF
|
|
|
3022 #line 3023 "configure"
|
|
149
|
3023 #include "confdefs.h"
|
|
|
3024 #include <$ac_hdr>
|
|
|
3025 EOF
|
|
|
3026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
3027 { (eval echo configure:3028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
3028 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
3029 if test -z "$ac_err"; then
|
|
|
3030 rm -rf conftest*
|
|
149
|
3031 eval "ac_cv_header_$ac_safe=yes"
|
|
|
3032 else
|
|
|
3033 echo "$ac_err" >&5
|
|
|
3034 echo "configure: failed program was:" >&5
|
|
|
3035 cat conftest.$ac_ext >&5
|
|
|
3036 rm -rf conftest*
|
|
|
3037 eval "ac_cv_header_$ac_safe=no"
|
|
|
3038 fi
|
|
|
3039 rm -f conftest*
|
|
|
3040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
3041 echo "$ac_t""yes" 1>&6
|
|
|
3042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
3043 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3044 Defining $ac_tr_hdr
|
|
|
3045 EOF
|
|
|
3046 cat >> confdefs.h <<EOF
|
|
|
3047 #define $ac_tr_hdr 1
|
|
|
3048 EOF
|
|
|
3049 }
|
|
|
3050
|
|
|
3051 else
|
|
|
3052 echo "$ac_t""no" 1>&6
|
|
|
3053 fi
|
|
0
|
3054 done
|
|
|
3055
|
|
155
|
3056 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
321
|
3057 echo "configure:3058: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
|
3058
|
|
|
3059 cat > conftest.$ac_ext <<EOF
|
|
|
3060 #line 3061 "configure"
|
|
155
|
3061 #include "confdefs.h"
|
|
|
3062 #include <sys/types.h>
|
|
|
3063 #include <sys/wait.h>
|
|
|
3064 #ifndef WEXITSTATUS
|
|
|
3065 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
|
3066 #endif
|
|
|
3067 #ifndef WIFEXITED
|
|
|
3068 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
|
3069 #endif
|
|
|
3070 int main() {
|
|
|
3071 int s;
|
|
|
3072 wait (&s);
|
|
|
3073 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
|
3074 ; return 0; }
|
|
|
3075 EOF
|
|
321
|
3076 if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
155
|
3077 rm -rf conftest*
|
|
|
3078 ac_cv_header_sys_wait_h=yes
|
|
|
3079 else
|
|
|
3080 echo "configure: failed program was:" >&5
|
|
|
3081 cat conftest.$ac_ext >&5
|
|
|
3082 rm -rf conftest*
|
|
|
3083 ac_cv_header_sys_wait_h=no
|
|
|
3084 fi
|
|
|
3085 rm -f conftest*
|
|
|
3086
|
|
|
3087 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
|
3088 if test $ac_cv_header_sys_wait_h = yes; then
|
|
|
3089 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3090 Defining HAVE_SYS_WAIT_H
|
|
|
3091 EOF
|
|
|
3092 cat >> confdefs.h <<\EOF
|
|
|
3093 #define HAVE_SYS_WAIT_H 1
|
|
|
3094 EOF
|
|
|
3095 }
|
|
|
3096
|
|
|
3097 fi
|
|
|
3098
|
|
149
|
3099 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
321
|
3100 echo "configure:3101: checking for ANSI C header files" >&5
|
|
|
3101
|
|
|
3102 cat > conftest.$ac_ext <<EOF
|
|
|
3103 #line 3104 "configure"
|
|
0
|
3104 #include "confdefs.h"
|
|
|
3105 #include <stdlib.h>
|
|
|
3106 #include <stdarg.h>
|
|
|
3107 #include <string.h>
|
|
|
3108 #include <float.h>
|
|
|
3109 EOF
|
|
149
|
3110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
3111 { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
3112 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
3113 if test -z "$ac_err"; then
|
|
|
3114 rm -rf conftest*
|
|
149
|
3115 ac_cv_header_stdc=yes
|
|
|
3116 else
|
|
|
3117 echo "$ac_err" >&5
|
|
|
3118 echo "configure: failed program was:" >&5
|
|
|
3119 cat conftest.$ac_ext >&5
|
|
|
3120 rm -rf conftest*
|
|
|
3121 ac_cv_header_stdc=no
|
|
|
3122 fi
|
|
|
3123 rm -f conftest*
|
|
|
3124
|
|
|
3125 if test $ac_cv_header_stdc = yes; then
|
|
0
|
3126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
149
|
3127 cat > conftest.$ac_ext <<EOF
|
|
321
|
3128 #line 3129 "configure"
|
|
149
|
3129 #include "confdefs.h"
|
|
|
3130 #include <string.h>
|
|
|
3131 EOF
|
|
|
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3133 egrep "memchr" >/dev/null 2>&1; then
|
|
|
3134 :
|
|
|
3135 else
|
|
|
3136 rm -rf conftest*
|
|
|
3137 ac_cv_header_stdc=no
|
|
|
3138 fi
|
|
|
3139 rm -f conftest*
|
|
|
3140
|
|
|
3141 fi
|
|
|
3142
|
|
|
3143 if test $ac_cv_header_stdc = yes; then
|
|
|
3144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
3145 cat > conftest.$ac_ext <<EOF
|
|
321
|
3146 #line 3147 "configure"
|
|
149
|
3147 #include "confdefs.h"
|
|
|
3148 #include <stdlib.h>
|
|
|
3149 EOF
|
|
|
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3151 egrep "free" >/dev/null 2>&1; then
|
|
|
3152 :
|
|
|
3153 else
|
|
|
3154 rm -rf conftest*
|
|
|
3155 ac_cv_header_stdc=no
|
|
|
3156 fi
|
|
|
3157 rm -f conftest*
|
|
|
3158
|
|
|
3159 fi
|
|
|
3160
|
|
|
3161 if test $ac_cv_header_stdc = yes; then
|
|
|
3162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
3163 cat > conftest.$ac_ext <<EOF
|
|
321
|
3164 #line 3165 "configure"
|
|
0
|
3165 #include "confdefs.h"
|
|
|
3166 #include <ctype.h>
|
|
|
3167 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
3168 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
149
|
3169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
0
|
3170 int main () { int i; for (i = 0; i < 256; i++)
|
|
|
3171 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
3172 exit (0); }
|
|
|
3173
|
|
|
3174 EOF
|
|
321
|
3175 if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
3176 then
|
|
|
3177 :
|
|
|
3178 else
|
|
306
|
3179 conftest_rc="$?"
|
|
149
|
3180 echo "configure: failed program was:" >&5
|
|
|
3181 cat conftest.$ac_ext >&5
|
|
|
3182 rm -fr conftest*
|
|
|
3183 ac_cv_header_stdc=no
|
|
0
|
3184 fi
|
|
|
3185 rm -fr conftest*
|
|
149
|
3186 fi
|
|
|
3187
|
|
|
3188 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
3189 if test $ac_cv_header_stdc = yes; then
|
|
|
3190 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3191 Defining STDC_HEADERS
|
|
|
3192 EOF
|
|
|
3193 cat >> confdefs.h <<\EOF
|
|
|
3194 #define STDC_HEADERS 1
|
|
|
3195 EOF
|
|
|
3196 }
|
|
|
3197
|
|
|
3198 fi
|
|
|
3199
|
|
|
3200 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
321
|
3201 echo "configure:3202: checking whether time.h and sys/time.h may both be included" >&5
|
|
|
3202
|
|
|
3203 cat > conftest.$ac_ext <<EOF
|
|
|
3204 #line 3205 "configure"
|
|
0
|
3205 #include "confdefs.h"
|
|
|
3206 #include <sys/types.h>
|
|
|
3207 #include <sys/time.h>
|
|
|
3208 #include <time.h>
|
|
149
|
3209 int main() {
|
|
|
3210 struct tm *tp;
|
|
|
3211 ; return 0; }
|
|
|
3212 EOF
|
|
321
|
3213 if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3214 rm -rf conftest*
|
|
|
3215 ac_cv_header_time=yes
|
|
|
3216 else
|
|
|
3217 echo "configure: failed program was:" >&5
|
|
|
3218 cat conftest.$ac_ext >&5
|
|
|
3219 rm -rf conftest*
|
|
|
3220 ac_cv_header_time=no
|
|
|
3221 fi
|
|
|
3222 rm -f conftest*
|
|
|
3223
|
|
|
3224 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
|
3225 if test $ac_cv_header_time = yes; then
|
|
|
3226 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3227 Defining TIME_WITH_SYS_TIME
|
|
|
3228 EOF
|
|
|
3229 cat >> confdefs.h <<\EOF
|
|
|
3230 #define TIME_WITH_SYS_TIME 1
|
|
|
3231 EOF
|
|
|
3232 }
|
|
|
3233
|
|
|
3234 fi
|
|
|
3235
|
|
|
3236 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
|
321
|
3237 echo "configure:3238: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
|
3238
|
|
|
3239 cat > conftest.$ac_ext <<EOF
|
|
|
3240 #line 3241 "configure"
|
|
149
|
3241 #include "confdefs.h"
|
|
|
3242 #include <sys/types.h>
|
|
0
|
3243 #include <signal.h>
|
|
149
|
3244 /* NetBSD declares sys_siglist in unistd.h. */
|
|
0
|
3245 #ifdef HAVE_UNISTD_H
|
|
|
3246 #include <unistd.h>
|
|
|
3247 #endif
|
|
149
|
3248 int main() {
|
|
|
3249 char *msg = *(sys_siglist + 1);
|
|
|
3250 ; return 0; }
|
|
|
3251 EOF
|
|
321
|
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3253 rm -rf conftest*
|
|
|
3254 ac_cv_decl_sys_siglist=yes
|
|
|
3255 else
|
|
|
3256 echo "configure: failed program was:" >&5
|
|
|
3257 cat conftest.$ac_ext >&5
|
|
|
3258 rm -rf conftest*
|
|
|
3259 ac_cv_decl_sys_siglist=no
|
|
|
3260 fi
|
|
|
3261 rm -f conftest*
|
|
|
3262
|
|
|
3263 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
|
3264 if test $ac_cv_decl_sys_siglist = yes; then
|
|
|
3265 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3266 Defining SYS_SIGLIST_DECLARED
|
|
|
3267 EOF
|
|
|
3268 cat >> confdefs.h <<\EOF
|
|
|
3269 #define SYS_SIGLIST_DECLARED 1
|
|
|
3270 EOF
|
|
|
3271 }
|
|
|
3272
|
|
|
3273 fi
|
|
|
3274
|
|
|
3275
|
|
|
3276 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
|
|
321
|
3277 echo "configure:3278: checking for struct utimbuf" >&5
|
|
|
3278 cat > conftest.$ac_ext <<EOF
|
|
|
3279 #line 3280 "configure"
|
|
0
|
3280 #include "confdefs.h"
|
|
|
3281 #ifdef TIME_WITH_SYS_TIME
|
|
|
3282 #include <sys/time.h>
|
|
|
3283 #include <time.h>
|
|
|
3284 #else
|
|
|
3285 #ifdef HAVE_SYS_TIME_H
|
|
|
3286 #include <sys/time.h>
|
|
|
3287 #else
|
|
|
3288 #include <time.h>
|
|
|
3289 #endif
|
|
|
3290 #endif
|
|
|
3291 #ifdef HAVE_UTIME_H
|
|
|
3292 #include <utime.h>
|
|
|
3293 #endif
|
|
149
|
3294 int main() {
|
|
|
3295 static struct utimbuf x; x.actime = x.modtime;
|
|
|
3296 ; return 0; }
|
|
|
3297 EOF
|
|
321
|
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3299 rm -rf conftest*
|
|
|
3300 echo "$ac_t""yes" 1>&6
|
|
|
3301 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3302 Defining HAVE_STRUCT_UTIMBUF
|
|
|
3303 EOF
|
|
|
3304 cat >> confdefs.h <<\EOF
|
|
|
3305 #define HAVE_STRUCT_UTIMBUF 1
|
|
|
3306 EOF
|
|
|
3307 }
|
|
|
3308
|
|
|
3309 else
|
|
|
3310 echo "configure: failed program was:" >&5
|
|
|
3311 cat conftest.$ac_ext >&5
|
|
|
3312 rm -rf conftest*
|
|
|
3313 echo "$ac_t""no" 1>&6
|
|
|
3314 fi
|
|
|
3315 rm -f conftest*
|
|
|
3316
|
|
|
3317 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
321
|
3318 echo "configure:3319: checking return type of signal handlers" >&5
|
|
|
3319
|
|
|
3320 cat > conftest.$ac_ext <<EOF
|
|
|
3321 #line 3322 "configure"
|
|
0
|
3322 #include "confdefs.h"
|
|
|
3323 #include <sys/types.h>
|
|
|
3324 #include <signal.h>
|
|
|
3325 #ifdef signal
|
|
|
3326 #undef signal
|
|
|
3327 #endif
|
|
149
|
3328 #ifdef __cplusplus
|
|
|
3329 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
|
3330 #else
|
|
|
3331 void (*signal ()) ();
|
|
|
3332 #endif
|
|
|
3333
|
|
|
3334 int main() {
|
|
|
3335 int i;
|
|
|
3336 ; return 0; }
|
|
|
3337 EOF
|
|
321
|
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3339 rm -rf conftest*
|
|
|
3340 ac_cv_type_signal=void
|
|
|
3341 else
|
|
|
3342 echo "configure: failed program was:" >&5
|
|
|
3343 cat conftest.$ac_ext >&5
|
|
|
3344 rm -rf conftest*
|
|
|
3345 ac_cv_type_signal=int
|
|
|
3346 fi
|
|
|
3347 rm -f conftest*
|
|
|
3348
|
|
|
3349 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
|
3350 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3351 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
|
3352 EOF
|
|
|
3353 cat >> confdefs.h <<EOF
|
|
|
3354 #define RETSIGTYPE $ac_cv_type_signal
|
|
|
3355 EOF
|
|
|
3356 }
|
|
|
3357
|
|
|
3358
|
|
163
|
3359 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
321
|
3360 echo "configure:3361: checking for size_t" >&5
|
|
|
3361
|
|
|
3362 cat > conftest.$ac_ext <<EOF
|
|
|
3363 #line 3364 "configure"
|
|
163
|
3364 #include "confdefs.h"
|
|
|
3365 #include <sys/types.h>
|
|
|
3366 #if STDC_HEADERS
|
|
|
3367 #include <stdlib.h>
|
|
|
3368 #include <stddef.h>
|
|
|
3369 #endif
|
|
|
3370 EOF
|
|
|
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3372 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3373 rm -rf conftest*
|
|
|
3374 ac_cv_type_size_t=yes
|
|
|
3375 else
|
|
|
3376 rm -rf conftest*
|
|
|
3377 ac_cv_type_size_t=no
|
|
|
3378 fi
|
|
|
3379 rm -f conftest*
|
|
|
3380
|
|
|
3381 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
|
3382 if test $ac_cv_type_size_t = no; then
|
|
|
3383 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3384 Defining size_t = unsigned
|
|
|
3385 EOF
|
|
|
3386 cat >> confdefs.h <<\EOF
|
|
|
3387 #define size_t unsigned
|
|
|
3388 EOF
|
|
|
3389 }
|
|
|
3390
|
|
|
3391 fi
|
|
|
3392
|
|
|
3393 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
321
|
3394 echo "configure:3395: checking for pid_t" >&5
|
|
|
3395
|
|
|
3396 cat > conftest.$ac_ext <<EOF
|
|
|
3397 #line 3398 "configure"
|
|
163
|
3398 #include "confdefs.h"
|
|
|
3399 #include <sys/types.h>
|
|
|
3400 #if STDC_HEADERS
|
|
|
3401 #include <stdlib.h>
|
|
|
3402 #include <stddef.h>
|
|
|
3403 #endif
|
|
|
3404 EOF
|
|
|
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3406 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3407 rm -rf conftest*
|
|
|
3408 ac_cv_type_pid_t=yes
|
|
|
3409 else
|
|
|
3410 rm -rf conftest*
|
|
|
3411 ac_cv_type_pid_t=no
|
|
|
3412 fi
|
|
|
3413 rm -f conftest*
|
|
|
3414
|
|
|
3415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
|
3416 if test $ac_cv_type_pid_t = no; then
|
|
|
3417 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3418 Defining pid_t = int
|
|
|
3419 EOF
|
|
|
3420 cat >> confdefs.h <<\EOF
|
|
|
3421 #define pid_t int
|
|
|
3422 EOF
|
|
|
3423 }
|
|
|
3424
|
|
|
3425 fi
|
|
|
3426
|
|
|
3427 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
|
321
|
3428 echo "configure:3429: checking for uid_t in sys/types.h" >&5
|
|
|
3429
|
|
|
3430 cat > conftest.$ac_ext <<EOF
|
|
|
3431 #line 3432 "configure"
|
|
163
|
3432 #include "confdefs.h"
|
|
|
3433 #include <sys/types.h>
|
|
|
3434 EOF
|
|
|
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3436 egrep "uid_t" >/dev/null 2>&1; then
|
|
|
3437 rm -rf conftest*
|
|
|
3438 ac_cv_type_uid_t=yes
|
|
|
3439 else
|
|
|
3440 rm -rf conftest*
|
|
|
3441 ac_cv_type_uid_t=no
|
|
|
3442 fi
|
|
|
3443 rm -f conftest*
|
|
|
3444
|
|
|
3445
|
|
|
3446 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
|
3447 if test $ac_cv_type_uid_t = no; then
|
|
|
3448 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3449 Defining uid_t = int
|
|
|
3450 EOF
|
|
|
3451 cat >> confdefs.h <<\EOF
|
|
|
3452 #define uid_t int
|
|
|
3453 EOF
|
|
|
3454 }
|
|
|
3455
|
|
|
3456 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3457 Defining gid_t = int
|
|
|
3458 EOF
|
|
|
3459 cat >> confdefs.h <<\EOF
|
|
|
3460 #define gid_t int
|
|
|
3461 EOF
|
|
|
3462 }
|
|
|
3463
|
|
|
3464 fi
|
|
|
3465
|
|
|
3466 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|
321
|
3467 echo "configure:3468: checking for mode_t" >&5
|
|
|
3468
|
|
|
3469 cat > conftest.$ac_ext <<EOF
|
|
|
3470 #line 3471 "configure"
|
|
163
|
3471 #include "confdefs.h"
|
|
|
3472 #include <sys/types.h>
|
|
|
3473 #if STDC_HEADERS
|
|
|
3474 #include <stdlib.h>
|
|
|
3475 #include <stddef.h>
|
|
|
3476 #endif
|
|
|
3477 EOF
|
|
|
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3479 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3480 rm -rf conftest*
|
|
|
3481 ac_cv_type_mode_t=yes
|
|
|
3482 else
|
|
|
3483 rm -rf conftest*
|
|
|
3484 ac_cv_type_mode_t=no
|
|
|
3485 fi
|
|
|
3486 rm -f conftest*
|
|
|
3487
|
|
|
3488 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
|
3489 if test $ac_cv_type_mode_t = no; then
|
|
|
3490 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3491 Defining mode_t = int
|
|
|
3492 EOF
|
|
|
3493 cat >> confdefs.h <<\EOF
|
|
|
3494 #define mode_t int
|
|
|
3495 EOF
|
|
|
3496 }
|
|
|
3497
|
|
|
3498 fi
|
|
|
3499
|
|
|
3500 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
321
|
3501 echo "configure:3502: checking for off_t" >&5
|
|
|
3502
|
|
|
3503 cat > conftest.$ac_ext <<EOF
|
|
|
3504 #line 3505 "configure"
|
|
163
|
3505 #include "confdefs.h"
|
|
|
3506 #include <sys/types.h>
|
|
|
3507 #if STDC_HEADERS
|
|
|
3508 #include <stdlib.h>
|
|
|
3509 #include <stddef.h>
|
|
|
3510 #endif
|
|
|
3511 EOF
|
|
|
3512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
3513 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
|
3514 rm -rf conftest*
|
|
|
3515 ac_cv_type_off_t=yes
|
|
|
3516 else
|
|
|
3517 rm -rf conftest*
|
|
|
3518 ac_cv_type_off_t=no
|
|
|
3519 fi
|
|
|
3520 rm -f conftest*
|
|
|
3521
|
|
|
3522 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
|
3523 if test $ac_cv_type_off_t = no; then
|
|
|
3524 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3525 Defining off_t = long
|
|
|
3526 EOF
|
|
|
3527 cat >> confdefs.h <<\EOF
|
|
|
3528 #define off_t long
|
|
|
3529 EOF
|
|
|
3530 }
|
|
|
3531
|
|
|
3532 fi
|
|
|
3533
|
|
149
|
3534
|
|
|
3535 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
|
321
|
3536 echo "configure:3537: checking for struct timeval" >&5
|
|
|
3537 cat > conftest.$ac_ext <<EOF
|
|
|
3538 #line 3539 "configure"
|
|
0
|
3539 #include "confdefs.h"
|
|
|
3540 #ifdef TIME_WITH_SYS_TIME
|
|
|
3541 #include <sys/time.h>
|
|
|
3542 #include <time.h>
|
|
|
3543 #else
|
|
|
3544 #ifdef HAVE_SYS_TIME_H
|
|
|
3545 #include <sys/time.h>
|
|
|
3546 #else
|
|
|
3547 #include <time.h>
|
|
|
3548 #endif
|
|
|
3549 #endif
|
|
149
|
3550 int main() {
|
|
|
3551 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
|
3552 ; return 0; }
|
|
|
3553 EOF
|
|
321
|
3554 if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3555 rm -rf conftest*
|
|
|
3556 echo "$ac_t""yes" 1>&6
|
|
0
|
3557 HAVE_TIMEVAL=yes
|
|
149
|
3558 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3559 Defining HAVE_TIMEVAL
|
|
|
3560 EOF
|
|
|
3561 cat >> confdefs.h <<\EOF
|
|
|
3562 #define HAVE_TIMEVAL 1
|
|
|
3563 EOF
|
|
|
3564 }
|
|
|
3565
|
|
|
3566 else
|
|
|
3567 echo "configure: failed program was:" >&5
|
|
|
3568 cat conftest.$ac_ext >&5
|
|
|
3569 rm -rf conftest*
|
|
|
3570 echo "$ac_t""no" 1>&6
|
|
|
3571 HAVE_TIMEVAL=no
|
|
|
3572 fi
|
|
|
3573 rm -f conftest*
|
|
|
3574
|
|
|
3575 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
321
|
3576 echo "configure:3577: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
|
3577
|
|
|
3578 cat > conftest.$ac_ext <<EOF
|
|
|
3579 #line 3580 "configure"
|
|
0
|
3580 #include "confdefs.h"
|
|
|
3581 #include <sys/types.h>
|
|
|
3582 #include <time.h>
|
|
149
|
3583 int main() {
|
|
|
3584 struct tm *tp; tp->tm_sec;
|
|
|
3585 ; return 0; }
|
|
|
3586 EOF
|
|
321
|
3587 if { (eval echo configure:3588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3588 rm -rf conftest*
|
|
|
3589 ac_cv_struct_tm=time.h
|
|
|
3590 else
|
|
|
3591 echo "configure: failed program was:" >&5
|
|
|
3592 cat conftest.$ac_ext >&5
|
|
|
3593 rm -rf conftest*
|
|
|
3594 ac_cv_struct_tm=sys/time.h
|
|
|
3595 fi
|
|
|
3596 rm -f conftest*
|
|
|
3597
|
|
|
3598 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
|
3599 if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
3600 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3601 Defining TM_IN_SYS_TIME
|
|
|
3602 EOF
|
|
|
3603 cat >> confdefs.h <<\EOF
|
|
|
3604 #define TM_IN_SYS_TIME 1
|
|
|
3605 EOF
|
|
|
3606 }
|
|
|
3607
|
|
|
3608 fi
|
|
|
3609
|
|
|
3610 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
|
321
|
3611 echo "configure:3612: checking for tm_zone in struct tm" >&5
|
|
|
3612
|
|
|
3613 cat > conftest.$ac_ext <<EOF
|
|
|
3614 #line 3615 "configure"
|
|
149
|
3615 #include "confdefs.h"
|
|
|
3616 #include <sys/types.h>
|
|
|
3617 #include <$ac_cv_struct_tm>
|
|
|
3618 int main() {
|
|
|
3619 struct tm tm; tm.tm_zone;
|
|
|
3620 ; return 0; }
|
|
|
3621 EOF
|
|
321
|
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3623 rm -rf conftest*
|
|
|
3624 ac_cv_struct_tm_zone=yes
|
|
|
3625 else
|
|
|
3626 echo "configure: failed program was:" >&5
|
|
|
3627 cat conftest.$ac_ext >&5
|
|
|
3628 rm -rf conftest*
|
|
|
3629 ac_cv_struct_tm_zone=no
|
|
|
3630 fi
|
|
|
3631 rm -f conftest*
|
|
|
3632
|
|
|
3633 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
|
3634 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
|
3635 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3636 Defining HAVE_TM_ZONE
|
|
|
3637 EOF
|
|
|
3638 cat >> confdefs.h <<\EOF
|
|
|
3639 #define HAVE_TM_ZONE 1
|
|
|
3640 EOF
|
|
|
3641 }
|
|
|
3642
|
|
|
3643 else
|
|
|
3644 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
|
321
|
3645 echo "configure:3646: checking for tzname" >&5
|
|
|
3646
|
|
|
3647 cat > conftest.$ac_ext <<EOF
|
|
|
3648 #line 3649 "configure"
|
|
0
|
3649 #include "confdefs.h"
|
|
|
3650 #include <time.h>
|
|
|
3651 #ifndef tzname /* For SGI. */
|
|
149
|
3652 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
|
0
|
3653 #endif
|
|
149
|
3654 int main() {
|
|
|
3655 atoi(*tzname);
|
|
|
3656 ; return 0; }
|
|
|
3657 EOF
|
|
321
|
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
3659 rm -rf conftest*
|
|
|
3660 ac_cv_var_tzname=yes
|
|
|
3661 else
|
|
|
3662 echo "configure: failed program was:" >&5
|
|
|
3663 cat conftest.$ac_ext >&5
|
|
|
3664 rm -rf conftest*
|
|
|
3665 ac_cv_var_tzname=no
|
|
|
3666 fi
|
|
|
3667 rm -f conftest*
|
|
|
3668
|
|
|
3669 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
|
3670 if test $ac_cv_var_tzname = yes; then
|
|
|
3671 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3672 Defining HAVE_TZNAME
|
|
|
3673 EOF
|
|
|
3674 cat >> confdefs.h <<\EOF
|
|
|
3675 #define HAVE_TZNAME 1
|
|
|
3676 EOF
|
|
|
3677 }
|
|
|
3678
|
|
|
3679 fi
|
|
|
3680 fi
|
|
|
3681
|
|
|
3682
|
|
|
3683 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
321
|
3684 echo "configure:3685: checking for working const" >&5
|
|
|
3685
|
|
|
3686 cat > conftest.$ac_ext <<EOF
|
|
|
3687 #line 3688 "configure"
|
|
149
|
3688 #include "confdefs.h"
|
|
|
3689
|
|
|
3690 int main() {
|
|
|
3691
|
|
|
3692 /* Ultrix mips cc rejects this. */
|
|
0
|
3693 typedef int charset[2]; const charset x;
|
|
|
3694 /* SunOS 4.1.1 cc rejects this. */
|
|
|
3695 char const *const *ccp;
|
|
|
3696 char **p;
|
|
149
|
3697 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
|
3698 struct point {int x, y;};
|
|
|
3699 static struct point const zero = {0,0};
|
|
0
|
3700 /* AIX XL C 1.02.0.0 rejects this.
|
|
|
3701 It does not let you subtract one const X* pointer from another in an arm
|
|
|
3702 of an if-expression whose if-part is not a constant expression */
|
|
|
3703 const char *g = "string";
|
|
|
3704 ccp = &g + (g ? g-g : 0);
|
|
|
3705 /* HPUX 7.0 cc rejects these. */
|
|
|
3706 ++ccp;
|
|
|
3707 p = (char**) ccp;
|
|
|
3708 ccp = (char const *const *) p;
|
|
|
3709 { /* SCO 3.2v4 cc rejects this. */
|
|
|
3710 char *t;
|
|
|
3711 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
3712
|
|
|
3713 *t++ = 0;
|
|
|
3714 }
|
|
|
3715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
149
|
3716 int x[] = {25, 17};
|
|
0
|
3717 const int *foo = &x[0];
|
|
|
3718 ++foo;
|
|
|
3719 }
|
|
|
3720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
|
3721 typedef const int *iptr;
|
|
|
3722 iptr p = 0;
|
|
|
3723 ++p;
|
|
|
3724 }
|
|
|
3725 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
|
3726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
|
3727 struct s { int j; const int *ap[3]; };
|
|
|
3728 struct s *b; b->j = 5;
|
|
|
3729 }
|
|
|
3730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
|
3731 const int foo = 10;
|
|
149
|
3732 }
|
|
|
3733
|
|
|
3734 ; return 0; }
|
|
|
3735 EOF
|
|
321
|
3736 if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3737 rm -rf conftest*
|
|
|
3738 ac_cv_c_const=yes
|
|
|
3739 else
|
|
|
3740 echo "configure: failed program was:" >&5
|
|
|
3741 cat conftest.$ac_ext >&5
|
|
|
3742 rm -rf conftest*
|
|
|
3743 ac_cv_c_const=no
|
|
|
3744 fi
|
|
|
3745 rm -f conftest*
|
|
|
3746
|
|
|
3747 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
|
3748 if test $ac_cv_c_const = no; then
|
|
|
3749 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3750 Defining const =
|
|
|
3751 EOF
|
|
|
3752 cat >> confdefs.h <<\EOF
|
|
|
3753 #define const
|
|
|
3754 EOF
|
|
|
3755 }
|
|
|
3756
|
|
|
3757 fi
|
|
|
3758
|
|
|
3759
|
|
|
3760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
321
|
3761 echo "configure:3762: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
149
|
3762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
|
3763
|
|
|
3764 cat > conftestmake <<\EOF
|
|
0
|
3765 all:
|
|
|
3766 @echo 'ac_maketemp="${MAKE}"'
|
|
|
3767 EOF
|
|
|
3768 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
3769 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
149
|
3770 if test -n "$ac_maketemp"; then
|
|
|
3771 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
|
3772 else
|
|
|
3773 eval ac_cv_prog_make_${ac_make}_set=no
|
|
|
3774 fi
|
|
0
|
3775 rm -f conftestmake
|
|
149
|
3776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
|
3777 echo "$ac_t""yes" 1>&6
|
|
|
3778 SET_MAKE=
|
|
|
3779 else
|
|
|
3780 echo "$ac_t""no" 1>&6
|
|
|
3781 SET_MAKE="MAKE=${MAKE-make}"
|
|
|
3782 fi
|
|
|
3783
|
|
|
3784
|
|
|
3785 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
321
|
3786 echo "configure:3787: checking whether byte ordering is bigendian" >&5
|
|
149
|
3787
|
|
|
3788 ac_cv_c_bigendian=unknown
|
|
|
3789 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
|
3790 cat > conftest.$ac_ext <<EOF
|
|
321
|
3791 #line 3792 "configure"
|
|
149
|
3792 #include "confdefs.h"
|
|
|
3793 #include <sys/types.h>
|
|
|
3794 #include <sys/param.h>
|
|
|
3795 int main() {
|
|
|
3796
|
|
|
3797 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
|
3798 bogus endian macros
|
|
|
3799 #endif
|
|
|
3800 ; return 0; }
|
|
|
3801 EOF
|
|
321
|
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3803 rm -rf conftest*
|
|
|
3804 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
|
3805 cat > conftest.$ac_ext <<EOF
|
|
321
|
3806 #line 3807 "configure"
|
|
149
|
3807 #include "confdefs.h"
|
|
|
3808 #include <sys/types.h>
|
|
|
3809 #include <sys/param.h>
|
|
|
3810 int main() {
|
|
|
3811
|
|
|
3812 #if BYTE_ORDER != BIG_ENDIAN
|
|
|
3813 not big endian
|
|
|
3814 #endif
|
|
|
3815 ; return 0; }
|
|
|
3816 EOF
|
|
321
|
3817 if { (eval echo configure:3818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
3818 rm -rf conftest*
|
|
|
3819 ac_cv_c_bigendian=yes
|
|
|
3820 else
|
|
|
3821 echo "configure: failed program was:" >&5
|
|
|
3822 cat conftest.$ac_ext >&5
|
|
|
3823 rm -rf conftest*
|
|
|
3824 ac_cv_c_bigendian=no
|
|
|
3825 fi
|
|
|
3826 rm -f conftest*
|
|
|
3827 else
|
|
|
3828 echo "configure: failed program was:" >&5
|
|
|
3829 cat conftest.$ac_ext >&5
|
|
|
3830 fi
|
|
|
3831 rm -f conftest*
|
|
|
3832 if test $ac_cv_c_bigendian = unknown; then
|
|
|
3833 cat > conftest.$ac_ext <<EOF
|
|
321
|
3834 #line 3835 "configure"
|
|
0
|
3835 #include "confdefs.h"
|
|
|
3836 main () {
|
|
|
3837 /* Are we little or big endian? From Harbison&Steele. */
|
|
|
3838 union
|
|
|
3839 {
|
|
|
3840 long l;
|
|
|
3841 char c[sizeof (long)];
|
|
|
3842 } u;
|
|
|
3843 u.l = 1;
|
|
|
3844 exit (u.c[sizeof (long) - 1] == 1);
|
|
|
3845 }
|
|
|
3846 EOF
|
|
321
|
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
3848 then
|
|
|
3849 ac_cv_c_bigendian=no
|
|
|
3850 else
|
|
306
|
3851 conftest_rc="$?"
|
|
149
|
3852 echo "configure: failed program was:" >&5
|
|
|
3853 cat conftest.$ac_ext >&5
|
|
|
3854 rm -fr conftest*
|
|
|
3855 ac_cv_c_bigendian=yes
|
|
0
|
3856 fi
|
|
|
3857 rm -fr conftest*
|
|
149
|
3858 fi
|
|
|
3859
|
|
|
3860 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
|
3861 if test $ac_cv_c_bigendian = yes; then
|
|
|
3862 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
3863 Defining WORDS_BIGENDIAN
|
|
|
3864 EOF
|
|
|
3865 cat >> confdefs.h <<\EOF
|
|
|
3866 #define WORDS_BIGENDIAN 1
|
|
|
3867 EOF
|
|
|
3868 }
|
|
|
3869
|
|
|
3870 fi
|
|
|
3871
|
|
|
3872
|
|
151
|
3873 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|
321
|
3874 echo "configure:3875: checking size of short" >&5
|
|
|
3875
|
|
|
3876 cat > conftest.$ac_ext <<EOF
|
|
|
3877 #line 3878 "configure"
|
|
151
|
3878 #include "confdefs.h"
|
|
|
3879 #include <stdio.h>
|
|
|
3880 main()
|
|
|
3881 {
|
|
|
3882 FILE *f=fopen("conftestval", "w");
|
|
|
3883 if (!f) exit(1);
|
|
|
3884 fprintf(f, "%d\n", sizeof(short));
|
|
|
3885 exit(0);
|
|
|
3886 }
|
|
|
3887 EOF
|
|
321
|
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
151
|
3889 then
|
|
|
3890 ac_cv_sizeof_short=`cat conftestval`
|
|
|
3891 else
|
|
306
|
3892 conftest_rc="$?"
|
|
151
|
3893 echo "configure: failed program was:" >&5
|
|
|
3894 cat conftest.$ac_ext >&5
|
|
|
3895 rm -fr conftest*
|
|
|
3896 ac_cv_sizeof_short=0
|
|
|
3897 fi
|
|
|
3898 rm -fr conftest*
|
|
|
3899 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
|
3900 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3901 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
|
3902 EOF
|
|
|
3903 cat >> confdefs.h <<EOF
|
|
|
3904 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
|
3905 EOF
|
|
|
3906 }
|
|
|
3907
|
|
|
3908
|
|
163
|
3909 if test "$ac_cv_sizeof_short" = 0; then
|
|
|
3910 echo ""
|
|
|
3911 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
|
3912 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
|
3913 exit 1
|
|
|
3914 fi
|
|
151
|
3915 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|
321
|
3916 echo "configure:3917: checking size of int" >&5
|
|
|
3917
|
|
|
3918 cat > conftest.$ac_ext <<EOF
|
|
|
3919 #line 3920 "configure"
|
|
151
|
3920 #include "confdefs.h"
|
|
|
3921 #include <stdio.h>
|
|
|
3922 main()
|
|
|
3923 {
|
|
|
3924 FILE *f=fopen("conftestval", "w");
|
|
|
3925 if (!f) exit(1);
|
|
|
3926 fprintf(f, "%d\n", sizeof(int));
|
|
|
3927 exit(0);
|
|
|
3928 }
|
|
|
3929 EOF
|
|
321
|
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
151
|
3931 then
|
|
|
3932 ac_cv_sizeof_int=`cat conftestval`
|
|
|
3933 else
|
|
306
|
3934 conftest_rc="$?"
|
|
151
|
3935 echo "configure: failed program was:" >&5
|
|
|
3936 cat conftest.$ac_ext >&5
|
|
|
3937 rm -fr conftest*
|
|
|
3938 ac_cv_sizeof_int=0
|
|
|
3939 fi
|
|
|
3940 rm -fr conftest*
|
|
|
3941 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
3942 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3943 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
|
3944 EOF
|
|
|
3945 cat >> confdefs.h <<EOF
|
|
|
3946 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
|
3947 EOF
|
|
|
3948 }
|
|
|
3949
|
|
|
3950
|
|
|
3951 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|
321
|
3952 echo "configure:3953: checking size of long" >&5
|
|
|
3953
|
|
|
3954 cat > conftest.$ac_ext <<EOF
|
|
|
3955 #line 3956 "configure"
|
|
151
|
3956 #include "confdefs.h"
|
|
|
3957 #include <stdio.h>
|
|
|
3958 main()
|
|
|
3959 {
|
|
|
3960 FILE *f=fopen("conftestval", "w");
|
|
|
3961 if (!f) exit(1);
|
|
|
3962 fprintf(f, "%d\n", sizeof(long));
|
|
|
3963 exit(0);
|
|
|
3964 }
|
|
|
3965 EOF
|
|
321
|
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
151
|
3967 then
|
|
|
3968 ac_cv_sizeof_long=`cat conftestval`
|
|
|
3969 else
|
|
306
|
3970 conftest_rc="$?"
|
|
151
|
3971 echo "configure: failed program was:" >&5
|
|
|
3972 cat conftest.$ac_ext >&5
|
|
|
3973 rm -fr conftest*
|
|
|
3974 ac_cv_sizeof_long=0
|
|
|
3975 fi
|
|
|
3976 rm -fr conftest*
|
|
|
3977 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
|
3978 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
3979 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
|
3980 EOF
|
|
|
3981 cat >> confdefs.h <<EOF
|
|
|
3982 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
|
3983 EOF
|
|
|
3984 }
|
|
|
3985
|
|
|
3986
|
|
163
|
3987 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
|
321
|
3988 echo "configure:3989: checking size of long long" >&5
|
|
|
3989
|
|
|
3990 cat > conftest.$ac_ext <<EOF
|
|
|
3991 #line 3992 "configure"
|
|
163
|
3992 #include "confdefs.h"
|
|
|
3993 #include <stdio.h>
|
|
|
3994 main()
|
|
|
3995 {
|
|
|
3996 FILE *f=fopen("conftestval", "w");
|
|
|
3997 if (!f) exit(1);
|
|
|
3998 fprintf(f, "%d\n", sizeof(long long));
|
|
|
3999 exit(0);
|
|
|
4000 }
|
|
|
4001 EOF
|
|
321
|
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
163
|
4003 then
|
|
|
4004 ac_cv_sizeof_long_long=`cat conftestval`
|
|
|
4005 else
|
|
306
|
4006 conftest_rc="$?"
|
|
163
|
4007 echo "configure: failed program was:" >&5
|
|
|
4008 cat conftest.$ac_ext >&5
|
|
|
4009 rm -fr conftest*
|
|
|
4010 ac_cv_sizeof_long_long=0
|
|
|
4011 fi
|
|
|
4012 rm -fr conftest*
|
|
|
4013 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
|
4014 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4015 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
|
4016 EOF
|
|
|
4017 cat >> confdefs.h <<EOF
|
|
|
4018 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
|
4019 EOF
|
|
|
4020 }
|
|
|
4021
|
|
|
4022
|
|
|
4023 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
|
321
|
4024 echo "configure:4025: checking size of void *" >&5
|
|
|
4025
|
|
|
4026 cat > conftest.$ac_ext <<EOF
|
|
|
4027 #line 4028 "configure"
|
|
163
|
4028 #include "confdefs.h"
|
|
|
4029 #include <stdio.h>
|
|
|
4030 main()
|
|
|
4031 {
|
|
|
4032 FILE *f=fopen("conftestval", "w");
|
|
|
4033 if (!f) exit(1);
|
|
|
4034 fprintf(f, "%d\n", sizeof(void *));
|
|
|
4035 exit(0);
|
|
|
4036 }
|
|
|
4037 EOF
|
|
321
|
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
163
|
4039 then
|
|
|
4040 ac_cv_sizeof_void_p=`cat conftestval`
|
|
|
4041 else
|
|
306
|
4042 conftest_rc="$?"
|
|
163
|
4043 echo "configure: failed program was:" >&5
|
|
|
4044 cat conftest.$ac_ext >&5
|
|
|
4045 rm -fr conftest*
|
|
|
4046 ac_cv_sizeof_void_p=0
|
|
|
4047 fi
|
|
|
4048 rm -fr conftest*
|
|
|
4049 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
|
4050 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4051 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
|
4052 EOF
|
|
|
4053 cat >> confdefs.h <<EOF
|
|
|
4054 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
|
4055 EOF
|
|
|
4056 }
|
|
|
4057
|
|
|
4058
|
|
151
|
4059
|
|
149
|
4060 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
|
321
|
4061 echo "configure:4062: checking for long file names" >&5
|
|
149
|
4062
|
|
|
4063 ac_cv_sys_long_file_names=yes
|
|
0
|
4064 # Test for long file names in all the places we know might matter:
|
|
|
4065 # . the current directory, where building will happen
|
|
149
|
4066 # $prefix/lib where we will be installing things
|
|
|
4067 # $exec_prefix/lib likewise
|
|
|
4068 # eval it to expand exec_prefix.
|
|
|
4069 # $TMPDIR if set, where it might want to write temporary files
|
|
|
4070 # if $TMPDIR is not set:
|
|
0
|
4071 # /tmp where it might want to write temporary files
|
|
|
4072 # /var/tmp likewise
|
|
|
4073 # /usr/tmp likewise
|
|
149
|
4074 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
|
4075 ac_tmpdirs="$TMPDIR"
|
|
|
4076 else
|
|
|
4077 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
|
4078 fi
|
|
|
4079 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
|
0
|
4080 test -d $ac_dir || continue
|
|
149
|
4081 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
|
0
|
4082 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
|
4083 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
|
4084 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
|
149
|
4085 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
|
4086 ac_cv_sys_long_file_names=no
|
|
|
4087 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
4088 break
|
|
0
|
4089 fi
|
|
149
|
4090 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
|
4091 done
|
|
|
4092
|
|
|
4093 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
|
4094 if test $ac_cv_sys_long_file_names = yes; then
|
|
|
4095 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4096 Defining HAVE_LONG_FILE_NAMES
|
|
|
4097 EOF
|
|
|
4098 cat >> confdefs.h <<\EOF
|
|
|
4099 #define HAVE_LONG_FILE_NAMES 1
|
|
|
4100 EOF
|
|
|
4101 }
|
|
|
4102
|
|
|
4103 fi
|
|
|
4104
|
|
|
4105
|
|
|
4106
|
|
207
|
4107 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
|
321
|
4108 echo "configure:4109: checking for sin in -lm" >&5
|
|
207
|
4109 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
|
149
|
4110
|
|
|
4111 xe_check_libs=" -lm "
|
|
|
4112 cat > conftest.$ac_ext <<EOF
|
|
321
|
4113 #line 4114 "configure"
|
|
149
|
4114 #include "confdefs.h"
|
|
|
4115 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4116 /* We use char because int might match the return type of a gcc2
|
|
|
4117 builtin and then its argument prototype would still apply. */
|
|
207
|
4118 char sin();
|
|
149
|
4119
|
|
|
4120 int main() {
|
|
207
|
4121 sin()
|
|
149
|
4122 ; return 0; }
|
|
|
4123 EOF
|
|
321
|
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4125 rm -rf conftest*
|
|
|
4126 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4127 else
|
|
|
4128 echo "configure: failed program was:" >&5
|
|
|
4129 cat conftest.$ac_ext >&5
|
|
|
4130 rm -rf conftest*
|
|
|
4131 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4132 fi
|
|
|
4133 rm -f conftest*
|
|
|
4134 xe_check_libs=""
|
|
|
4135
|
|
151
|
4136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4137 echo "$ac_t""yes" 1>&6
|
|
|
4138 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
4139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
4140 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4141 Defining $ac_tr_lib
|
|
|
4142 EOF
|
|
|
4143 cat >> confdefs.h <<EOF
|
|
|
4144 #define $ac_tr_lib 1
|
|
|
4145 EOF
|
|
|
4146 }
|
|
|
4147
|
|
151
|
4148 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
|
4149
|
|
|
4150 else
|
|
|
4151 echo "$ac_t""no" 1>&6
|
|
|
4152 fi
|
|
|
4153
|
|
|
4154
|
|
|
4155
|
|
|
4156 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4157 Defining LISP_FLOAT_TYPE
|
|
|
4158 EOF
|
|
|
4159 cat >> confdefs.h <<\EOF
|
|
|
4160 #define LISP_FLOAT_TYPE 1
|
|
|
4161 EOF
|
|
|
4162 }
|
|
149
|
4163
|
|
|
4164
|
|
243
|
4165 cat > conftest.$ac_ext <<EOF
|
|
321
|
4166 #line 4167 "configure"
|
|
243
|
4167 #include "confdefs.h"
|
|
|
4168 #include <math.h>
|
|
|
4169 int main() {
|
|
|
4170 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
|
4171 ; return 0; }
|
|
|
4172 EOF
|
|
321
|
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
243
|
4174 rm -rf conftest*
|
|
|
4175 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4176 Defining HAVE_INVERSE_HYPERBOLIC
|
|
|
4177 EOF
|
|
|
4178 cat >> confdefs.h <<\EOF
|
|
|
4179 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
|
4180 EOF
|
|
|
4181 }
|
|
|
4182
|
|
|
4183 else
|
|
|
4184 echo "configure: failed program was:" >&5
|
|
|
4185 cat conftest.$ac_ext >&5
|
|
|
4186 fi
|
|
|
4187 rm -f conftest*
|
|
|
4188
|
|
149
|
4189 echo "checking type of mail spool file locking" 1>&6
|
|
321
|
4190 echo "configure:4191: checking type of mail spool file locking" >&5
|
|
149
|
4191 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
|
4192 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
|
|
4193 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4194 Defining REAL_MAIL_USE_LOCKF
|
|
|
4195 EOF
|
|
|
4196 cat >> confdefs.h <<\EOF
|
|
|
4197 #define REAL_MAIL_USE_LOCKF 1
|
|
|
4198 EOF
|
|
|
4199 }
|
|
|
4200
|
|
|
4201 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4202 Defining REAL_MAIL_USE_FLOCK
|
|
|
4203 EOF
|
|
|
4204 cat >> confdefs.h <<\EOF
|
|
|
4205 #define REAL_MAIL_USE_FLOCK 1
|
|
|
4206 EOF
|
|
|
4207 }
|
|
|
4208
|
|
157
|
4209 else mail_locking="dot-locking"
|
|
149
|
4210 fi
|
|
|
4211
|
|
151
|
4212
|
|
|
4213 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
|
321
|
4214 echo "configure:4215: checking for kstat_open in -lkstat" >&5
|
|
151
|
4215 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
|
4216
|
|
|
4217 xe_check_libs=" -lkstat "
|
|
|
4218 cat > conftest.$ac_ext <<EOF
|
|
321
|
4219 #line 4220 "configure"
|
|
151
|
4220 #include "confdefs.h"
|
|
|
4221 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4222 /* We use char because int might match the return type of a gcc2
|
|
|
4223 builtin and then its argument prototype would still apply. */
|
|
|
4224 char kstat_open();
|
|
|
4225
|
|
|
4226 int main() {
|
|
|
4227 kstat_open()
|
|
|
4228 ; return 0; }
|
|
|
4229 EOF
|
|
321
|
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
4231 rm -rf conftest*
|
|
|
4232 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4233 else
|
|
|
4234 echo "configure: failed program was:" >&5
|
|
|
4235 cat conftest.$ac_ext >&5
|
|
|
4236 rm -rf conftest*
|
|
|
4237 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4238 fi
|
|
|
4239 rm -f conftest*
|
|
|
4240 xe_check_libs=""
|
|
|
4241
|
|
|
4242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
4243 echo "$ac_t""yes" 1>&6
|
|
|
4244 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
4245 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
4246 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4247 Defining $ac_tr_lib
|
|
|
4248 EOF
|
|
|
4249 cat >> confdefs.h <<EOF
|
|
|
4250 #define $ac_tr_lib 1
|
|
|
4251 EOF
|
|
|
4252 }
|
|
|
4253
|
|
|
4254 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
|
4255
|
|
|
4256 else
|
|
|
4257 echo "$ac_t""no" 1>&6
|
|
|
4258 fi
|
|
|
4259
|
|
|
4260
|
|
|
4261
|
|
|
4262
|
|
|
4263 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
|
321
|
4264 echo "configure:4265: checking for kvm_read in -lkvm" >&5
|
|
151
|
4265 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
|
4266
|
|
|
4267 xe_check_libs=" -lkvm "
|
|
|
4268 cat > conftest.$ac_ext <<EOF
|
|
321
|
4269 #line 4270 "configure"
|
|
151
|
4270 #include "confdefs.h"
|
|
|
4271 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4272 /* We use char because int might match the return type of a gcc2
|
|
|
4273 builtin and then its argument prototype would still apply. */
|
|
|
4274 char kvm_read();
|
|
|
4275
|
|
|
4276 int main() {
|
|
|
4277 kvm_read()
|
|
|
4278 ; return 0; }
|
|
|
4279 EOF
|
|
321
|
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
4281 rm -rf conftest*
|
|
|
4282 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4283 else
|
|
|
4284 echo "configure: failed program was:" >&5
|
|
|
4285 cat conftest.$ac_ext >&5
|
|
|
4286 rm -rf conftest*
|
|
|
4287 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4288 fi
|
|
|
4289 rm -f conftest*
|
|
|
4290 xe_check_libs=""
|
|
|
4291
|
|
|
4292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
4293 echo "$ac_t""yes" 1>&6
|
|
|
4294 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
4295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
4296 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4297 Defining $ac_tr_lib
|
|
|
4298 EOF
|
|
|
4299 cat >> confdefs.h <<EOF
|
|
|
4300 #define $ac_tr_lib 1
|
|
|
4301 EOF
|
|
|
4302 }
|
|
|
4303
|
|
|
4304 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
|
4305
|
|
|
4306 else
|
|
|
4307 echo "$ac_t""no" 1>&6
|
|
|
4308 fi
|
|
|
4309
|
|
|
4310
|
|
|
4311
|
|
278
|
4312 case "$opsys" in decosf*)
|
|
|
4313
|
|
151
|
4314 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
|
321
|
4315 echo "configure:4316: checking for cma_open in -lpthreads" >&5
|
|
151
|
4316 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
|
4317
|
|
|
4318 xe_check_libs=" -lpthreads "
|
|
|
4319 cat > conftest.$ac_ext <<EOF
|
|
321
|
4320 #line 4321 "configure"
|
|
151
|
4321 #include "confdefs.h"
|
|
|
4322 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4323 /* We use char because int might match the return type of a gcc2
|
|
|
4324 builtin and then its argument prototype would still apply. */
|
|
|
4325 char cma_open();
|
|
|
4326
|
|
|
4327 int main() {
|
|
|
4328 cma_open()
|
|
|
4329 ; return 0; }
|
|
|
4330 EOF
|
|
321
|
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
4332 rm -rf conftest*
|
|
|
4333 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4334 else
|
|
|
4335 echo "configure: failed program was:" >&5
|
|
|
4336 cat conftest.$ac_ext >&5
|
|
|
4337 rm -rf conftest*
|
|
|
4338 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4339 fi
|
|
|
4340 rm -f conftest*
|
|
|
4341 xe_check_libs=""
|
|
|
4342
|
|
|
4343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
4344 echo "$ac_t""yes" 1>&6
|
|
|
4345 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
4346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
4347 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
4348 Defining $ac_tr_lib
|
|
|
4349 EOF
|
|
|
4350 cat >> confdefs.h <<EOF
|
|
|
4351 #define $ac_tr_lib 1
|
|
|
4352 EOF
|
|
|
4353 }
|
|
|
4354
|
|
|
4355 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
|
4356
|
|
|
4357 else
|
|
|
4358 echo "$ac_t""no" 1>&6
|
|
|
4359 fi
|
|
|
4360
|
|
|
4361
|
|
278
|
4362 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
|
4363 c_switch_site="$c_switch_site -threads" ;;
|
|
|
4364 esac
|
|
151
|
4365
|
|
|
4366 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
|
321
|
4367 echo "configure:4368: checking whether the -xildoff compiler flag is required" >&5
|
|
151
|
4368 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
|
4369 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
|
4370 then echo "$ac_t""no" 1>&6;
|
|
|
4371 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
|
|
|
4372 fi
|
|
|
4373 else echo "$ac_t""no" 1>&6
|
|
|
4374 fi
|
|
|
4375
|
|
165
|
4376 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
|
|
155
|
4377 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
|
321
|
4378 echo "configure:4379: checking for \"-z ignore\" linker flag" >&5
|
|
155
|
4379 case "`ld -h 2>&1`" in
|
|
|
4380 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
|
4381 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
|
4382 *) echo "$ac_t""no" 1>&6 ;;
|
|
163
|
4383 esac
|
|
|
4384 fi
|
|
155
|
4385
|
|
149
|
4386
|
|
|
4387 echo "checking "for specified window system"" 1>&6
|
|
321
|
4388 echo "configure:4389: checking "for specified window system"" >&5
|
|
149
|
4389
|
|
187
|
4390 if test "$with_x11" != "no"; then
|
|
|
4391 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
|
4392 window_system=x11 with_x11=yes
|
|
|
4393
|
|
272
|
4394
|
|
|
4395 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
|
4396 -a -n "$OPENWINHOME" \
|
|
|
4397 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
|
4398 -a -d "$OPENWINHOME"; then
|
|
187
|
4399 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
|
4400 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
|
4401 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
|
272
|
4402 fi
|
|
|
4403
|
|
|
4404 if test "$x_includes" = "NONE"; then
|
|
|
4405 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
|
4406 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
|
4407 done
|
|
|
4408 fi
|
|
|
4409
|
|
|
4410 if test "$x_libraries" = "NONE"; then
|
|
|
4411 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
|
4412 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
|
4413 done
|
|
149
|
4414 fi
|
|
187
|
4415
|
|
149
|
4416 # If we find X, set shell vars x_includes and x_libraries to the
|
|
|
4417 # paths, otherwise set no_x=yes.
|
|
|
4418 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
|
4419 # --without-x overrides everything else, but does not touch the cache.
|
|
|
4420 echo $ac_n "checking for X""... $ac_c" 1>&6
|
|
321
|
4421 echo "configure:4422: checking for X" >&5
|
|
149
|
4422
|
|
|
4423 # Check whether --with-x or --without-x was given.
|
|
|
4424 if test "${with_x+set}" = set; then
|
|
|
4425 withval="$with_x"
|
|
|
4426 :
|
|
|
4427 fi
|
|
|
4428
|
|
|
4429 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
|
4430 if test "x$with_x" = xno; then
|
|
|
4431 # The user explicitly disabled X.
|
|
|
4432 have_x=disabled
|
|
|
4433 else
|
|
|
4434 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
|
4435 # Both variables are already set.
|
|
|
4436 have_x=yes
|
|
|
4437 else
|
|
|
4438
|
|
|
4439 # One or both of the vars are not set, and there is no cached value.
|
|
|
4440 ac_x_includes=NO ac_x_libraries=NO
|
|
0
|
4441 rm -fr conftestdir
|
|
|
4442 if mkdir conftestdir; then
|
|
|
4443 cd conftestdir
|
|
|
4444 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
|
4445 cat > Imakefile <<'EOF'
|
|
|
4446 acfindx:
|
|
|
4447 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
|
4448 EOF
|
|
|
4449 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
4450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
149
|
4451 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
|
0
|
4452 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
|
149
|
4453 for ac_extension in a so sl; do
|
|
|
4454 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
|
4455 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
|
4456 ac_im_usrlibdir=$ac_im_libdir; break
|
|
|
4457 fi
|
|
|
4458 done
|
|
|
4459 # Screen out bogus values from the imake configuration. They are
|
|
|
4460 # bogus both because they are the default anyway, and because
|
|
|
4461 # using them would break gcc on systems where it needs fixed includes.
|
|
0
|
4462 case "$ac_im_incroot" in
|
|
|
4463 /usr/include) ;;
|
|
149
|
4464 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
|
0
|
4465 esac
|
|
|
4466 case "$ac_im_usrlibdir" in
|
|
|
4467 /usr/lib | /lib) ;;
|
|
149
|
4468 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
|
0
|
4469 esac
|
|
|
4470 fi
|
|
|
4471 cd ..
|
|
|
4472 rm -fr conftestdir
|
|
|
4473 fi
|
|
|
4474
|
|
149
|
4475 if test "$ac_x_includes" = NO; then
|
|
|
4476 # Guess where to find include files, by looking for this one X11 .h file.
|
|
|
4477 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
|
4478
|
|
|
4479 # First, try using that file with no special directory specified.
|
|
|
4480 cat > conftest.$ac_ext <<EOF
|
|
321
|
4481 #line 4482 "configure"
|
|
0
|
4482 #include "confdefs.h"
|
|
|
4483 #include <$x_direct_test_include>
|
|
|
4484 EOF
|
|
149
|
4485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
4486 { (eval echo configure:4487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
4487 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
4488 if test -z "$ac_err"; then
|
|
|
4489 rm -rf conftest*
|
|
149
|
4490 # We can compile using X headers with no special include directory.
|
|
|
4491 ac_x_includes=
|
|
|
4492 else
|
|
|
4493 echo "$ac_err" >&5
|
|
|
4494 echo "configure: failed program was:" >&5
|
|
|
4495 cat conftest.$ac_ext >&5
|
|
|
4496 rm -rf conftest*
|
|
|
4497 # Look for the header file in a standard set of common directories.
|
|
|
4498 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
0
|
4499 for ac_dir in \
|
|
149
|
4500 /usr/X11/include \
|
|
0
|
4501 /usr/X11R6/include \
|
|
|
4502 /usr/X11R5/include \
|
|
|
4503 /usr/X11R4/include \
|
|
|
4504 \
|
|
149
|
4505 /usr/include/X11 \
|
|
0
|
4506 /usr/include/X11R6 \
|
|
|
4507 /usr/include/X11R5 \
|
|
|
4508 /usr/include/X11R4 \
|
|
|
4509 \
|
|
149
|
4510 /usr/local/X11/include \
|
|
0
|
4511 /usr/local/X11R6/include \
|
|
|
4512 /usr/local/X11R5/include \
|
|
|
4513 /usr/local/X11R4/include \
|
|
|
4514 \
|
|
149
|
4515 /usr/local/include/X11 \
|
|
0
|
4516 /usr/local/include/X11R6 \
|
|
|
4517 /usr/local/include/X11R5 \
|
|
|
4518 /usr/local/include/X11R4 \
|
|
|
4519 \
|
|
|
4520 /usr/X386/include \
|
|
|
4521 /usr/x386/include \
|
|
|
4522 /usr/XFree86/include/X11 \
|
|
|
4523 \
|
|
|
4524 /usr/include \
|
|
|
4525 /usr/local/include \
|
|
|
4526 /usr/unsupported/include \
|
|
|
4527 /usr/athena/include \
|
|
|
4528 /usr/local/x11r5/include \
|
|
|
4529 /usr/lpp/Xamples/include \
|
|
|
4530 \
|
|
|
4531 /usr/openwin/include \
|
|
|
4532 /usr/openwin/share/include \
|
|
|
4533 ; \
|
|
|
4534 do
|
|
|
4535 if test -r "$ac_dir/$x_direct_test_include"; then
|
|
149
|
4536 ac_x_includes=$ac_dir
|
|
0
|
4537 break
|
|
|
4538 fi
|
|
|
4539 done
|
|
|
4540 fi
|
|
|
4541 rm -f conftest*
|
|
149
|
4542 fi # $ac_x_includes = NO
|
|
|
4543
|
|
|
4544 if test "$ac_x_libraries" = NO; then
|
|
|
4545 # Check for the libraries.
|
|
|
4546
|
|
|
4547 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
|
4548 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
|
4549
|
|
|
4550 # See if we find them without any special options.
|
|
|
4551 # Don't add to $LIBS permanently.
|
|
|
4552 ac_save_LIBS="$LIBS"
|
|
|
4553 LIBS="-l$x_direct_test_library $LIBS"
|
|
|
4554 cat > conftest.$ac_ext <<EOF
|
|
321
|
4555 #line 4556 "configure"
|
|
149
|
4556 #include "confdefs.h"
|
|
|
4557
|
|
|
4558 int main() {
|
|
|
4559 ${x_direct_test_function}()
|
|
|
4560 ; return 0; }
|
|
|
4561 EOF
|
|
321
|
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4563 rm -rf conftest*
|
|
|
4564 LIBS="$ac_save_LIBS"
|
|
|
4565 # We can link X programs with no special library path.
|
|
|
4566 ac_x_libraries=
|
|
|
4567 else
|
|
|
4568 echo "configure: failed program was:" >&5
|
|
|
4569 cat conftest.$ac_ext >&5
|
|
|
4570 rm -rf conftest*
|
|
|
4571 LIBS="$ac_save_LIBS"
|
|
|
4572 # First see if replacing the include by lib works.
|
|
|
4573 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
|
4574 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
|
4575 /usr/X11/lib \
|
|
0
|
4576 /usr/X11R6/lib \
|
|
|
4577 /usr/X11R5/lib \
|
|
|
4578 /usr/X11R4/lib \
|
|
|
4579 \
|
|
149
|
4580 /usr/lib/X11 \
|
|
0
|
4581 /usr/lib/X11R6 \
|
|
|
4582 /usr/lib/X11R5 \
|
|
|
4583 /usr/lib/X11R4 \
|
|
|
4584 \
|
|
149
|
4585 /usr/local/X11/lib \
|
|
0
|
4586 /usr/local/X11R6/lib \
|
|
|
4587 /usr/local/X11R5/lib \
|
|
|
4588 /usr/local/X11R4/lib \
|
|
|
4589 \
|
|
149
|
4590 /usr/local/lib/X11 \
|
|
0
|
4591 /usr/local/lib/X11R6 \
|
|
|
4592 /usr/local/lib/X11R5 \
|
|
|
4593 /usr/local/lib/X11R4 \
|
|
|
4594 \
|
|
|
4595 /usr/X386/lib \
|
|
|
4596 /usr/x386/lib \
|
|
|
4597 /usr/XFree86/lib/X11 \
|
|
|
4598 \
|
|
|
4599 /usr/lib \
|
|
|
4600 /usr/local/lib \
|
|
|
4601 /usr/unsupported/lib \
|
|
|
4602 /usr/athena/lib \
|
|
|
4603 /usr/local/x11r5/lib \
|
|
|
4604 /usr/lpp/Xamples/lib \
|
|
149
|
4605 /lib/usr/lib/X11 \
|
|
0
|
4606 \
|
|
|
4607 /usr/openwin/lib \
|
|
|
4608 /usr/openwin/share/lib \
|
|
|
4609 ; \
|
|
|
4610 do
|
|
|
4611 for ac_extension in a so sl; do
|
|
|
4612 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
|
149
|
4613 ac_x_libraries=$ac_dir
|
|
0
|
4614 break 2
|
|
|
4615 fi
|
|
|
4616 done
|
|
|
4617 done
|
|
|
4618 fi
|
|
149
|
4619 rm -f conftest*
|
|
|
4620 fi # $ac_x_libraries = NO
|
|
|
4621
|
|
|
4622 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
|
4623 # Didn't find X anywhere. Cache the known absence of X.
|
|
|
4624 ac_cv_have_x="have_x=no"
|
|
|
4625 else
|
|
|
4626 # Record where we found X for the cache.
|
|
|
4627 ac_cv_have_x="have_x=yes \
|
|
|
4628 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
|
4629 fi
|
|
|
4630 fi
|
|
|
4631 eval "$ac_cv_have_x"
|
|
|
4632 fi # $with_x != no
|
|
|
4633
|
|
|
4634 if test "$have_x" != yes; then
|
|
|
4635 echo "$ac_t""$have_x" 1>&6
|
|
|
4636 no_x=yes
|
|
|
4637 else
|
|
|
4638 # If each of the values was on the command line, it overrides each guess.
|
|
|
4639 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
|
4640 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
|
4641 # Update the cache value to reflect the command line values.
|
|
|
4642 ac_cv_have_x="have_x=yes \
|
|
|
4643 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
|
4644 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
|
4645 fi
|
|
|
4646
|
|
|
4647 if test "$no_x" = yes; then
|
|
|
4648 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
|
4649 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
4650 Defining X_DISPLAY_MISSING
|
|
|
4651 EOF
|
|
|
4652 cat >> confdefs.h <<\EOF
|
|
|
4653 #define X_DISPLAY_MISSING 1
|
|
|
4654 EOF
|
|
|
4655 }
|
|
|
4656
|
|
|
4657 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
|
4658 else
|
|
|
4659 if test -n "$x_includes"; then
|
|
|
4660 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
|
4661 fi
|
|
|
4662
|
|
|
4663 # It would also be nice to do this for all -L options, not just this one.
|
|
|
4664 if test -n "$x_libraries"; then
|
|
|
4665 X_LIBS="$X_LIBS -L$x_libraries"
|
|
|
4666 # For Solaris; some versions of Sun CC require a space after -R and
|
|
|
4667 # others require no space. Words are not sufficient . . . .
|
|
|
4668 case "`(uname -sr) 2>/dev/null`" in
|
|
|
4669 "SunOS 5"*)
|
|
|
4670 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
|
321
|
4671 echo "configure:4672: checking whether -R must be followed by a space" >&5
|
|
149
|
4672 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
|
4673 cat > conftest.$ac_ext <<EOF
|
|
321
|
4674 #line 4675 "configure"
|
|
|
4675 #include "confdefs.h"
|
|
|
4676
|
|
|
4677 int main() {
|
|
|
4678
|
|
|
4679 ; return 0; }
|
|
|
4680 EOF
|
|
|
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4682 rm -rf conftest*
|
|
|
4683 ac_R_nospace=yes
|
|
|
4684 else
|
|
|
4685 echo "configure: failed program was:" >&5
|
|
|
4686 cat conftest.$ac_ext >&5
|
|
|
4687 rm -rf conftest*
|
|
|
4688 ac_R_nospace=no
|
|
|
4689 fi
|
|
|
4690 rm -f conftest*
|
|
|
4691 if test $ac_R_nospace = yes; then
|
|
|
4692 echo "$ac_t""no" 1>&6
|
|
|
4693 X_LIBS="$X_LIBS -R$x_libraries"
|
|
|
4694 else
|
|
|
4695 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
|
4696 cat > conftest.$ac_ext <<EOF
|
|
321
|
4697 #line 4698 "configure"
|
|
|
4698 #include "confdefs.h"
|
|
|
4699
|
|
|
4700 int main() {
|
|
|
4701
|
|
|
4702 ; return 0; }
|
|
|
4703 EOF
|
|
|
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4705 rm -rf conftest*
|
|
|
4706 ac_R_space=yes
|
|
|
4707 else
|
|
|
4708 echo "configure: failed program was:" >&5
|
|
|
4709 cat conftest.$ac_ext >&5
|
|
|
4710 rm -rf conftest*
|
|
|
4711 ac_R_space=no
|
|
|
4712 fi
|
|
|
4713 rm -f conftest*
|
|
|
4714 if test $ac_R_space = yes; then
|
|
|
4715 echo "$ac_t""yes" 1>&6
|
|
|
4716 X_LIBS="$X_LIBS -R $x_libraries"
|
|
|
4717 else
|
|
|
4718 echo "$ac_t""neither works" 1>&6
|
|
|
4719 fi
|
|
|
4720 fi
|
|
|
4721 LIBS="$ac_xsave_LIBS"
|
|
|
4722 esac
|
|
|
4723 fi
|
|
|
4724
|
|
|
4725 # Check for system-dependent libraries X programs must link with.
|
|
|
4726 # Do this before checking for the system-independent R6 libraries
|
|
|
4727 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
|
4728
|
|
|
4729 if test "$ISC" = yes; then
|
|
|
4730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
|
4731 else
|
|
|
4732 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
|
4733 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
|
4734 # the Alpha needs dnet_stub (dnet does not exist).
|
|
151
|
4735 if test "$with_dnet" = "no" ; then
|
|
149
|
4736 ac_cv_lib_dnet_dnet_ntoa=no
|
|
|
4737 else
|
|
|
4738
|
|
|
4739 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
|
321
|
4740 echo "configure:4741: checking for dnet_ntoa in -ldnet" >&5
|
|
149
|
4741 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4742
|
|
|
4743 xe_check_libs=" -ldnet "
|
|
|
4744 cat > conftest.$ac_ext <<EOF
|
|
321
|
4745 #line 4746 "configure"
|
|
149
|
4746 #include "confdefs.h"
|
|
|
4747 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4748 /* We use char because int might match the return type of a gcc2
|
|
|
4749 builtin and then its argument prototype would still apply. */
|
|
|
4750 char dnet_ntoa();
|
|
|
4751
|
|
|
4752 int main() {
|
|
|
4753 dnet_ntoa()
|
|
|
4754 ; return 0; }
|
|
|
4755 EOF
|
|
321
|
4756 if { (eval echo configure:4757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4757 rm -rf conftest*
|
|
|
4758 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4759 else
|
|
|
4760 echo "configure: failed program was:" >&5
|
|
|
4761 cat conftest.$ac_ext >&5
|
|
|
4762 rm -rf conftest*
|
|
|
4763 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4764 fi
|
|
|
4765 rm -f conftest*
|
|
|
4766 xe_check_libs=""
|
|
|
4767
|
|
151
|
4768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4769 echo "$ac_t""yes" 1>&6
|
|
|
4770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
|
4771 else
|
|
|
4772 echo "$ac_t""no" 1>&6
|
|
|
4773 fi
|
|
|
4774
|
|
|
4775 fi
|
|
|
4776
|
|
|
4777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
|
4778
|
|
|
4779 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
|
321
|
4780 echo "configure:4781: checking for dnet_ntoa in -ldnet_stub" >&5
|
|
149
|
4781 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
|
4782
|
|
|
4783 xe_check_libs=" -ldnet_stub "
|
|
|
4784 cat > conftest.$ac_ext <<EOF
|
|
321
|
4785 #line 4786 "configure"
|
|
149
|
4786 #include "confdefs.h"
|
|
|
4787 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4788 /* We use char because int might match the return type of a gcc2
|
|
|
4789 builtin and then its argument prototype would still apply. */
|
|
|
4790 char dnet_ntoa();
|
|
|
4791
|
|
|
4792 int main() {
|
|
|
4793 dnet_ntoa()
|
|
|
4794 ; return 0; }
|
|
|
4795 EOF
|
|
321
|
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4797 rm -rf conftest*
|
|
|
4798 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4799 else
|
|
|
4800 echo "configure: failed program was:" >&5
|
|
|
4801 cat conftest.$ac_ext >&5
|
|
|
4802 rm -rf conftest*
|
|
|
4803 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4804 fi
|
|
|
4805 rm -f conftest*
|
|
|
4806 xe_check_libs=""
|
|
|
4807
|
|
151
|
4808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4809 echo "$ac_t""yes" 1>&6
|
|
|
4810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
|
4811 else
|
|
|
4812 echo "$ac_t""no" 1>&6
|
|
|
4813 fi
|
|
|
4814
|
|
|
4815
|
|
|
4816 fi
|
|
|
4817
|
|
|
4818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
|
4819 # to get the SysV transport functions.
|
|
|
4820 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
|
4821 # needs -lnsl.
|
|
|
4822 # The nsl library prevents programs from opening the X display
|
|
|
4823 # on Irix 5.2, according to dickey@clark.net.
|
|
|
4824 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
|
321
|
4825 echo "configure:4826: checking for gethostbyname" >&5
|
|
|
4826
|
|
|
4827 cat > conftest.$ac_ext <<EOF
|
|
|
4828 #line 4829 "configure"
|
|
149
|
4829 #include "confdefs.h"
|
|
|
4830 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4831 which can conflict with char gethostbyname(); below. */
|
|
|
4832 #include <assert.h>
|
|
|
4833 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4834 /* We use char because int might match the return type of a gcc2
|
|
|
4835 builtin and then its argument prototype would still apply. */
|
|
|
4836 char gethostbyname();
|
|
|
4837
|
|
|
4838 int main() {
|
|
|
4839
|
|
|
4840 /* The GNU C library defines this for functions which it implements
|
|
|
4841 to always fail with ENOSYS. Some functions are actually named
|
|
|
4842 something starting with __ and the normal name is an alias. */
|
|
|
4843 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
|
4844 choke me
|
|
|
4845 #else
|
|
|
4846 gethostbyname();
|
|
|
4847 #endif
|
|
|
4848
|
|
|
4849 ; return 0; }
|
|
|
4850 EOF
|
|
321
|
4851 if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4852 rm -rf conftest*
|
|
|
4853 eval "ac_cv_func_gethostbyname=yes"
|
|
|
4854 else
|
|
|
4855 echo "configure: failed program was:" >&5
|
|
|
4856 cat conftest.$ac_ext >&5
|
|
|
4857 rm -rf conftest*
|
|
|
4858 eval "ac_cv_func_gethostbyname=no"
|
|
|
4859 fi
|
|
|
4860 rm -f conftest*
|
|
|
4861
|
|
|
4862 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
|
4863 echo "$ac_t""yes" 1>&6
|
|
|
4864 :
|
|
|
4865 else
|
|
|
4866 echo "$ac_t""no" 1>&6
|
|
|
4867 fi
|
|
|
4868
|
|
|
4869 if test $ac_cv_func_gethostbyname = no; then
|
|
|
4870
|
|
|
4871 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
|
321
|
4872 echo "configure:4873: checking for gethostbyname in -lnsl" >&5
|
|
149
|
4873 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
|
4874
|
|
|
4875 xe_check_libs=" -lnsl "
|
|
|
4876 cat > conftest.$ac_ext <<EOF
|
|
321
|
4877 #line 4878 "configure"
|
|
149
|
4878 #include "confdefs.h"
|
|
|
4879 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4880 /* We use char because int might match the return type of a gcc2
|
|
|
4881 builtin and then its argument prototype would still apply. */
|
|
|
4882 char gethostbyname();
|
|
|
4883
|
|
|
4884 int main() {
|
|
|
4885 gethostbyname()
|
|
|
4886 ; return 0; }
|
|
|
4887 EOF
|
|
321
|
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4889 rm -rf conftest*
|
|
|
4890 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4891 else
|
|
|
4892 echo "configure: failed program was:" >&5
|
|
|
4893 cat conftest.$ac_ext >&5
|
|
|
4894 rm -rf conftest*
|
|
|
4895 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4896 fi
|
|
|
4897 rm -f conftest*
|
|
|
4898 xe_check_libs=""
|
|
|
4899
|
|
151
|
4900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4901 echo "$ac_t""yes" 1>&6
|
|
|
4902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
|
4903 else
|
|
|
4904 echo "$ac_t""no" 1>&6
|
|
|
4905 fi
|
|
|
4906
|
|
|
4907
|
|
|
4908 fi
|
|
|
4909
|
|
|
4910 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
|
4911 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
|
4912 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
|
4913 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
|
4914 # gethostby* variants that don't use the nameserver (or something).
|
|
|
4915 # -lsocket must be given before -lnsl if both are needed.
|
|
|
4916 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
|
4917 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
|
321
|
4918 echo "configure:4919: checking for connect" >&5
|
|
|
4919
|
|
|
4920 cat > conftest.$ac_ext <<EOF
|
|
|
4921 #line 4922 "configure"
|
|
149
|
4922 #include "confdefs.h"
|
|
|
4923 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
4924 which can conflict with char connect(); below. */
|
|
|
4925 #include <assert.h>
|
|
|
4926 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4927 /* We use char because int might match the return type of a gcc2
|
|
|
4928 builtin and then its argument prototype would still apply. */
|
|
|
4929 char connect();
|
|
|
4930
|
|
|
4931 int main() {
|
|
|
4932
|
|
|
4933 /* The GNU C library defines this for functions which it implements
|
|
|
4934 to always fail with ENOSYS. Some functions are actually named
|
|
|
4935 something starting with __ and the normal name is an alias. */
|
|
|
4936 #if defined (__stub_connect) || defined (__stub___connect)
|
|
|
4937 choke me
|
|
|
4938 #else
|
|
|
4939 connect();
|
|
|
4940 #endif
|
|
|
4941
|
|
|
4942 ; return 0; }
|
|
|
4943 EOF
|
|
321
|
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4945 rm -rf conftest*
|
|
|
4946 eval "ac_cv_func_connect=yes"
|
|
|
4947 else
|
|
|
4948 echo "configure: failed program was:" >&5
|
|
|
4949 cat conftest.$ac_ext >&5
|
|
|
4950 rm -rf conftest*
|
|
|
4951 eval "ac_cv_func_connect=no"
|
|
|
4952 fi
|
|
|
4953 rm -f conftest*
|
|
|
4954
|
|
|
4955 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
|
4956 echo "$ac_t""yes" 1>&6
|
|
|
4957 :
|
|
|
4958 else
|
|
|
4959 echo "$ac_t""no" 1>&6
|
|
|
4960 fi
|
|
|
4961
|
|
|
4962 if test $ac_cv_func_connect = no; then
|
|
|
4963
|
|
|
4964 xe_msg_checking="for connect in -lsocket"
|
|
|
4965 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
|
4966 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
321
|
4967 echo "configure:4968: checking "$xe_msg_checking"" >&5
|
|
149
|
4968 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
|
4969
|
|
|
4970 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
|
4971 cat > conftest.$ac_ext <<EOF
|
|
321
|
4972 #line 4973 "configure"
|
|
149
|
4973 #include "confdefs.h"
|
|
|
4974 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
4975 /* We use char because int might match the return type of a gcc2
|
|
|
4976 builtin and then its argument prototype would still apply. */
|
|
|
4977 char connect();
|
|
|
4978
|
|
|
4979 int main() {
|
|
|
4980 connect()
|
|
|
4981 ; return 0; }
|
|
|
4982 EOF
|
|
321
|
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
4984 rm -rf conftest*
|
|
|
4985 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
4986 else
|
|
|
4987 echo "configure: failed program was:" >&5
|
|
|
4988 cat conftest.$ac_ext >&5
|
|
|
4989 rm -rf conftest*
|
|
|
4990 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
4991 fi
|
|
|
4992 rm -f conftest*
|
|
|
4993 xe_check_libs=""
|
|
|
4994
|
|
151
|
4995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
4996 echo "$ac_t""yes" 1>&6
|
|
|
4997 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
|
4998 else
|
|
|
4999 echo "$ac_t""no" 1>&6
|
|
|
5000 fi
|
|
|
5001
|
|
|
5002
|
|
|
5003 fi
|
|
|
5004
|
|
|
5005 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
|
5006 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
|
321
|
5007 echo "configure:5008: checking for remove" >&5
|
|
|
5008
|
|
|
5009 cat > conftest.$ac_ext <<EOF
|
|
|
5010 #line 5011 "configure"
|
|
149
|
5011 #include "confdefs.h"
|
|
|
5012 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
5013 which can conflict with char remove(); below. */
|
|
|
5014 #include <assert.h>
|
|
|
5015 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5016 /* We use char because int might match the return type of a gcc2
|
|
|
5017 builtin and then its argument prototype would still apply. */
|
|
|
5018 char remove();
|
|
|
5019
|
|
|
5020 int main() {
|
|
|
5021
|
|
|
5022 /* The GNU C library defines this for functions which it implements
|
|
|
5023 to always fail with ENOSYS. Some functions are actually named
|
|
|
5024 something starting with __ and the normal name is an alias. */
|
|
|
5025 #if defined (__stub_remove) || defined (__stub___remove)
|
|
|
5026 choke me
|
|
|
5027 #else
|
|
|
5028 remove();
|
|
|
5029 #endif
|
|
|
5030
|
|
|
5031 ; return 0; }
|
|
|
5032 EOF
|
|
321
|
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5034 rm -rf conftest*
|
|
|
5035 eval "ac_cv_func_remove=yes"
|
|
|
5036 else
|
|
|
5037 echo "configure: failed program was:" >&5
|
|
|
5038 cat conftest.$ac_ext >&5
|
|
|
5039 rm -rf conftest*
|
|
|
5040 eval "ac_cv_func_remove=no"
|
|
|
5041 fi
|
|
|
5042 rm -f conftest*
|
|
|
5043
|
|
|
5044 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
|
5045 echo "$ac_t""yes" 1>&6
|
|
|
5046 :
|
|
|
5047 else
|
|
|
5048 echo "$ac_t""no" 1>&6
|
|
|
5049 fi
|
|
|
5050
|
|
|
5051 if test $ac_cv_func_remove = no; then
|
|
|
5052
|
|
|
5053 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
|
321
|
5054 echo "configure:5055: checking for remove in -lposix" >&5
|
|
149
|
5055 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
|
5056
|
|
|
5057 xe_check_libs=" -lposix "
|
|
|
5058 cat > conftest.$ac_ext <<EOF
|
|
321
|
5059 #line 5060 "configure"
|
|
149
|
5060 #include "confdefs.h"
|
|
|
5061 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5062 /* We use char because int might match the return type of a gcc2
|
|
|
5063 builtin and then its argument prototype would still apply. */
|
|
|
5064 char remove();
|
|
|
5065
|
|
|
5066 int main() {
|
|
|
5067 remove()
|
|
|
5068 ; return 0; }
|
|
|
5069 EOF
|
|
321
|
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5071 rm -rf conftest*
|
|
|
5072 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5073 else
|
|
|
5074 echo "configure: failed program was:" >&5
|
|
|
5075 cat conftest.$ac_ext >&5
|
|
|
5076 rm -rf conftest*
|
|
|
5077 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5078 fi
|
|
|
5079 rm -f conftest*
|
|
|
5080 xe_check_libs=""
|
|
|
5081
|
|
151
|
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5083 echo "$ac_t""yes" 1>&6
|
|
|
5084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
|
5085 else
|
|
|
5086 echo "$ac_t""no" 1>&6
|
|
|
5087 fi
|
|
|
5088
|
|
|
5089
|
|
|
5090 fi
|
|
|
5091
|
|
|
5092 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
|
5093 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
|
321
|
5094 echo "configure:5095: checking for shmat" >&5
|
|
|
5095
|
|
|
5096 cat > conftest.$ac_ext <<EOF
|
|
|
5097 #line 5098 "configure"
|
|
149
|
5098 #include "confdefs.h"
|
|
|
5099 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
5100 which can conflict with char shmat(); below. */
|
|
|
5101 #include <assert.h>
|
|
|
5102 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5103 /* We use char because int might match the return type of a gcc2
|
|
|
5104 builtin and then its argument prototype would still apply. */
|
|
|
5105 char shmat();
|
|
|
5106
|
|
|
5107 int main() {
|
|
|
5108
|
|
|
5109 /* The GNU C library defines this for functions which it implements
|
|
|
5110 to always fail with ENOSYS. Some functions are actually named
|
|
|
5111 something starting with __ and the normal name is an alias. */
|
|
|
5112 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
|
5113 choke me
|
|
|
5114 #else
|
|
|
5115 shmat();
|
|
|
5116 #endif
|
|
|
5117
|
|
|
5118 ; return 0; }
|
|
|
5119 EOF
|
|
321
|
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5121 rm -rf conftest*
|
|
|
5122 eval "ac_cv_func_shmat=yes"
|
|
|
5123 else
|
|
|
5124 echo "configure: failed program was:" >&5
|
|
|
5125 cat conftest.$ac_ext >&5
|
|
|
5126 rm -rf conftest*
|
|
|
5127 eval "ac_cv_func_shmat=no"
|
|
|
5128 fi
|
|
|
5129 rm -f conftest*
|
|
|
5130
|
|
|
5131 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
|
5132 echo "$ac_t""yes" 1>&6
|
|
|
5133 :
|
|
|
5134 else
|
|
|
5135 echo "$ac_t""no" 1>&6
|
|
|
5136 fi
|
|
|
5137
|
|
|
5138 if test $ac_cv_func_shmat = no; then
|
|
|
5139
|
|
|
5140 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
|
321
|
5141 echo "configure:5142: checking for shmat in -lipc" >&5
|
|
149
|
5142 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
|
5143
|
|
|
5144 xe_check_libs=" -lipc "
|
|
|
5145 cat > conftest.$ac_ext <<EOF
|
|
321
|
5146 #line 5147 "configure"
|
|
149
|
5147 #include "confdefs.h"
|
|
|
5148 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5149 /* We use char because int might match the return type of a gcc2
|
|
|
5150 builtin and then its argument prototype would still apply. */
|
|
|
5151 char shmat();
|
|
|
5152
|
|
|
5153 int main() {
|
|
|
5154 shmat()
|
|
|
5155 ; return 0; }
|
|
|
5156 EOF
|
|
321
|
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5158 rm -rf conftest*
|
|
|
5159 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5160 else
|
|
|
5161 echo "configure: failed program was:" >&5
|
|
|
5162 cat conftest.$ac_ext >&5
|
|
|
5163 rm -rf conftest*
|
|
|
5164 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5165 fi
|
|
|
5166 rm -f conftest*
|
|
|
5167 xe_check_libs=""
|
|
|
5168
|
|
151
|
5169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5170 echo "$ac_t""yes" 1>&6
|
|
|
5171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
|
5172 else
|
|
|
5173 echo "$ac_t""no" 1>&6
|
|
|
5174 fi
|
|
|
5175
|
|
0
|
5176
|
|
|
5177 fi
|
|
149
|
5178 fi
|
|
|
5179
|
|
|
5180 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
|
5181 ac_save_LDFLAGS="$LDFLAGS"
|
|
|
5182 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
|
5183 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
|
5184 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
|
5185 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
|
5186 # These have to be linked with before -lX11, unlike the other
|
|
|
5187 # libraries we check for below, so use a different variable.
|
|
|
5188 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
|
5189
|
|
|
5190 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
|
321
|
5191 echo "configure:5192: checking for IceConnectionNumber in -lICE" >&5
|
|
149
|
5192 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
|
5193
|
|
|
5194 xe_check_libs=" -lICE "
|
|
|
5195 cat > conftest.$ac_ext <<EOF
|
|
321
|
5196 #line 5197 "configure"
|
|
149
|
5197 #include "confdefs.h"
|
|
|
5198 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5199 /* We use char because int might match the return type of a gcc2
|
|
|
5200 builtin and then its argument prototype would still apply. */
|
|
|
5201 char IceConnectionNumber();
|
|
|
5202
|
|
|
5203 int main() {
|
|
|
5204 IceConnectionNumber()
|
|
|
5205 ; return 0; }
|
|
|
5206 EOF
|
|
321
|
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5208 rm -rf conftest*
|
|
|
5209 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5210 else
|
|
|
5211 echo "configure: failed program was:" >&5
|
|
|
5212 cat conftest.$ac_ext >&5
|
|
|
5213 rm -rf conftest*
|
|
|
5214 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5215 fi
|
|
|
5216 rm -f conftest*
|
|
|
5217 xe_check_libs=""
|
|
|
5218
|
|
151
|
5219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5220 echo "$ac_t""yes" 1>&6
|
|
|
5221 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
|
5222 else
|
|
|
5223 echo "$ac_t""no" 1>&6
|
|
|
5224 fi
|
|
|
5225
|
|
|
5226
|
|
|
5227 LDFLAGS="$ac_save_LDFLAGS"
|
|
|
5228
|
|
|
5229 fi
|
|
|
5230 # Autoconf claims to find X library and include dirs for us.
|
|
|
5231 if test "$no_x" = "yes"
|
|
|
5232 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
|
5233 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
|
5234 fi
|
|
|
5235 fi
|
|
|
5236
|
|
|
5237 case "$with_x11" in
|
|
|
5238 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
|
|
|
5239 no ) window_system=none HAVE_X_WINDOWS=no ;;
|
|
0
|
5240 esac
|
|
|
5241
|
|
149
|
5242 if test "$with_x11" = "yes"; then
|
|
|
5243 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5244 Defining HAVE_X_WINDOWS
|
|
|
5245 EOF
|
|
|
5246 cat >> confdefs.h <<\EOF
|
|
|
5247 #define HAVE_X_WINDOWS 1
|
|
|
5248 EOF
|
|
|
5249 }
|
|
|
5250
|
|
151
|
5251 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
|
175
|
5252 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
|
149
|
5253
|
|
278
|
5254 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
|
159
|
5255 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
|
149
|
5256 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
5257 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
5258 x_libraries="$lib_dir $x_libraries"
|
|
|
5259 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
|
149
|
5260 esac
|
|
151
|
5261 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
5262 x_includes="$inc_dir $x_includes"
|
|
|
5263 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
|
149
|
5264 esac
|
|
|
5265 break; fi
|
|
|
5266 done
|
|
|
5267
|
|
|
5268 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
|
5269 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
|
5270 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
|
151
|
5271 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
|
5272 x_libraries="$x_libraries $lib_dir"
|
|
|
5273 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
|
149
|
5274 esac
|
|
151
|
5275 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
|
5276 x_includes="$x_includes $inc_dir"
|
|
|
5277 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
|
149
|
5278 esac
|
|
|
5279 break; fi
|
|
|
5280 done
|
|
|
5281
|
|
306
|
5282 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
|
|
|
5283
|
|
149
|
5284 ld_switch_x_site="$X_LIBS"
|
|
|
5285
|
|
151
|
5286
|
|
|
5287 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
5288 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
5289 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
5290
|
|
163
|
5291 runpath="" runpath_dirs=""
|
|
155
|
5292 if test -n "$LD_RUN_PATH"; then
|
|
151
|
5293 runpath="$LD_RUN_PATH"
|
|
155
|
5294 elif test "$GCC" = "yes"; then
|
|
163
|
5295 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
5296 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
5297 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
5298 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
5299 case "$arg" in P,* | -L* | -R* )
|
|
159
|
5300 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
5301 {
|
|
155
|
5302 xe_runpath_dir="$dir"
|
|
163
|
5303 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
5304 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
5305 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
5306 eval "$xe_add_unique_runpath_dir"
|
|
|
5307 }
|
|
155
|
5308 done ;;
|
|
|
5309 esac
|
|
|
5310 done
|
|
163
|
5311 ld_switch_run="$ld_switch_run_save"
|
|
155
|
5312 rm -f conftest*
|
|
151
|
5313 else
|
|
155
|
5314 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
5315 case "$arg" in -L*) {
|
|
159
|
5316 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
5317 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
5318 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
5319 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
5320 eval "$xe_add_unique_runpath_dir"
|
|
|
5321 };; esac
|
|
151
|
5322 done
|
|
163
|
5323 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
5324 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
5325 eval "$xe_add_unique_runpath_dir";
|
|
|
5326 fi
|
|
155
|
5327 fi
|
|
151
|
5328 if test -n "$runpath"; then
|
|
|
5329 ld_switch_run="${dash_r}${runpath}"
|
|
272
|
5330
|
|
|
5331 if test "$GCC" = "yes"; then
|
|
|
5332 set x $ld_switch_run; shift; ld_switch_run=""
|
|
|
5333 while test -n "$1"; do
|
|
|
5334 case $1 in
|
|
|
5335 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
|
5336 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
|
5337 -Xlinker* ) ;;
|
|
|
5338 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
|
5339 esac
|
|
|
5340 shift
|
|
|
5341 done
|
|
|
5342 fi
|
|
151
|
5343 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
5344 fi
|
|
|
5345 fi
|
|
|
5346
|
|
|
5347
|
|
149
|
5348 if test "$extra_verbose" = "yes"; then
|
|
|
5349 echo; echo "X11 compilation variables:"
|
|
163
|
5350 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
|
149
|
5351 echo
|
|
|
5352 fi
|
|
|
5353
|
|
265
|
5354 bitmapdirs=
|
|
|
5355 if test "$x_includes" != NONE; then
|
|
|
5356 for i in $x_includes; do
|
|
|
5357 if test -d "$i/bitmaps"; then
|
|
|
5358 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
|
5359 fi
|
|
|
5360 if test -d "$i/X11/bitmaps"; then
|
|
|
5361 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
|
5362 fi
|
|
|
5363 done
|
|
|
5364 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
|
5365 fi
|
|
|
5366 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5367 Defining BITMAPDIR = "$bitmapdirs"
|
|
|
5368 EOF
|
|
|
5369 cat >> confdefs.h <<EOF
|
|
|
5370 #define BITMAPDIR "$bitmapdirs"
|
|
|
5371 EOF
|
|
|
5372 }
|
|
|
5373
|
|
|
5374
|
|
163
|
5375 echo "checking for X defines extracted by xmkmf" 1>&6
|
|
321
|
5376 echo "configure:5377: checking for X defines extracted by xmkmf" >&5
|
|
163
|
5377 rm -fr conftestdir
|
|
|
5378 if mkdir conftestdir; then
|
|
|
5379 cd conftestdir
|
|
|
5380 cat > Imakefile <<'EOF'
|
|
|
5381 xetest:
|
|
|
5382 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
|
5383 EOF
|
|
|
5384 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
|
5385 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
5386 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
|
5387 fi
|
|
|
5388 cd ..
|
|
|
5389 rm -fr conftestdir
|
|
|
5390 for word in $xmkmf_defines; do
|
|
|
5391 case "$word" in
|
|
|
5392 -D*=* ) ;;
|
|
|
5393 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
|
|
|
5394 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5395 Defining $word
|
|
|
5396 EOF
|
|
|
5397 cat >> confdefs.h <<EOF
|
|
|
5398 #define $word 1
|
|
|
5399 EOF
|
|
|
5400 }
|
|
|
5401 ;;
|
|
|
5402 esac
|
|
|
5403 done
|
|
|
5404 fi
|
|
|
5405
|
|
149
|
5406 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
|
5407 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
|
321
|
5408 echo "configure:5409: checking for X11/Intrinsic.h" >&5
|
|
|
5409
|
|
|
5410 cat > conftest.$ac_ext <<EOF
|
|
|
5411 #line 5412 "configure"
|
|
149
|
5412 #include "confdefs.h"
|
|
|
5413 #include <X11/Intrinsic.h>
|
|
|
5414 EOF
|
|
|
5415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
5416 { (eval echo configure:5417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5417 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5418 if test -z "$ac_err"; then
|
|
|
5419 rm -rf conftest*
|
|
|
5420 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5421 else
|
|
|
5422 echo "$ac_err" >&5
|
|
|
5423 echo "configure: failed program was:" >&5
|
|
|
5424 cat conftest.$ac_ext >&5
|
|
|
5425 rm -rf conftest*
|
|
|
5426 eval "ac_cv_header_$ac_safe=no"
|
|
|
5427 fi
|
|
|
5428 rm -f conftest*
|
|
|
5429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5430 echo "$ac_t""yes" 1>&6
|
|
|
5431 :
|
|
|
5432 else
|
|
|
5433 echo "$ac_t""no" 1>&6
|
|
|
5434 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
|
|
|
5435 fi
|
|
|
5436
|
|
|
5437
|
|
|
5438
|
|
|
5439 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
|
321
|
5440 echo "configure:5441: checking for XOpenDisplay in -lX11" >&5
|
|
149
|
5441 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
5442
|
|
|
5443 xe_check_libs=" -lX11 "
|
|
|
5444 cat > conftest.$ac_ext <<EOF
|
|
321
|
5445 #line 5446 "configure"
|
|
149
|
5446 #include "confdefs.h"
|
|
|
5447 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5448 /* We use char because int might match the return type of a gcc2
|
|
|
5449 builtin and then its argument prototype would still apply. */
|
|
|
5450 char XOpenDisplay();
|
|
|
5451
|
|
|
5452 int main() {
|
|
|
5453 XOpenDisplay()
|
|
|
5454 ; return 0; }
|
|
|
5455 EOF
|
|
321
|
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5457 rm -rf conftest*
|
|
|
5458 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5459 else
|
|
|
5460 echo "configure: failed program was:" >&5
|
|
|
5461 cat conftest.$ac_ext >&5
|
|
|
5462 rm -rf conftest*
|
|
|
5463 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5464 fi
|
|
|
5465 rm -f conftest*
|
|
|
5466 xe_check_libs=""
|
|
|
5467
|
|
151
|
5468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5469 echo "$ac_t""yes" 1>&6
|
|
|
5470 have_lib_x11=yes
|
|
|
5471 else
|
|
|
5472 echo "$ac_t""no" 1>&6
|
|
|
5473 fi
|
|
|
5474
|
|
|
5475
|
|
|
5476 if test "$have_lib_x11" != "yes"; then
|
|
|
5477
|
|
|
5478 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
|
5479 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
|
5480 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
321
|
5481 echo "configure:5482: checking "$xe_msg_checking"" >&5
|
|
149
|
5482 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
|
5483
|
|
|
5484 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
|
5485 cat > conftest.$ac_ext <<EOF
|
|
321
|
5486 #line 5487 "configure"
|
|
149
|
5487 #include "confdefs.h"
|
|
|
5488 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5489 /* We use char because int might match the return type of a gcc2
|
|
|
5490 builtin and then its argument prototype would still apply. */
|
|
|
5491 char XGetFontProperty();
|
|
|
5492
|
|
|
5493 int main() {
|
|
|
5494 XGetFontProperty()
|
|
|
5495 ; return 0; }
|
|
|
5496 EOF
|
|
321
|
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5498 rm -rf conftest*
|
|
|
5499 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5500 else
|
|
|
5501 echo "configure: failed program was:" >&5
|
|
|
5502 cat conftest.$ac_ext >&5
|
|
|
5503 rm -rf conftest*
|
|
|
5504 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5505 fi
|
|
|
5506 rm -f conftest*
|
|
|
5507 xe_check_libs=""
|
|
|
5508
|
|
151
|
5509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
5510 echo "$ac_t""yes" 1>&6
|
|
|
5511 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
|
5512 else
|
|
|
5513 echo "$ac_t""no" 1>&6
|
|
|
5514 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
5515 fi
|
|
|
5516
|
|
|
5517
|
|
0
|
5518 fi
|
|
149
|
5519 libs_x="-lX11"
|
|
151
|
5520 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
|
149
|
5521
|
|
153
|
5522
|
|
|
5523 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
|
321
|
5524 echo "configure:5525: checking for XShapeSelectInput in -lXext" >&5
|
|
153
|
5525 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
|
5526
|
|
|
5527 xe_check_libs=" -lXext "
|
|
|
5528 cat > conftest.$ac_ext <<EOF
|
|
321
|
5529 #line 5530 "configure"
|
|
153
|
5530 #include "confdefs.h"
|
|
|
5531 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5532 /* We use char because int might match the return type of a gcc2
|
|
|
5533 builtin and then its argument prototype would still apply. */
|
|
|
5534 char XShapeSelectInput();
|
|
|
5535
|
|
|
5536 int main() {
|
|
|
5537 XShapeSelectInput()
|
|
|
5538 ; return 0; }
|
|
|
5539 EOF
|
|
321
|
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
153
|
5541 rm -rf conftest*
|
|
|
5542 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5543 else
|
|
|
5544 echo "configure: failed program was:" >&5
|
|
|
5545 cat conftest.$ac_ext >&5
|
|
|
5546 rm -rf conftest*
|
|
|
5547 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5548 fi
|
|
|
5549 rm -f conftest*
|
|
|
5550 xe_check_libs=""
|
|
|
5551
|
|
|
5552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5553 echo "$ac_t""yes" 1>&6
|
|
|
5554 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
|
5555 else
|
|
|
5556 echo "$ac_t""no" 1>&6
|
|
|
5557 fi
|
|
|
5558
|
|
|
5559
|
|
|
5560
|
|
169
|
5561
|
|
149
|
5562 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
|
321
|
5563 echo "configure:5564: checking for XtOpenDisplay in -lXt" >&5
|
|
149
|
5564 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
|
5565
|
|
|
5566 xe_check_libs=" -lXt "
|
|
|
5567 cat > conftest.$ac_ext <<EOF
|
|
321
|
5568 #line 5569 "configure"
|
|
149
|
5569 #include "confdefs.h"
|
|
|
5570 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5571 /* We use char because int might match the return type of a gcc2
|
|
|
5572 builtin and then its argument prototype would still apply. */
|
|
|
5573 char XtOpenDisplay();
|
|
|
5574
|
|
|
5575 int main() {
|
|
|
5576 XtOpenDisplay()
|
|
|
5577 ; return 0; }
|
|
|
5578 EOF
|
|
321
|
5579 if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5580 rm -rf conftest*
|
|
|
5581 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5582 else
|
|
|
5583 echo "configure: failed program was:" >&5
|
|
|
5584 cat conftest.$ac_ext >&5
|
|
|
5585 rm -rf conftest*
|
|
|
5586 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5587 fi
|
|
|
5588 rm -f conftest*
|
|
|
5589 xe_check_libs=""
|
|
|
5590
|
|
151
|
5591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5592 echo "$ac_t""yes" 1>&6
|
|
|
5593 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
|
149
|
5594 else
|
|
|
5595 echo "$ac_t""no" 1>&6
|
|
|
5596 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
|
5597 fi
|
|
|
5598
|
|
169
|
5599
|
|
149
|
5600
|
|
|
5601 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
|
321
|
5602 echo "configure:5603: checking the version of X11 being used" >&5
|
|
149
|
5603 cat > conftest.$ac_ext <<EOF
|
|
321
|
5604 #line 5605 "configure"
|
|
149
|
5605 #include "confdefs.h"
|
|
|
5606 #include <X11/Intrinsic.h>
|
|
272
|
5607 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
|
5608 EOF
|
|
321
|
5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
5610 then
|
|
151
|
5611 ./conftest foobar; x11_release=$?
|
|
149
|
5612 else
|
|
306
|
5613 conftest_rc="$?"
|
|
149
|
5614 echo "configure: failed program was:" >&5
|
|
|
5615 cat conftest.$ac_ext >&5
|
|
|
5616 rm -fr conftest*
|
|
151
|
5617 x11_release=4
|
|
149
|
5618 fi
|
|
|
5619 rm -fr conftest*
|
|
151
|
5620 echo "$ac_t""R${x11_release}" 1>&6
|
|
149
|
5621 { test "$extra_verbose" = "yes" && cat << EOF
|
|
151
|
5622 Defining THIS_IS_X11R${x11_release}
|
|
149
|
5623 EOF
|
|
|
5624 cat >> confdefs.h <<EOF
|
|
151
|
5625 #define THIS_IS_X11R${x11_release} 1
|
|
149
|
5626 EOF
|
|
|
5627 }
|
|
|
5628
|
|
|
5629
|
|
|
5630 for ac_hdr in X11/Xlocale.h
|
|
|
5631 do
|
|
|
5632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
5633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
5634 echo "configure:5635: checking for $ac_hdr" >&5
|
|
|
5635
|
|
|
5636 cat > conftest.$ac_ext <<EOF
|
|
|
5637 #line 5638 "configure"
|
|
149
|
5638 #include "confdefs.h"
|
|
|
5639 #include <$ac_hdr>
|
|
|
5640 EOF
|
|
|
5641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
5642 { (eval echo configure:5643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5643 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5644 if test -z "$ac_err"; then
|
|
|
5645 rm -rf conftest*
|
|
|
5646 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5647 else
|
|
|
5648 echo "$ac_err" >&5
|
|
|
5649 echo "configure: failed program was:" >&5
|
|
|
5650 cat conftest.$ac_ext >&5
|
|
|
5651 rm -rf conftest*
|
|
|
5652 eval "ac_cv_header_$ac_safe=no"
|
|
|
5653 fi
|
|
|
5654 rm -f conftest*
|
|
|
5655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5656 echo "$ac_t""yes" 1>&6
|
|
|
5657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
5658 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
5659 Defining $ac_tr_hdr
|
|
|
5660 EOF
|
|
|
5661 cat >> confdefs.h <<EOF
|
|
|
5662 #define $ac_tr_hdr 1
|
|
|
5663 EOF
|
|
|
5664 }
|
|
|
5665
|
|
|
5666 else
|
|
|
5667 echo "$ac_t""no" 1>&6
|
|
|
5668 fi
|
|
|
5669 done
|
|
|
5670
|
|
|
5671
|
|
|
5672 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
|
|
321
|
5673 echo "configure:5674: checking for XFree86" >&5
|
|
149
|
5674 if test -d "/usr/X386/include" -o \
|
|
169
|
5675 -f "/etc/XF86Config" -o \
|
|
149
|
5676 -f "/etc/X11/XF86Config" -o \
|
|
|
5677 -f "/usr/X11R6/lib/X11/XF86Config"; then
|
|
|
5678 echo "$ac_t""yes" 1>&6
|
|
|
5679 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5680 Defining HAVE_XFREE386
|
|
|
5681 EOF
|
|
|
5682 cat >> confdefs.h <<\EOF
|
|
|
5683 #define HAVE_XFREE386 1
|
|
|
5684 EOF
|
|
|
5685 }
|
|
|
5686
|
|
|
5687 else
|
|
|
5688 echo "$ac_t""no" 1>&6
|
|
|
5689 fi
|
|
|
5690
|
|
169
|
5691 test -z "$with_xmu" && {
|
|
|
5692 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
|
321
|
5693 echo "configure:5694: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
|
169
|
5694 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
|
149
|
5695
|
|
|
5696 xe_check_libs=" -lXmu "
|
|
|
5697 cat > conftest.$ac_ext <<EOF
|
|
321
|
5698 #line 5699 "configure"
|
|
149
|
5699 #include "confdefs.h"
|
|
|
5700 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
5701 /* We use char because int might match the return type of a gcc2
|
|
|
5702 builtin and then its argument prototype would still apply. */
|
|
169
|
5703 char XmuReadBitmapDataFromFile();
|
|
149
|
5704
|
|
|
5705 int main() {
|
|
169
|
5706 XmuReadBitmapDataFromFile()
|
|
149
|
5707 ; return 0; }
|
|
|
5708 EOF
|
|
321
|
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5710 rm -rf conftest*
|
|
|
5711 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5712 else
|
|
|
5713 echo "configure: failed program was:" >&5
|
|
|
5714 cat conftest.$ac_ext >&5
|
|
|
5715 rm -rf conftest*
|
|
|
5716 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5717 fi
|
|
|
5718 rm -f conftest*
|
|
|
5719 xe_check_libs=""
|
|
|
5720
|
|
151
|
5721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5722 echo "$ac_t""yes" 1>&6
|
|
|
5723 with_xmu=yes
|
|
|
5724 else
|
|
|
5725 echo "$ac_t""no" 1>&6
|
|
|
5726 with_xmu=no
|
|
|
5727 fi
|
|
|
5728
|
|
169
|
5729 }
|
|
185
|
5730 if test "$with_xmu" = "no"; then
|
|
|
5731 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
5732 echo " xemacs will be linked with \"xmu.o\""
|
|
|
5733 fi
|
|
187
|
5734 else
|
|
185
|
5735 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
|
5736 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5737 Defining HAVE_XMU
|
|
|
5738 EOF
|
|
|
5739 cat >> confdefs.h <<\EOF
|
|
|
5740 #define HAVE_XMU 1
|
|
|
5741 EOF
|
|
|
5742 }
|
|
|
5743
|
|
169
|
5744 fi
|
|
151
|
5745
|
|
|
5746
|
|
|
5747 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
|
321
|
5748 echo "configure:5749: checking for main in -lXbsd" >&5
|
|
151
|
5749 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
|
5750
|
|
|
5751 xe_check_libs=" -lXbsd "
|
|
|
5752 cat > conftest.$ac_ext <<EOF
|
|
321
|
5753 #line 5754 "configure"
|
|
151
|
5754 #include "confdefs.h"
|
|
149
|
5755
|
|
|
5756 int main() {
|
|
151
|
5757 main()
|
|
149
|
5758 ; return 0; }
|
|
|
5759 EOF
|
|
321
|
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
5761 rm -rf conftest*
|
|
|
5762 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5763 else
|
|
|
5764 echo "configure: failed program was:" >&5
|
|
|
5765 cat conftest.$ac_ext >&5
|
|
|
5766 rm -rf conftest*
|
|
|
5767 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5768 fi
|
|
|
5769 rm -f conftest*
|
|
|
5770 xe_check_libs=""
|
|
|
5771
|
|
151
|
5772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5773 echo "$ac_t""yes" 1>&6
|
|
|
5774 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
|
5775 else
|
|
|
5776 echo "$ac_t""no" 1>&6
|
|
|
5777 fi
|
|
|
5778
|
|
149
|
5779
|
|
|
5780
|
|
243
|
5781 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
|
274
|
5782 if test "$GCC" = "yes"; then
|
|
|
5783 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
|
5784 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
|
5785 else
|
|
|
5786 case "$CC" in
|
|
|
5787 "xlc" ) CC="xlc_r" ;;
|
|
|
5788 "xlC" ) CC="xlC_r" ;;
|
|
|
5789 "cc" ) CC="cc_r" ;;
|
|
|
5790 esac
|
|
|
5791 fi
|
|
243
|
5792 fi
|
|
|
5793
|
|
149
|
5794 fi
|
|
265
|
5795 if test "$with_msw" != "no"; then
|
|
|
5796 echo "checking for MS-Windows" 1>&6
|
|
321
|
5797 echo "configure:5798: checking for MS-Windows" >&5
|
|
265
|
5798
|
|
|
5799 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
|
321
|
5800 echo "configure:5801: checking for main in -lgdi32" >&5
|
|
265
|
5801 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
|
5802
|
|
|
5803 xe_check_libs=" -lgdi32 "
|
|
|
5804 cat > conftest.$ac_ext <<EOF
|
|
321
|
5805 #line 5806 "configure"
|
|
265
|
5806 #include "confdefs.h"
|
|
|
5807
|
|
|
5808 int main() {
|
|
|
5809 main()
|
|
|
5810 ; return 0; }
|
|
|
5811 EOF
|
|
321
|
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
265
|
5813 rm -rf conftest*
|
|
|
5814 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
5815 else
|
|
|
5816 echo "configure: failed program was:" >&5
|
|
|
5817 cat conftest.$ac_ext >&5
|
|
|
5818 rm -rf conftest*
|
|
|
5819 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
5820 fi
|
|
|
5821 rm -f conftest*
|
|
|
5822 xe_check_libs=""
|
|
|
5823
|
|
|
5824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
5825 echo "$ac_t""yes" 1>&6
|
|
|
5826 with_msw=yes
|
|
|
5827 else
|
|
|
5828 echo "$ac_t""no" 1>&6
|
|
|
5829 fi
|
|
|
5830
|
|
|
5831
|
|
|
5832 if test "$with_msw" = "yes"; then
|
|
|
5833 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5834 Defining HAVE_MS_WINDOWS
|
|
|
5835 EOF
|
|
|
5836 cat >> confdefs.h <<\EOF
|
|
|
5837 #define HAVE_MS_WINDOWS 1
|
|
|
5838 EOF
|
|
|
5839 }
|
|
|
5840
|
|
276
|
5841 install_pp="$blddir/lib-src/installexe.sh"
|
|
|
5842 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
|
|
321
|
5843 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
|
265
|
5844 if test "$window_system" != x11; then
|
|
|
5845 window_system=msw
|
|
|
5846 test "$with_scrollbars" != "no" && with_scrollbars=msw \
|
|
|
5847 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5848 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
|
5849 fi
|
|
|
5850 test "$with_menubars" != "no" && with_menubars=msw \
|
|
|
5851 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5852 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
|
5853 fi
|
|
276
|
5854 test "$with_toolbars" != "no" && with_toolbars=msw \
|
|
|
5855 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5856 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
|
5857 fi
|
|
288
|
5858 test "$with_dialogs" != "no" && with_dialogs=msw \
|
|
|
5859 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5860 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
|
5861 fi
|
|
265
|
5862 else
|
|
|
5863 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5864 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
|
5865 fi
|
|
|
5866 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5867 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
|
5868 fi
|
|
276
|
5869 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5870 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
|
5871 fi
|
|
288
|
5872 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
|
5873 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
|
5874 fi
|
|
265
|
5875 fi
|
|
278
|
5876 cat > conftest.$ac_ext <<EOF
|
|
321
|
5877 #line 5878 "configure"
|
|
278
|
5878 #include "confdefs.h"
|
|
|
5879 #include <fcntl.h>
|
|
|
5880 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
|
5881 EOF
|
|
321
|
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
278
|
5883 then
|
|
|
5884 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
5885 Defining HAVE_MSG_SELECT
|
|
|
5886 EOF
|
|
|
5887 cat >> confdefs.h <<\EOF
|
|
|
5888 #define HAVE_MSG_SELECT 1
|
|
|
5889 EOF
|
|
|
5890 }
|
|
|
5891
|
|
|
5892 else
|
|
306
|
5893 conftest_rc="$?"
|
|
278
|
5894 echo "configure: failed program was:" >&5
|
|
|
5895 cat conftest.$ac_ext >&5
|
|
|
5896 fi
|
|
|
5897 rm -fr conftest*
|
|
265
|
5898 const_is_losing=no
|
|
|
5899 with_file_coding=yes
|
|
278
|
5900 use_minimal_tagbits=yes
|
|
|
5901 use_indexed_lrecord_implementation=yes
|
|
267
|
5902 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" && if test "$extra_verbose" = "yes"; then
|
|
|
5903 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\""
|
|
265
|
5904 fi
|
|
|
5905 fi
|
|
|
5906 fi
|
|
|
5907
|
|
276
|
5908
|
|
|
5909
|
|
149
|
5910 test -z "$window_system" && window_system="none"
|
|
|
5911
|
|
272
|
5912 if test "$window_system" = "none"; then
|
|
282
|
5913 for feature in menubars scrollbars toolbars dialogs dragndrop
|
|
272
|
5914 do
|
|
|
5915 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
5916 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
|
5917 fi
|
|
|
5918 eval "with_${feature}=no"
|
|
|
5919 done
|
|
|
5920 else
|
|
|
5921 test -z "$with_toolbars" && with_toolbars=yes
|
|
|
5922 fi
|
|
|
5923
|
|
|
5924 if test "$with_msw" != "yes"; then
|
|
|
5925 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
|
5926 do
|
|
|
5927 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
5928 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
|
5929 fi
|
|
|
5930 eval "with_${feature}=no"
|
|
|
5931 done
|
|
|
5932 else
|
|
|
5933 :
|
|
|
5934 fi
|
|
|
5935
|
|
|
5936 if test "$with_x11" != "yes"; then
|
|
|
5937 for feature in tooltalk cde offix session xim xmu \
|
|
278
|
5938 xface
|
|
70
|
5939 do
|
|
149
|
5940 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
5941 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
|
70
|
5942 fi
|
|
149
|
5943 eval "with_${feature}=no"
|
|
70
|
5944 done
|
|
149
|
5945 fi
|
|
|
5946
|
|
0
|
5947 bitmapdir=
|
|
|
5948
|
|
149
|
5949 case "$window_system" in
|
|
70
|
5950 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
|
272
|
5951 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
|
70
|
5952 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
|
0
|
5953 esac
|
|
|
5954
|
|
149
|
5955 case "$x_libraries" in *X11R4* )
|
|
|
5956 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
|
5957 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
|
5958 esac
|
|
|
5959
|
|
179
|
5960 echo "checking for session-management option" 1>&6
|
|
321
|
5961 echo "configure:5962: checking for session-management option" >&5;
|
|
227
|
5962 if test "$with_session" != "no"; then
|
|
177
|
5963 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
179
|
5964 Defining HAVE_SESSION
|
|
|
5965 EOF
|
|
|
5966 cat >> confdefs.h <<\EOF
|
|
|
5967 #define HAVE_SESSION 1
|
|
177
|
5968 EOF
|
|
|
5969 }
|
|
|
5970
|
|
|
5971 fi
|
|
|
5972
|
|
149
|
5973 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
|
5974 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
|
5975 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
|
321
|
5976 echo "configure:5977: checking for X11/Xauth.h" >&5
|
|
|
5977
|
|
|
5978 cat > conftest.$ac_ext <<EOF
|
|
|
5979 #line 5980 "configure"
|
|
149
|
5980 #include "confdefs.h"
|
|
|
5981 #include <X11/Xauth.h>
|
|
|
5982 EOF
|
|
|
5983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
5984 { (eval echo configure:5985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
5985 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
5986 if test -z "$ac_err"; then
|
|
|
5987 rm -rf conftest*
|
|
|
5988 eval "ac_cv_header_$ac_safe=yes"
|
|
|
5989 else
|
|
|
5990 echo "$ac_err" >&5
|
|
|
5991 echo "configure: failed program was:" >&5
|
|
|
5992 cat conftest.$ac_ext >&5
|
|
|
5993 rm -rf conftest*
|
|
|
5994 eval "ac_cv_header_$ac_safe=no"
|
|
|
5995 fi
|
|
|
5996 rm -f conftest*
|
|
|
5997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
5998 echo "$ac_t""yes" 1>&6
|
|
|
5999 :
|
|
|
6000 else
|
|
|
6001 echo "$ac_t""no" 1>&6
|
|
|
6002 with_xauth=no
|
|
|
6003 fi
|
|
|
6004 }
|
|
|
6005 test -z "$with_xauth" && {
|
|
|
6006 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
|
321
|
6007 echo "configure:6008: checking for XauGetAuthByAddr in -lXau" >&5
|
|
149
|
6008 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
|
6009
|
|
|
6010 xe_check_libs=" -lXau "
|
|
|
6011 cat > conftest.$ac_ext <<EOF
|
|
321
|
6012 #line 6013 "configure"
|
|
149
|
6013 #include "confdefs.h"
|
|
|
6014 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6015 /* We use char because int might match the return type of a gcc2
|
|
|
6016 builtin and then its argument prototype would still apply. */
|
|
|
6017 char XauGetAuthByAddr();
|
|
|
6018
|
|
|
6019 int main() {
|
|
|
6020 XauGetAuthByAddr()
|
|
|
6021 ; return 0; }
|
|
|
6022 EOF
|
|
321
|
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6024 rm -rf conftest*
|
|
|
6025 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6026 else
|
|
|
6027 echo "configure: failed program was:" >&5
|
|
|
6028 cat conftest.$ac_ext >&5
|
|
|
6029 rm -rf conftest*
|
|
|
6030 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6031 fi
|
|
|
6032 rm -f conftest*
|
|
|
6033 xe_check_libs=""
|
|
|
6034
|
|
151
|
6035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6036 echo "$ac_t""yes" 1>&6
|
|
|
6037 :
|
|
|
6038 else
|
|
|
6039 echo "$ac_t""no" 1>&6
|
|
|
6040 with_xauth=no
|
|
|
6041 fi
|
|
|
6042
|
|
|
6043 }
|
|
|
6044 test -z "$with_xauth" && with_xauth=yes
|
|
|
6045 if test "$with_xauth" = "yes"; then
|
|
|
6046 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6047 Defining HAVE_XAUTH
|
|
|
6048 EOF
|
|
|
6049 cat >> confdefs.h <<\EOF
|
|
|
6050 #define HAVE_XAUTH 1
|
|
|
6051 EOF
|
|
|
6052 }
|
|
|
6053
|
|
159
|
6054
|
|
|
6055 T=""
|
|
|
6056 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
|
|
|
6057 libs_xauth="$T"
|
|
|
6058
|
|
|
6059 fi
|
|
|
6060
|
|
149
|
6061
|
|
274
|
6062
|
|
149
|
6063
|
|
|
6064 if test "$with_tooltalk" != "no" ; then
|
|
|
6065 for dir in "" "Tt/" "desktop/" ; do
|
|
|
6066 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
|
6067 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
|
321
|
6068 echo "configure:6069: checking for ${dir}tt_c.h" >&5
|
|
|
6069
|
|
|
6070 cat > conftest.$ac_ext <<EOF
|
|
|
6071 #line 6072 "configure"
|
|
149
|
6072 #include "confdefs.h"
|
|
|
6073 #include <${dir}tt_c.h>
|
|
|
6074 EOF
|
|
|
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
6077 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6078 if test -z "$ac_err"; then
|
|
|
6079 rm -rf conftest*
|
|
|
6080 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6081 else
|
|
|
6082 echo "$ac_err" >&5
|
|
|
6083 echo "configure: failed program was:" >&5
|
|
|
6084 cat conftest.$ac_ext >&5
|
|
|
6085 rm -rf conftest*
|
|
|
6086 eval "ac_cv_header_$ac_safe=no"
|
|
|
6087 fi
|
|
|
6088 rm -f conftest*
|
|
|
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6090 echo "$ac_t""yes" 1>&6
|
|
284
|
6091 tt_c_h_path="${dir}tt_c.h"; break
|
|
149
|
6092 else
|
|
|
6093 echo "$ac_t""no" 1>&6
|
|
|
6094 fi
|
|
|
6095
|
|
|
6096 done
|
|
284
|
6097 if test -z "$tt_c_h_path"; then
|
|
|
6098 if test "$with_tooltalk" = "yes"; then
|
|
|
6099 (echo "$progname: Usage error:"
|
|
|
6100 echo " " "Unable to find required tooltalk header files."
|
|
|
6101 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
6102 fi
|
|
|
6103 with_tooltalk=no
|
|
|
6104 fi
|
|
149
|
6105 fi
|
|
|
6106 if test "$with_tooltalk" != "no" ; then
|
|
|
6107 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
|
6108
|
|
|
6109 xe_msg_checking="for tt_message_create in -ltt"
|
|
|
6110 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
|
6111 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
321
|
6112 echo "configure:6113: checking "$xe_msg_checking"" >&5
|
|
149
|
6113 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
|
6114
|
|
|
6115 xe_check_libs=" -ltt $extra_libs"
|
|
|
6116 cat > conftest.$ac_ext <<EOF
|
|
321
|
6117 #line 6118 "configure"
|
|
149
|
6118 #include "confdefs.h"
|
|
|
6119 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6120 /* We use char because int might match the return type of a gcc2
|
|
|
6121 builtin and then its argument prototype would still apply. */
|
|
|
6122 char tt_message_create();
|
|
|
6123
|
|
|
6124 int main() {
|
|
|
6125 tt_message_create()
|
|
|
6126 ; return 0; }
|
|
|
6127 EOF
|
|
321
|
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6129 rm -rf conftest*
|
|
|
6130 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6131 else
|
|
|
6132 echo "configure: failed program was:" >&5
|
|
|
6133 cat conftest.$ac_ext >&5
|
|
|
6134 rm -rf conftest*
|
|
|
6135 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6136 fi
|
|
|
6137 rm -f conftest*
|
|
|
6138 xe_check_libs=""
|
|
|
6139
|
|
151
|
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6141 echo "$ac_t""yes" 1>&6
|
|
284
|
6142 tt_libs="-ltt $extra_libs"; break
|
|
149
|
6143 else
|
|
|
6144 echo "$ac_t""no" 1>&6
|
|
|
6145 :
|
|
|
6146 fi
|
|
|
6147
|
|
|
6148
|
|
|
6149 done
|
|
284
|
6150 if test -z "$tt_libs"; then
|
|
|
6151 if test "$with_tooltalk" = "yes"; then
|
|
|
6152 (echo "$progname: Usage error:"
|
|
|
6153 echo " " "Unable to find required tooltalk libraries."
|
|
|
6154 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
|
6155 fi
|
|
|
6156 with_tooltalk=no
|
|
|
6157 fi
|
|
|
6158 fi
|
|
|
6159 test -z "$with_tooltalk" && with_tooltalk=yes
|
|
149
|
6160 if test "$with_tooltalk" = "yes"; then
|
|
|
6161 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6162 Defining TOOLTALK
|
|
|
6163 EOF
|
|
|
6164 cat >> confdefs.h <<\EOF
|
|
|
6165 #define TOOLTALK 1
|
|
|
6166 EOF
|
|
|
6167 }
|
|
|
6168
|
|
|
6169 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
6170 Defining TT_C_H_PATH = "$tt_c_h_path"
|
|
|
6171 EOF
|
|
|
6172 cat >> confdefs.h <<EOF
|
|
|
6173 #define TT_C_H_PATH "$tt_c_h_path"
|
|
|
6174 EOF
|
|
|
6175 }
|
|
|
6176
|
|
151
|
6177 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
|
|
6178 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6179 echo " xemacs will be linked with \"tooltalk.o\""
|
|
|
6180 fi
|
|
149
|
6181 fi
|
|
|
6182
|
|
|
6183 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
|
6184 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
|
321
|
6185 echo "configure:6186: checking for Dt/Dt.h" >&5
|
|
|
6186
|
|
|
6187 cat > conftest.$ac_ext <<EOF
|
|
|
6188 #line 6189 "configure"
|
|
149
|
6189 #include "confdefs.h"
|
|
|
6190 #include <Dt/Dt.h>
|
|
|
6191 EOF
|
|
|
6192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6193 { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
6194 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6195 if test -z "$ac_err"; then
|
|
|
6196 rm -rf conftest*
|
|
|
6197 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6198 else
|
|
|
6199 echo "$ac_err" >&5
|
|
|
6200 echo "configure: failed program was:" >&5
|
|
|
6201 cat conftest.$ac_ext >&5
|
|
|
6202 rm -rf conftest*
|
|
|
6203 eval "ac_cv_header_$ac_safe=no"
|
|
|
6204 fi
|
|
|
6205 rm -f conftest*
|
|
|
6206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6207 echo "$ac_t""yes" 1>&6
|
|
|
6208 :
|
|
|
6209 else
|
|
|
6210 echo "$ac_t""no" 1>&6
|
|
|
6211 with_cde=no
|
|
136
|
6212 fi
|
|
|
6213 }
|
|
149
|
6214 test -z "$with_cde" && {
|
|
|
6215 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
|
321
|
6216 echo "configure:6217: checking for DtDndDragStart in -lDtSvc" >&5
|
|
149
|
6217 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
|
6218
|
|
|
6219 xe_check_libs=" -lDtSvc "
|
|
|
6220 cat > conftest.$ac_ext <<EOF
|
|
321
|
6221 #line 6222 "configure"
|
|
149
|
6222 #include "confdefs.h"
|
|
|
6223 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6224 /* We use char because int might match the return type of a gcc2
|
|
|
6225 builtin and then its argument prototype would still apply. */
|
|
|
6226 char DtDndDragStart();
|
|
|
6227
|
|
|
6228 int main() {
|
|
|
6229 DtDndDragStart()
|
|
|
6230 ; return 0; }
|
|
|
6231 EOF
|
|
321
|
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6233 rm -rf conftest*
|
|
|
6234 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6235 else
|
|
|
6236 echo "configure: failed program was:" >&5
|
|
|
6237 cat conftest.$ac_ext >&5
|
|
|
6238 rm -rf conftest*
|
|
|
6239 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6240 fi
|
|
|
6241 rm -f conftest*
|
|
|
6242 xe_check_libs=""
|
|
|
6243
|
|
151
|
6244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6245 echo "$ac_t""yes" 1>&6
|
|
|
6246 :
|
|
|
6247 else
|
|
|
6248 echo "$ac_t""no" 1>&6
|
|
|
6249 with_cde=no
|
|
|
6250 fi
|
|
|
6251
|
|
|
6252 }
|
|
|
6253 test -z "$with_cde" && with_cde=yes
|
|
282
|
6254 if test "$with_dragndrop" = no; then
|
|
|
6255 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
|
|
|
6256 with_cde=no
|
|
|
6257 fi
|
|
149
|
6258 if test "$with_cde" = "yes" ; then
|
|
|
6259 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6260 Defining HAVE_CDE
|
|
|
6261 EOF
|
|
|
6262 cat >> confdefs.h <<\EOF
|
|
|
6263 #define HAVE_CDE 1
|
|
|
6264 EOF
|
|
|
6265 }
|
|
|
6266
|
|
151
|
6267 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
|
282
|
6268 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
|
149
|
6269 with_tooltalk=yes # CDE requires Tooltalk
|
|
167
|
6270 need_motif=yes # CDE requires Motif
|
|
149
|
6271 fi
|
|
|
6272
|
|
288
|
6273 test "$window_system" != "x11" && with_offix=no
|
|
|
6274 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
|
6275 echo "configure: warning: No OffiX without real Xmu support" 1>&2
|
|
|
6276 with_offix=no
|
|
|
6277 fi
|
|
|
6278 if test "$with_dragndrop" = no; then
|
|
|
6279 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
|
|
|
6280 with_offix=no
|
|
|
6281 fi
|
|
|
6282 if test "$with_cde" = yes; then
|
|
|
6283 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
|
|
|
6284 with_offix=no
|
|
|
6285 fi
|
|
300
|
6286 test -z "$with_offix" && with_offix=no
|
|
288
|
6287 if test "$with_offix" = "yes"; then
|
|
|
6288 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6289 Defining HAVE_OFFIX_DND
|
|
|
6290 EOF
|
|
|
6291 cat >> confdefs.h <<\EOF
|
|
|
6292 #define HAVE_OFFIX_DND 1
|
|
|
6293 EOF
|
|
|
6294 }
|
|
|
6295
|
|
|
6296 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
|
6297 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
|
6298 fi
|
|
|
6299
|
|
282
|
6300 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
|
321
|
6301 echo "configure:6302: checking if drag and drop API is needed" >&5
|
|
282
|
6302 if test "$with_dragndrop" != "no" ; then
|
|
|
6303 if test -n "$dragndrop_proto" ; then
|
|
|
6304 with_dragndrop=yes
|
|
|
6305 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
|
6306 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6307 Defining HAVE_DRAGNDROP
|
|
|
6308 EOF
|
|
|
6309 cat >> confdefs.h <<\EOF
|
|
|
6310 #define HAVE_DRAGNDROP 1
|
|
|
6311 EOF
|
|
|
6312 }
|
|
|
6313
|
|
|
6314 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
|
6315 else
|
|
|
6316 with_dragndrop=no
|
|
|
6317 echo "$ac_t""no" 1>&6
|
|
|
6318 fi
|
|
|
6319 fi
|
|
|
6320
|
|
259
|
6321 echo "checking for LDAP" 1>&6
|
|
321
|
6322 echo "configure:6323: checking for LDAP" >&5
|
|
259
|
6323 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
|
6324 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
|
321
|
6325 echo "configure:6326: checking for ldap.h" >&5
|
|
|
6326
|
|
|
6327 cat > conftest.$ac_ext <<EOF
|
|
|
6328 #line 6329 "configure"
|
|
259
|
6329 #include "confdefs.h"
|
|
|
6330 #include <ldap.h>
|
|
|
6331 EOF
|
|
|
6332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6333 { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
259
|
6334 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6335 if test -z "$ac_err"; then
|
|
|
6336 rm -rf conftest*
|
|
|
6337 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6338 else
|
|
|
6339 echo "$ac_err" >&5
|
|
|
6340 echo "configure: failed program was:" >&5
|
|
|
6341 cat conftest.$ac_ext >&5
|
|
|
6342 rm -rf conftest*
|
|
|
6343 eval "ac_cv_header_$ac_safe=no"
|
|
|
6344 fi
|
|
|
6345 rm -f conftest*
|
|
|
6346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6347 echo "$ac_t""yes" 1>&6
|
|
|
6348 :
|
|
|
6349 else
|
|
|
6350 echo "$ac_t""no" 1>&6
|
|
|
6351 with_ldap=no
|
|
|
6352 fi
|
|
|
6353 }
|
|
|
6354 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
|
6355 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
|
321
|
6356 echo "configure:6357: checking for lber.h" >&5
|
|
|
6357
|
|
|
6358 cat > conftest.$ac_ext <<EOF
|
|
|
6359 #line 6360 "configure"
|
|
259
|
6360 #include "confdefs.h"
|
|
|
6361 #include <lber.h>
|
|
|
6362 EOF
|
|
|
6363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6364 { (eval echo configure:6365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
259
|
6365 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6366 if test -z "$ac_err"; then
|
|
|
6367 rm -rf conftest*
|
|
|
6368 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6369 else
|
|
|
6370 echo "$ac_err" >&5
|
|
|
6371 echo "configure: failed program was:" >&5
|
|
|
6372 cat conftest.$ac_ext >&5
|
|
|
6373 rm -rf conftest*
|
|
|
6374 eval "ac_cv_header_$ac_safe=no"
|
|
|
6375 fi
|
|
|
6376 rm -f conftest*
|
|
|
6377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6378 echo "$ac_t""yes" 1>&6
|
|
|
6379 :
|
|
|
6380 else
|
|
|
6381 echo "$ac_t""no" 1>&6
|
|
|
6382 with_ldap=no
|
|
|
6383 fi
|
|
|
6384 }
|
|
272
|
6385 if test "$with_ldap" != "no"; then
|
|
|
6386 test -z "$with_umich_ldap" && {
|
|
259
|
6387 xe_msg_checking="for ldap_open in -lldap"
|
|
|
6388 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
|
6389 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
|
321
|
6390 echo "configure:6391: checking "$xe_msg_checking"" >&5
|
|
259
|
6391 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
|
6392
|
|
|
6393 xe_check_libs=" -lldap -llber"
|
|
|
6394 cat > conftest.$ac_ext <<EOF
|
|
321
|
6395 #line 6396 "configure"
|
|
259
|
6396 #include "confdefs.h"
|
|
|
6397 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6398 /* We use char because int might match the return type of a gcc2
|
|
|
6399 builtin and then its argument prototype would still apply. */
|
|
|
6400 char ldap_open();
|
|
|
6401
|
|
|
6402 int main() {
|
|
|
6403 ldap_open()
|
|
|
6404 ; return 0; }
|
|
|
6405 EOF
|
|
321
|
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
259
|
6407 rm -rf conftest*
|
|
|
6408 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6409 else
|
|
|
6410 echo "configure: failed program was:" >&5
|
|
|
6411 cat conftest.$ac_ext >&5
|
|
|
6412 rm -rf conftest*
|
|
|
6413 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6414 fi
|
|
|
6415 rm -f conftest*
|
|
|
6416 xe_check_libs=""
|
|
|
6417
|
|
|
6418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6419 echo "$ac_t""yes" 1>&6
|
|
|
6420 with_umich_ldap=yes
|
|
|
6421 else
|
|
|
6422 echo "$ac_t""no" 1>&6
|
|
|
6423 with_umich_ldap=no
|
|
|
6424 fi
|
|
|
6425
|
|
|
6426 }
|
|
272
|
6427 test "$with_umich_ldap" = "no" && {
|
|
259
|
6428 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
|
|
321
|
6429 echo "configure:6430: checking for ldap_set_option in -lldap10" >&5
|
|
259
|
6430 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
|
|
|
6431
|
|
|
6432 xe_check_libs=" -lldap10 "
|
|
|
6433 cat > conftest.$ac_ext <<EOF
|
|
321
|
6434 #line 6435 "configure"
|
|
259
|
6435 #include "confdefs.h"
|
|
|
6436 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6437 /* We use char because int might match the return type of a gcc2
|
|
|
6438 builtin and then its argument prototype would still apply. */
|
|
|
6439 char ldap_set_option();
|
|
|
6440
|
|
|
6441 int main() {
|
|
|
6442 ldap_set_option()
|
|
|
6443 ; return 0; }
|
|
|
6444 EOF
|
|
321
|
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
259
|
6446 rm -rf conftest*
|
|
|
6447 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6448 else
|
|
|
6449 echo "configure: failed program was:" >&5
|
|
|
6450 cat conftest.$ac_ext >&5
|
|
|
6451 rm -rf conftest*
|
|
|
6452 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6453 fi
|
|
|
6454 rm -f conftest*
|
|
|
6455 xe_check_libs=""
|
|
|
6456
|
|
|
6457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6458 echo "$ac_t""yes" 1>&6
|
|
|
6459 with_ns_ldap=yes
|
|
|
6460 else
|
|
|
6461 echo "$ac_t""no" 1>&6
|
|
|
6462 with_ns_ldap=no
|
|
|
6463 fi
|
|
|
6464
|
|
|
6465 }
|
|
272
|
6466 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
|
|
|
6467 fi
|
|
|
6468 if test "$with_ldap" = "yes"; then
|
|
259
|
6469 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6470 Defining HAVE_LDAP
|
|
|
6471 EOF
|
|
|
6472 cat >> confdefs.h <<\EOF
|
|
|
6473 #define HAVE_LDAP 1
|
|
|
6474 EOF
|
|
|
6475 }
|
|
|
6476
|
|
272
|
6477 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6478 echo " xemacs will be linked with \"eldap.o\""
|
|
|
6479 fi
|
|
|
6480 if test "$with_umich_ldap" = "yes" ; then
|
|
|
6481 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6482 Defining HAVE_UMICH_LDAP
|
|
|
6483 EOF
|
|
|
6484 cat >> confdefs.h <<\EOF
|
|
|
6485 #define HAVE_UMICH_LDAP 1
|
|
|
6486 EOF
|
|
|
6487 }
|
|
|
6488
|
|
|
6489 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
|
|
|
6490 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
|
6491 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
|
|
|
6492 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
259
|
6493 Defining HAVE_NS_LDAP
|
|
|
6494 EOF
|
|
|
6495 cat >> confdefs.h <<\EOF
|
|
|
6496 #define HAVE_NS_LDAP 1
|
|
|
6497 EOF
|
|
|
6498 }
|
|
|
6499
|
|
272
|
6500 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
|
|
|
6501 elif test "$with_ldap" = "yes" ; then
|
|
|
6502 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
|
6503 fi
|
|
259
|
6504 fi
|
|
|
6505
|
|
149
|
6506
|
|
278
|
6507 if test "$window_system" != "none"; then
|
|
|
6508 echo "checking for graphics libraries" 1>&6
|
|
321
|
6509 echo "configure:6510: checking for graphics libraries" >&5
|
|
272
|
6510
|
|
310
|
6511 xpm_problem=""
|
|
|
6512 if test -z "$with_xpm"; then
|
|
193
|
6513 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
|
321
|
6514 echo "configure:6515: checking for Xpm - no older than 3.4f" >&5
|
|
272
|
6515 xe_check_libs=-lXpm
|
|
|
6516 cat > conftest.$ac_ext <<EOF
|
|
321
|
6517 #line 6518 "configure"
|
|
149
|
6518 #include "confdefs.h"
|
|
|
6519 #include <X11/xpm.h>
|
|
272
|
6520 int main(int c, char **v) {
|
|
|
6521 return c == 1 ? 0 :
|
|
|
6522 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
|
6523 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
|
6524 EOF
|
|
321
|
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
159
|
6526 then
|
|
272
|
6527 ./conftest dummy_arg; xpm_status=$?;
|
|
310
|
6528 if test "$xpm_status" = "0"; then
|
|
272
|
6529 with_xpm=yes;
|
|
|
6530 else
|
|
|
6531 with_xpm=no;
|
|
310
|
6532 if test "$xpm_status" = "1"; then
|
|
272
|
6533 xpm_problem="Xpm library version and header file version don't match!"
|
|
310
|
6534 elif test "$xpm_status" = "2"; then
|
|
272
|
6535 xpm_problem="Xpm library version is too old!"
|
|
|
6536 else
|
|
|
6537 xpm_problem="Internal xpm detection logic error!"
|
|
|
6538 fi
|
|
|
6539 echo "
|
|
310
|
6540 *** WARNING *** $xpm_problem
|
|
278
|
6541 I'm not touching that with a 10-foot pole!
|
|
|
6542 If you really want to use the installed version of Xpm, rerun
|
|
310
|
6543 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
|
278
|
6544 fi
|
|
159
|
6545 else
|
|
306
|
6546 conftest_rc="$?"
|
|
159
|
6547 echo "configure: failed program was:" >&5
|
|
|
6548 cat conftest.$ac_ext >&5
|
|
|
6549 rm -fr conftest*
|
|
|
6550 with_xpm=no
|
|
|
6551 fi
|
|
|
6552 rm -fr conftest*
|
|
272
|
6553 xe_check_libs=
|
|
|
6554 echo "$ac_t""$with_xpm" 1>&6
|
|
193
|
6555 fi
|
|
|
6556 if test "$with_xpm" = "yes"; then
|
|
|
6557 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
6558 Defining HAVE_XPM
|
|
|
6559 EOF
|
|
|
6560 cat >> confdefs.h <<\EOF
|
|
|
6561 #define HAVE_XPM 1
|
|
|
6562 EOF
|
|
|
6563 }
|
|
|
6564
|
|
193
|
6565 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
|
278
|
6566 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
|
321
|
6567 echo "configure:6568: checking for \"FOR_MSW\" xpm" >&5
|
|
278
|
6568 xe_check_libs=-lXpm
|
|
|
6569 cat > conftest.$ac_ext <<EOF
|
|
321
|
6570 #line 6571 "configure"
|
|
278
|
6571 #include "confdefs.h"
|
|
|
6572
|
|
|
6573 int main() {
|
|
|
6574 XpmCreatePixmapFromData()
|
|
|
6575 ; return 0; }
|
|
|
6576 EOF
|
|
321
|
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
278
|
6578 rm -rf conftest*
|
|
|
6579 xpm_for_msw=no
|
|
|
6580 else
|
|
|
6581 echo "configure: failed program was:" >&5
|
|
|
6582 cat conftest.$ac_ext >&5
|
|
|
6583 rm -rf conftest*
|
|
|
6584 xpm_for_msw=yes
|
|
|
6585 fi
|
|
|
6586 rm -f conftest*
|
|
|
6587 xe_check_libs=
|
|
|
6588 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
|
6589 if test "$xpm_for_msw" = "yes"; then
|
|
|
6590 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6591 Defining FOR_MSW
|
|
|
6592 EOF
|
|
|
6593 cat >> confdefs.h <<\EOF
|
|
|
6594 #define FOR_MSW 1
|
|
|
6595 EOF
|
|
|
6596 }
|
|
|
6597
|
|
|
6598 fi
|
|
|
6599 fi
|
|
|
6600
|
|
308
|
6601 if test "$with_gif" != "no"; then
|
|
|
6602 with_gif="yes"
|
|
|
6603 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6604 Defining HAVE_GIF
|
|
|
6605 EOF
|
|
|
6606 cat >> confdefs.h <<\EOF
|
|
|
6607 #define HAVE_GIF 1
|
|
|
6608 EOF
|
|
|
6609 }
|
|
|
6610
|
|
|
6611 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
|
|
|
6612 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
|
|
|
6613 fi
|
|
|
6614 fi
|
|
|
6615
|
|
278
|
6616 if test "$with_png $with_tiff" != "no no"; then
|
|
|
6617
|
|
|
6618 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
|
321
|
6619 echo "configure:6620: checking for inflate in -lc" >&5
|
|
278
|
6620 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
|
6621
|
|
|
6622 xe_check_libs=" -lc "
|
|
|
6623 cat > conftest.$ac_ext <<EOF
|
|
321
|
6624 #line 6625 "configure"
|
|
149
|
6625 #include "confdefs.h"
|
|
|
6626 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6627 /* We use char because int might match the return type of a gcc2
|
|
|
6628 builtin and then its argument prototype would still apply. */
|
|
278
|
6629 char inflate();
|
|
|
6630
|
|
|
6631 int main() {
|
|
|
6632 inflate()
|
|
|
6633 ; return 0; }
|
|
|
6634 EOF
|
|
321
|
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
6636 rm -rf conftest*
|
|
|
6637 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6638 else
|
|
|
6639 echo "configure: failed program was:" >&5
|
|
|
6640 cat conftest.$ac_ext >&5
|
|
|
6641 rm -rf conftest*
|
|
|
6642 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6643 fi
|
|
|
6644 rm -f conftest*
|
|
|
6645 xe_check_libs=""
|
|
|
6646
|
|
151
|
6647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
6648 echo "$ac_t""yes" 1>&6
|
|
278
|
6649 :
|
|
|
6650 else
|
|
|
6651 echo "$ac_t""no" 1>&6
|
|
|
6652
|
|
|
6653 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
|
321
|
6654 echo "configure:6655: checking for inflate in -lz" >&5
|
|
278
|
6655 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
|
6656
|
|
|
6657 xe_check_libs=" -lz "
|
|
|
6658 cat > conftest.$ac_ext <<EOF
|
|
321
|
6659 #line 6660 "configure"
|
|
278
|
6660 #include "confdefs.h"
|
|
|
6661 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6662 /* We use char because int might match the return type of a gcc2
|
|
|
6663 builtin and then its argument prototype would still apply. */
|
|
|
6664 char inflate();
|
|
|
6665
|
|
|
6666 int main() {
|
|
|
6667 inflate()
|
|
|
6668 ; return 0; }
|
|
|
6669 EOF
|
|
321
|
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
278
|
6671 rm -rf conftest*
|
|
|
6672 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6673 else
|
|
|
6674 echo "configure: failed program was:" >&5
|
|
|
6675 cat conftest.$ac_ext >&5
|
|
|
6676 rm -rf conftest*
|
|
|
6677 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6678 fi
|
|
|
6679 rm -f conftest*
|
|
|
6680 xe_check_libs=""
|
|
|
6681
|
|
|
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6683 echo "$ac_t""yes" 1>&6
|
|
|
6684 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
|
6685 else
|
|
|
6686 echo "$ac_t""no" 1>&6
|
|
|
6687
|
|
|
6688 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
|
321
|
6689 echo "configure:6690: checking for inflate in -lgz" >&5
|
|
278
|
6690 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
|
6691
|
|
|
6692 xe_check_libs=" -lgz "
|
|
|
6693 cat > conftest.$ac_ext <<EOF
|
|
321
|
6694 #line 6695 "configure"
|
|
278
|
6695 #include "confdefs.h"
|
|
|
6696 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6697 /* We use char because int might match the return type of a gcc2
|
|
|
6698 builtin and then its argument prototype would still apply. */
|
|
|
6699 char inflate();
|
|
|
6700
|
|
|
6701 int main() {
|
|
|
6702 inflate()
|
|
|
6703 ; return 0; }
|
|
|
6704 EOF
|
|
321
|
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
278
|
6706 rm -rf conftest*
|
|
|
6707 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6708 else
|
|
|
6709 echo "configure: failed program was:" >&5
|
|
|
6710 cat conftest.$ac_ext >&5
|
|
|
6711 rm -rf conftest*
|
|
|
6712 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6713 fi
|
|
|
6714 rm -f conftest*
|
|
|
6715 xe_check_libs=""
|
|
|
6716
|
|
|
6717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6718 echo "$ac_t""yes" 1>&6
|
|
|
6719 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
|
6720 else
|
|
|
6721 echo "$ac_t""no" 1>&6
|
|
|
6722 fi
|
|
|
6723
|
|
|
6724
|
|
|
6725 fi
|
|
|
6726
|
|
|
6727
|
|
|
6728 fi
|
|
|
6729
|
|
|
6730
|
|
193
|
6731 fi
|
|
|
6732
|
|
251
|
6733 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
|
6734 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
|
321
|
6735 echo "configure:6736: checking for jpeglib.h" >&5
|
|
|
6736
|
|
|
6737 cat > conftest.$ac_ext <<EOF
|
|
|
6738 #line 6739 "configure"
|
|
251
|
6739 #include "confdefs.h"
|
|
|
6740 #include <jpeglib.h>
|
|
0
|
6741 EOF
|
|
149
|
6742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6743 { (eval echo configure:6744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
251
|
6744 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6745 if test -z "$ac_err"; then
|
|
|
6746 rm -rf conftest*
|
|
|
6747 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6748 else
|
|
|
6749 echo "$ac_err" >&5
|
|
|
6750 echo "configure: failed program was:" >&5
|
|
|
6751 cat conftest.$ac_ext >&5
|
|
|
6752 rm -rf conftest*
|
|
|
6753 eval "ac_cv_header_$ac_safe=no"
|
|
|
6754 fi
|
|
|
6755 rm -f conftest*
|
|
|
6756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6757 echo "$ac_t""yes" 1>&6
|
|
|
6758 :
|
|
|
6759 else
|
|
|
6760 echo "$ac_t""no" 1>&6
|
|
|
6761 with_jpeg=no
|
|
|
6762 fi
|
|
|
6763 }
|
|
|
6764 test -z "$with_jpeg" && {
|
|
|
6765 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
|
321
|
6766 echo "configure:6767: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
|
251
|
6767 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
|
6768
|
|
|
6769 xe_check_libs=" -ljpeg "
|
|
|
6770 cat > conftest.$ac_ext <<EOF
|
|
321
|
6771 #line 6772 "configure"
|
|
251
|
6772 #include "confdefs.h"
|
|
|
6773 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6774 /* We use char because int might match the return type of a gcc2
|
|
|
6775 builtin and then its argument prototype would still apply. */
|
|
|
6776 char jpeg_destroy_decompress();
|
|
|
6777
|
|
|
6778 int main() {
|
|
|
6779 jpeg_destroy_decompress()
|
|
|
6780 ; return 0; }
|
|
|
6781 EOF
|
|
321
|
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
251
|
6783 rm -rf conftest*
|
|
|
6784 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6785 else
|
|
|
6786 echo "configure: failed program was:" >&5
|
|
|
6787 cat conftest.$ac_ext >&5
|
|
|
6788 rm -rf conftest*
|
|
|
6789 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6790 fi
|
|
|
6791 rm -f conftest*
|
|
|
6792 xe_check_libs=""
|
|
|
6793
|
|
|
6794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6795 echo "$ac_t""yes" 1>&6
|
|
|
6796 :
|
|
|
6797 else
|
|
|
6798 echo "$ac_t""no" 1>&6
|
|
|
6799 with_jpeg=no
|
|
|
6800 fi
|
|
|
6801
|
|
|
6802 }
|
|
|
6803 test -z "$with_jpeg" && with_jpeg=yes
|
|
|
6804 if test "$with_jpeg" = "yes"; then
|
|
|
6805 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6806 Defining HAVE_JPEG
|
|
|
6807 EOF
|
|
|
6808 cat >> confdefs.h <<\EOF
|
|
|
6809 #define HAVE_JPEG 1
|
|
|
6810 EOF
|
|
|
6811 }
|
|
|
6812
|
|
|
6813 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
|
6814 fi
|
|
|
6815
|
|
310
|
6816 png_problem=""
|
|
251
|
6817 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
|
321
|
6818 echo "configure:6819: checking for pow" >&5
|
|
|
6819
|
|
|
6820 cat > conftest.$ac_ext <<EOF
|
|
|
6821 #line 6822 "configure"
|
|
251
|
6822 #include "confdefs.h"
|
|
|
6823 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
6824 which can conflict with char pow(); below. */
|
|
|
6825 #include <assert.h>
|
|
243
|
6826 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6827 /* We use char because int might match the return type of a gcc2
|
|
|
6828 builtin and then its argument prototype would still apply. */
|
|
251
|
6829 char pow();
|
|
243
|
6830
|
|
|
6831 int main() {
|
|
251
|
6832
|
|
|
6833 /* The GNU C library defines this for functions which it implements
|
|
|
6834 to always fail with ENOSYS. Some functions are actually named
|
|
|
6835 something starting with __ and the normal name is an alias. */
|
|
|
6836 #if defined (__stub_pow) || defined (__stub___pow)
|
|
|
6837 choke me
|
|
|
6838 #else
|
|
|
6839 pow();
|
|
|
6840 #endif
|
|
|
6841
|
|
243
|
6842 ; return 0; }
|
|
|
6843 EOF
|
|
321
|
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
251
|
6845 rm -rf conftest*
|
|
|
6846 eval "ac_cv_func_pow=yes"
|
|
|
6847 else
|
|
|
6848 echo "configure: failed program was:" >&5
|
|
|
6849 cat conftest.$ac_ext >&5
|
|
|
6850 rm -rf conftest*
|
|
|
6851 eval "ac_cv_func_pow=no"
|
|
|
6852 fi
|
|
|
6853 rm -f conftest*
|
|
|
6854
|
|
|
6855 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
|
6856 echo "$ac_t""yes" 1>&6
|
|
|
6857 :
|
|
|
6858 else
|
|
|
6859 echo "$ac_t""no" 1>&6
|
|
|
6860 with_png=no
|
|
|
6861 fi
|
|
|
6862 }
|
|
310
|
6863 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
|
6864 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
|
321
|
6865 echo "configure:6866: checking for png.h" >&5
|
|
|
6866
|
|
|
6867 cat > conftest.$ac_ext <<EOF
|
|
|
6868 #line 6869 "configure"
|
|
310
|
6869 #include "confdefs.h"
|
|
|
6870 #include <png.h>
|
|
|
6871 EOF
|
|
|
6872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6873 { (eval echo configure:6874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
310
|
6874 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6875 if test -z "$ac_err"; then
|
|
|
6876 rm -rf conftest*
|
|
|
6877 eval "ac_cv_header_$ac_safe=yes"
|
|
|
6878 else
|
|
|
6879 echo "$ac_err" >&5
|
|
|
6880 echo "configure: failed program was:" >&5
|
|
|
6881 cat conftest.$ac_ext >&5
|
|
|
6882 rm -rf conftest*
|
|
|
6883 eval "ac_cv_header_$ac_safe=no"
|
|
|
6884 fi
|
|
|
6885 rm -f conftest*
|
|
|
6886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
6887 echo "$ac_t""yes" 1>&6
|
|
|
6888 :
|
|
|
6889 else
|
|
|
6890 echo "$ac_t""no" 1>&6
|
|
|
6891 with_png=no
|
|
|
6892 fi
|
|
|
6893 }
|
|
272
|
6894 test -z "$with_png" && {
|
|
|
6895 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
|
321
|
6896 echo "configure:6897: checking for png_read_image in -lpng" >&5
|
|
272
|
6897 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
|
6898
|
|
|
6899 xe_check_libs=" -lpng "
|
|
|
6900 cat > conftest.$ac_ext <<EOF
|
|
321
|
6901 #line 6902 "configure"
|
|
243
|
6902 #include "confdefs.h"
|
|
|
6903 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
6904 /* We use char because int might match the return type of a gcc2
|
|
|
6905 builtin and then its argument prototype would still apply. */
|
|
272
|
6906 char png_read_image();
|
|
|
6907
|
|
|
6908 int main() {
|
|
|
6909 png_read_image()
|
|
|
6910 ; return 0; }
|
|
|
6911 EOF
|
|
321
|
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
6913 rm -rf conftest*
|
|
|
6914 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
6915 else
|
|
|
6916 echo "configure: failed program was:" >&5
|
|
|
6917 cat conftest.$ac_ext >&5
|
|
|
6918 rm -rf conftest*
|
|
|
6919 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
6920 fi
|
|
|
6921 rm -f conftest*
|
|
|
6922 xe_check_libs=""
|
|
|
6923
|
|
|
6924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
6925 echo "$ac_t""yes" 1>&6
|
|
272
|
6926 :
|
|
|
6927 else
|
|
|
6928 echo "$ac_t""no" 1>&6
|
|
|
6929 with_png=no
|
|
|
6930 fi
|
|
|
6931
|
|
|
6932 }
|
|
310
|
6933 if test -z "$with_png"; then
|
|
|
6934 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
|
321
|
6935 echo "configure:6936: checking for workable png version information" >&5
|
|
310
|
6936 xe_check_libs="-lpng -lz"
|
|
|
6937 cat > conftest.$ac_ext <<EOF
|
|
321
|
6938 #line 6939 "configure"
|
|
310
|
6939 #include "confdefs.h"
|
|
|
6940 #include <png.h>
|
|
|
6941 int main(int c, char **v) {
|
|
|
6942 if (c == 1) return 0;
|
|
|
6943 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
|
6944 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
|
6945 EOF
|
|
321
|
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
310
|
6947 then
|
|
|
6948 ./conftest dummy_arg; png_status=$?;
|
|
|
6949 if test "$png_status" = "0"; then
|
|
|
6950 with_png=yes;
|
|
|
6951 else
|
|
|
6952 with_png=no;
|
|
|
6953 if test "$png_status" = "1"; then
|
|
|
6954 png_problem="PNG library version and header file don't match!"
|
|
|
6955 elif test "$png_status" = "2"; then
|
|
|
6956 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
|
6957 fi
|
|
|
6958 echo "
|
|
|
6959 *** WARNING *** $png_problem
|
|
|
6960 I'm not touching that with a 10-foot pole!
|
|
|
6961 If you really want to use the installed version of libPNG, rerun
|
|
|
6962 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
|
6963 fi
|
|
|
6964 else
|
|
|
6965 conftest_rc="$?"
|
|
|
6966 echo "configure: failed program was:" >&5
|
|
|
6967 cat conftest.$ac_ext >&5
|
|
|
6968 rm -fr conftest*
|
|
|
6969 with_png=no
|
|
|
6970 fi
|
|
|
6971 rm -fr conftest*
|
|
|
6972 xe_check_libs=
|
|
|
6973 echo "$ac_t""$with_png" 1>&6
|
|
|
6974 fi
|
|
251
|
6975 if test "$with_png" = "yes"; then
|
|
|
6976 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
6977 Defining HAVE_PNG
|
|
|
6978 EOF
|
|
|
6979 cat >> confdefs.h <<\EOF
|
|
|
6980 #define HAVE_PNG 1
|
|
|
6981 EOF
|
|
|
6982 }
|
|
|
6983
|
|
272
|
6984 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
|
251
|
6985 fi
|
|
|
6986
|
|
272
|
6987 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
|
6988 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
|
321
|
6989 echo "configure:6990: checking for tiffio.h" >&5
|
|
|
6990
|
|
|
6991 cat > conftest.$ac_ext <<EOF
|
|
|
6992 #line 6993 "configure"
|
|
272
|
6993 #include "confdefs.h"
|
|
|
6994 #include <tiffio.h>
|
|
|
6995 EOF
|
|
|
6996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
6997 { (eval echo configure:6998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
272
|
6998 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
6999 if test -z "$ac_err"; then
|
|
|
7000 rm -rf conftest*
|
|
|
7001 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7002 else
|
|
|
7003 echo "$ac_err" >&5
|
|
|
7004 echo "configure: failed program was:" >&5
|
|
|
7005 cat conftest.$ac_ext >&5
|
|
|
7006 rm -rf conftest*
|
|
|
7007 eval "ac_cv_header_$ac_safe=no"
|
|
|
7008 fi
|
|
|
7009 rm -f conftest*
|
|
|
7010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7011 echo "$ac_t""yes" 1>&6
|
|
|
7012 :
|
|
|
7013 else
|
|
|
7014 echo "$ac_t""no" 1>&6
|
|
|
7015 with_tiff=no
|
|
|
7016 fi
|
|
|
7017 }
|
|
|
7018 test -z "$with_tiff" && {
|
|
286
|
7019 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
|
321
|
7020 echo "configure:7021: checking for TIFFClientOpen in -ltiff" >&5
|
|
286
|
7021 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
|
251
|
7022
|
|
272
|
7023 xe_check_libs=" -ltiff "
|
|
|
7024 cat > conftest.$ac_ext <<EOF
|
|
321
|
7025 #line 7026 "configure"
|
|
217
|
7026 #include "confdefs.h"
|
|
|
7027 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7028 /* We use char because int might match the return type of a gcc2
|
|
|
7029 builtin and then its argument prototype would still apply. */
|
|
286
|
7030 char TIFFClientOpen();
|
|
|
7031
|
|
|
7032 int main() {
|
|
|
7033 TIFFClientOpen()
|
|
|
7034 ; return 0; }
|
|
|
7035 EOF
|
|
321
|
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
217
|
7037 rm -rf conftest*
|
|
|
7038 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7039 else
|
|
|
7040 echo "configure: failed program was:" >&5
|
|
|
7041 cat conftest.$ac_ext >&5
|
|
|
7042 rm -rf conftest*
|
|
|
7043 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7044 fi
|
|
|
7045 rm -f conftest*
|
|
|
7046 xe_check_libs=""
|
|
|
7047
|
|
|
7048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7049 echo "$ac_t""yes" 1>&6
|
|
272
|
7050 :
|
|
|
7051 else
|
|
|
7052 echo "$ac_t""no" 1>&6
|
|
|
7053 with_tiff=no
|
|
|
7054 fi
|
|
|
7055
|
|
|
7056 }
|
|
|
7057 test -z "$with_tiff" && with_tiff=yes
|
|
251
|
7058 if test "$with_tiff" = "yes"; then
|
|
|
7059 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7060 Defining HAVE_TIFF
|
|
|
7061 EOF
|
|
|
7062 cat >> confdefs.h <<\EOF
|
|
|
7063 #define HAVE_TIFF 1
|
|
|
7064 EOF
|
|
|
7065 }
|
|
|
7066
|
|
272
|
7067 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
|
251
|
7068 fi
|
|
278
|
7069 fi
|
|
|
7070
|
|
|
7071
|
|
|
7072 if test "$with_x11" = "yes"; then
|
|
|
7073
|
|
|
7074 echo "checking for X11 graphics libraries" 1>&6
|
|
321
|
7075 echo "configure:7076: checking for X11 graphics libraries" >&5
|
|
278
|
7076
|
|
|
7077 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
|
7078 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
|
321
|
7079 echo "configure:7080: checking for compface.h" >&5
|
|
|
7080
|
|
|
7081 cat > conftest.$ac_ext <<EOF
|
|
|
7082 #line 7083 "configure"
|
|
278
|
7083 #include "confdefs.h"
|
|
|
7084 #include <compface.h>
|
|
|
7085 EOF
|
|
|
7086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
7087 { (eval echo configure:7088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
278
|
7088 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7089 if test -z "$ac_err"; then
|
|
|
7090 rm -rf conftest*
|
|
|
7091 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7092 else
|
|
|
7093 echo "$ac_err" >&5
|
|
|
7094 echo "configure: failed program was:" >&5
|
|
|
7095 cat conftest.$ac_ext >&5
|
|
|
7096 rm -rf conftest*
|
|
|
7097 eval "ac_cv_header_$ac_safe=no"
|
|
|
7098 fi
|
|
|
7099 rm -f conftest*
|
|
|
7100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7101 echo "$ac_t""yes" 1>&6
|
|
|
7102 :
|
|
|
7103 else
|
|
|
7104 echo "$ac_t""no" 1>&6
|
|
|
7105 with_xface=no
|
|
|
7106 fi
|
|
|
7107 }
|
|
|
7108 test -z "$with_xface" && {
|
|
|
7109 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
|
321
|
7110 echo "configure:7111: checking for UnGenFace in -lcompface" >&5
|
|
278
|
7111 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
|
7112
|
|
|
7113 xe_check_libs=" -lcompface "
|
|
|
7114 cat > conftest.$ac_ext <<EOF
|
|
321
|
7115 #line 7116 "configure"
|
|
278
|
7116 #include "confdefs.h"
|
|
|
7117 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7118 /* We use char because int might match the return type of a gcc2
|
|
|
7119 builtin and then its argument prototype would still apply. */
|
|
|
7120 char UnGenFace();
|
|
|
7121
|
|
|
7122 int main() {
|
|
|
7123 UnGenFace()
|
|
|
7124 ; return 0; }
|
|
|
7125 EOF
|
|
321
|
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
278
|
7127 rm -rf conftest*
|
|
|
7128 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7129 else
|
|
|
7130 echo "configure: failed program was:" >&5
|
|
|
7131 cat conftest.$ac_ext >&5
|
|
|
7132 rm -rf conftest*
|
|
|
7133 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7134 fi
|
|
|
7135 rm -f conftest*
|
|
|
7136 xe_check_libs=""
|
|
|
7137
|
|
|
7138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7139 echo "$ac_t""yes" 1>&6
|
|
|
7140 :
|
|
|
7141 else
|
|
|
7142 echo "$ac_t""no" 1>&6
|
|
|
7143 with_xface=no
|
|
|
7144 fi
|
|
|
7145
|
|
|
7146 }
|
|
|
7147 test -z "$with_xface" && with_xface=yes
|
|
|
7148 if test "$with_xface" = "yes"; then
|
|
|
7149 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7150 Defining HAVE_XFACE
|
|
|
7151 EOF
|
|
|
7152 cat >> confdefs.h <<\EOF
|
|
|
7153 #define HAVE_XFACE 1
|
|
|
7154 EOF
|
|
|
7155 }
|
|
|
7156
|
|
|
7157 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
|
7158 fi
|
|
272
|
7159
|
|
193
|
7160
|
|
|
7161 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
|
|
321
|
7162 echo "configure:7163: checking for XawScrollbarSetThumb in -lXaw" >&5
|
|
193
|
7163 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
|
7164
|
|
|
7165 xe_check_libs=" -lXaw "
|
|
|
7166 cat > conftest.$ac_ext <<EOF
|
|
321
|
7167 #line 7168 "configure"
|
|
193
|
7168 #include "confdefs.h"
|
|
|
7169 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7170 /* We use char because int might match the return type of a gcc2
|
|
|
7171 builtin and then its argument prototype would still apply. */
|
|
|
7172 char XawScrollbarSetThumb();
|
|
|
7173
|
|
|
7174 int main() {
|
|
|
7175 XawScrollbarSetThumb()
|
|
|
7176 ; return 0; }
|
|
|
7177 EOF
|
|
321
|
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
193
|
7179 rm -rf conftest*
|
|
|
7180 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7181 else
|
|
|
7182 echo "configure: failed program was:" >&5
|
|
|
7183 cat conftest.$ac_ext >&5
|
|
|
7184 rm -rf conftest*
|
|
|
7185 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7186 fi
|
|
|
7187 rm -f conftest*
|
|
|
7188 xe_check_libs=""
|
|
|
7189
|
|
|
7190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7191 echo "$ac_t""yes" 1>&6
|
|
|
7192 have_xaw=yes
|
|
|
7193 else
|
|
|
7194 echo "$ac_t""no" 1>&6
|
|
|
7195 have_xaw=no
|
|
|
7196 fi
|
|
|
7197
|
|
|
7198
|
|
219
|
7199
|
|
193
|
7200 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
|
151
|
7201 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
|
321
|
7202 echo "configure:7203: checking for Xm/Xm.h" >&5
|
|
|
7203
|
|
|
7204 cat > conftest.$ac_ext <<EOF
|
|
|
7205 #line 7206 "configure"
|
|
151
|
7206 #include "confdefs.h"
|
|
|
7207 #include <Xm/Xm.h>
|
|
|
7208 EOF
|
|
|
7209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
7210 { (eval echo configure:7211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
151
|
7211 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7212 if test -z "$ac_err"; then
|
|
|
7213 rm -rf conftest*
|
|
|
7214 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7215 else
|
|
|
7216 echo "$ac_err" >&5
|
|
|
7217 echo "configure: failed program was:" >&5
|
|
|
7218 cat conftest.$ac_ext >&5
|
|
|
7219 rm -rf conftest*
|
|
|
7220 eval "ac_cv_header_$ac_safe=no"
|
|
|
7221 fi
|
|
|
7222 rm -f conftest*
|
|
|
7223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7224 echo "$ac_t""yes" 1>&6
|
|
|
7225
|
|
|
7226 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
|
321
|
7227 echo "configure:7228: checking for XmStringFree in -lXm" >&5
|
|
151
|
7228 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
|
7229
|
|
|
7230 xe_check_libs=" -lXm "
|
|
|
7231 cat > conftest.$ac_ext <<EOF
|
|
321
|
7232 #line 7233 "configure"
|
|
151
|
7233 #include "confdefs.h"
|
|
|
7234 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7235 /* We use char because int might match the return type of a gcc2
|
|
|
7236 builtin and then its argument prototype would still apply. */
|
|
|
7237 char XmStringFree();
|
|
|
7238
|
|
|
7239 int main() {
|
|
|
7240 XmStringFree()
|
|
|
7241 ; return 0; }
|
|
|
7242 EOF
|
|
321
|
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
7244 rm -rf conftest*
|
|
|
7245 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7246 else
|
|
|
7247 echo "configure: failed program was:" >&5
|
|
|
7248 cat conftest.$ac_ext >&5
|
|
|
7249 rm -rf conftest*
|
|
|
7250 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7251 fi
|
|
|
7252 rm -f conftest*
|
|
|
7253 xe_check_libs=""
|
|
|
7254
|
|
|
7255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7256 echo "$ac_t""yes" 1>&6
|
|
|
7257 have_motif=yes
|
|
|
7258 else
|
|
|
7259 echo "$ac_t""no" 1>&6
|
|
|
7260 have_motif=no
|
|
|
7261 fi
|
|
|
7262
|
|
|
7263
|
|
|
7264 else
|
|
|
7265 echo "$ac_t""no" 1>&6
|
|
|
7266 have_motif=no
|
|
|
7267 fi
|
|
|
7268
|
|
149
|
7269
|
|
272
|
7270 if test "$have_motif" = "yes"; then
|
|
|
7271 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
|
321
|
7272 echo "configure:7273: checking for Lesstif" >&5
|
|
272
|
7273 cat > conftest.$ac_ext <<EOF
|
|
321
|
7274 #line 7275 "configure"
|
|
272
|
7275 #include "confdefs.h"
|
|
|
7276 #include <Xm/Xm.h>
|
|
|
7277 #ifdef LESSTIF_VERSION
|
|
|
7278 yes
|
|
|
7279 #endif
|
|
|
7280
|
|
|
7281 EOF
|
|
|
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
7283 egrep "yes" >/dev/null 2>&1; then
|
|
|
7284 rm -rf conftest*
|
|
|
7285 have_lesstif=yes
|
|
|
7286 else
|
|
|
7287 rm -rf conftest*
|
|
|
7288 have_lesstif=no
|
|
|
7289 fi
|
|
|
7290 rm -f conftest*
|
|
|
7291
|
|
|
7292 echo "$ac_t""$have_lesstif" 1>&6
|
|
|
7293 fi
|
|
|
7294
|
|
193
|
7295 fi
|
|
149
|
7296
|
|
243
|
7297 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
|
|
149
|
7298 with_menubars="lucid" ;;
|
|
|
7299 esac
|
|
243
|
7300 case "$with_dialogs" in "" | "yes" | "lucid" )
|
|
149
|
7301 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
|
7302 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
|
|
7303 else with_dialogs=no
|
|
|
7304 fi ;;
|
|
|
7305 esac
|
|
|
7306 case "$with_scrollbars" in "" | "yes" )
|
|
|
7307 with_scrollbars="lucid" ;;
|
|
|
7308 esac
|
|
|
7309
|
|
|
7310 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
|
|
|
7311
|
|
|
7312 case "$all_widgets" in *athena* )
|
|
|
7313 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7314 Defining LWLIB_USES_ATHENA
|
|
|
7315 EOF
|
|
|
7316 cat >> confdefs.h <<\EOF
|
|
|
7317 #define LWLIB_USES_ATHENA 1
|
|
|
7318 EOF
|
|
|
7319 }
|
|
|
7320
|
|
157
|
7321 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7322 Defining NEED_ATHENA
|
|
|
7323 EOF
|
|
|
7324 cat >> confdefs.h <<\EOF
|
|
|
7325 #define NEED_ATHENA 1
|
|
|
7326 EOF
|
|
|
7327 }
|
|
|
7328
|
|
|
7329 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
151
|
7330 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
|
|
149
|
7331 esac
|
|
|
7332
|
|
|
7333 case "$all_widgets" in *motif* )
|
|
|
7334 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7335 Defining LWLIB_USES_MOTIF
|
|
|
7336 EOF
|
|
|
7337 cat >> confdefs.h <<\EOF
|
|
|
7338 #define LWLIB_USES_MOTIF 1
|
|
|
7339 EOF
|
|
|
7340 }
|
|
|
7341
|
|
157
|
7342 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7343 Defining NEED_MOTIF
|
|
|
7344 EOF
|
|
|
7345 cat >> confdefs.h <<\EOF
|
|
|
7346 #define NEED_MOTIF 1
|
|
|
7347 EOF
|
|
|
7348 }
|
|
|
7349
|
|
|
7350 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
|
149
|
7351 need_motif=yes ;;
|
|
70
|
7352 esac
|
|
|
7353
|
|
157
|
7354 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
|
7355 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
|
7356 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
|
|
7357 case "$all_widgets" in *lucid* )
|
|
|
7358 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7359 Defining NEED_LUCID
|
|
|
7360 EOF
|
|
|
7361 cat >> confdefs.h <<\EOF
|
|
|
7362 #define NEED_LUCID 1
|
|
|
7363 EOF
|
|
|
7364 }
|
|
|
7365
|
|
|
7366 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
|
7367 esac
|
|
|
7368
|
|
|
7369
|
|
|
7370
|
|
149
|
7371 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7372 Defining LWLIB_SCROLLBARS_ATHENA
|
|
|
7373 EOF
|
|
|
7374 cat >> confdefs.h <<\EOF
|
|
|
7375 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
|
7376 EOF
|
|
|
7377 }
|
|
|
7378 ;; esac
|
|
|
7379 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7380 Defining LWLIB_DIALOGS_ATHENA
|
|
|
7381 EOF
|
|
|
7382 cat >> confdefs.h <<\EOF
|
|
|
7383 #define LWLIB_DIALOGS_ATHENA 1
|
|
|
7384 EOF
|
|
|
7385 }
|
|
|
7386 ;; esac
|
|
|
7387 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7388 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
|
7389 EOF
|
|
|
7390 cat >> confdefs.h <<\EOF
|
|
|
7391 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
|
7392 EOF
|
|
|
7393 }
|
|
|
7394
|
|
|
7395 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7396 Defining LWLIB_DIALOGS_ATHENA3D
|
|
|
7397 EOF
|
|
|
7398 cat >> confdefs.h <<\EOF
|
|
|
7399 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
|
7400 EOF
|
|
|
7401 }
|
|
|
7402
|
|
|
7403
|
|
|
7404 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7405 Defining HAVE_MENUBARS
|
|
|
7406 EOF
|
|
|
7407 cat >> confdefs.h <<\EOF
|
|
|
7408 #define HAVE_MENUBARS 1
|
|
|
7409 EOF
|
|
|
7410 }
|
|
|
7411
|
|
|
7412 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7413 Defining HAVE_SCROLLBARS
|
|
|
7414 EOF
|
|
|
7415 cat >> confdefs.h <<\EOF
|
|
|
7416 #define HAVE_SCROLLBARS 1
|
|
|
7417 EOF
|
|
|
7418 }
|
|
|
7419
|
|
|
7420 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7421 Defining HAVE_DIALOGS
|
|
|
7422 EOF
|
|
|
7423 cat >> confdefs.h <<\EOF
|
|
|
7424 #define HAVE_DIALOGS 1
|
|
|
7425 EOF
|
|
|
7426 }
|
|
|
7427
|
|
|
7428 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7429 Defining HAVE_TOOLBARS
|
|
|
7430 EOF
|
|
|
7431 cat >> confdefs.h <<\EOF
|
|
|
7432 #define HAVE_TOOLBARS 1
|
|
|
7433 EOF
|
|
|
7434 }
|
|
|
7435
|
|
|
7436
|
|
|
7437 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7438 Defining LWLIB_MENUBARS_LUCID
|
|
|
7439 EOF
|
|
|
7440 cat >> confdefs.h <<\EOF
|
|
|
7441 #define LWLIB_MENUBARS_LUCID 1
|
|
|
7442 EOF
|
|
|
7443 }
|
|
|
7444
|
|
|
7445 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7446 Defining LWLIB_SCROLLBARS_LUCID
|
|
|
7447 EOF
|
|
|
7448 cat >> confdefs.h <<\EOF
|
|
|
7449 #define LWLIB_SCROLLBARS_LUCID 1
|
|
|
7450 EOF
|
|
|
7451 }
|
|
|
7452
|
|
|
7453
|
|
|
7454 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7455 Defining LWLIB_MENUBARS_MOTIF
|
|
|
7456 EOF
|
|
|
7457 cat >> confdefs.h <<\EOF
|
|
|
7458 #define LWLIB_MENUBARS_MOTIF 1
|
|
|
7459 EOF
|
|
|
7460 }
|
|
|
7461
|
|
|
7462 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7463 Defining LWLIB_SCROLLBARS_MOTIF
|
|
|
7464 EOF
|
|
|
7465 cat >> confdefs.h <<\EOF
|
|
|
7466 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
|
7467 EOF
|
|
|
7468 }
|
|
|
7469
|
|
|
7470 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7471 Defining LWLIB_DIALOGS_MOTIF
|
|
|
7472 EOF
|
|
|
7473 cat >> confdefs.h <<\EOF
|
|
|
7474 #define LWLIB_DIALOGS_MOTIF 1
|
|
|
7475 EOF
|
|
|
7476 }
|
|
|
7477
|
|
|
7478
|
|
151
|
7479 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7480 echo " xemacs will be linked with \"menubar.o\""
|
|
|
7481 fi
|
|
|
7482 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7483 echo " xemacs will be linked with \"scrollbar.o\""
|
|
|
7484 fi
|
|
|
7485 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7486 echo " xemacs will be linked with \"dialog.o\""
|
|
|
7487 fi
|
|
|
7488 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7489 echo " xemacs will be linked with \"toolbar.o\""
|
|
|
7490 fi
|
|
|
7491 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7492 echo " xemacs will be linked with \"gui.o\""
|
|
|
7493 fi
|
|
149
|
7494
|
|
|
7495 if test "$with_x11" = "yes"; then
|
|
151
|
7496 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7497 echo " xemacs will be linked with \"menubar-x.o\""
|
|
|
7498 fi
|
|
|
7499 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7500 echo " xemacs will be linked with \"scrollbar-x.o\""
|
|
|
7501 fi
|
|
|
7502 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7503 echo " xemacs will be linked with \"dialog-x.o\""
|
|
|
7504 fi
|
|
|
7505 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7506 echo " xemacs will be linked with \"toolbar-x.o\""
|
|
|
7507 fi
|
|
|
7508 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7509 echo " xemacs will be linked with \"gui-x.o\""
|
|
|
7510 fi
|
|
211
|
7511 else
|
|
|
7512 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
|
|
|
7513 echo "Attempt to Build NAS sound without X"
|
|
|
7514 echo "Please remove NAS configuration or build with X"
|
|
|
7515 exit 1
|
|
|
7516 fi
|
|
149
|
7517 fi
|
|
|
7518
|
|
272
|
7519 test "$use_minimal_tagbits" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
257
|
7520 Defining USE_MINIMAL_TAGBITS
|
|
|
7521 EOF
|
|
|
7522 cat >> confdefs.h <<\EOF
|
|
|
7523 #define USE_MINIMAL_TAGBITS 1
|
|
|
7524 EOF
|
|
|
7525 }
|
|
|
7526
|
|
272
|
7527 test "$use_indexed_lrecord_implementation" = "yes" && \
|
|
|
7528 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
257
|
7529 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
|
|
|
7530 EOF
|
|
|
7531 cat >> confdefs.h <<\EOF
|
|
|
7532 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
|
|
|
7533 EOF
|
|
|
7534 }
|
|
|
7535
|
|
272
|
7536
|
|
|
7537
|
|
|
7538 test -z "$with_mule" && with_mule=no
|
|
259
|
7539 test -z "$with_file_coding" && with_file_coding=no
|
|
|
7540
|
|
|
7541
|
|
|
7542 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
|
|
251
|
7543 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
259
|
7544 Defining FILE_CODING
|
|
|
7545 EOF
|
|
|
7546 cat >> confdefs.h <<\EOF
|
|
|
7547 #define FILE_CODING 1
|
|
|
7548 EOF
|
|
|
7549 }
|
|
|
7550
|
|
|
7551 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7552 echo " xemacs will be linked with \"file-coding.o\""
|
|
251
|
7553 fi
|
|
|
7554 fi
|
|
207
|
7555
|
|
149
|
7556 if test "$with_mule" = "yes" ; then
|
|
151
|
7557 echo "checking for Mule-related features" 1>&6
|
|
321
|
7558 echo "configure:7559: checking for Mule-related features" >&5
|
|
149
|
7559 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7560 Defining MULE
|
|
|
7561 EOF
|
|
|
7562 cat >> confdefs.h <<\EOF
|
|
|
7563 #define MULE 1
|
|
|
7564 EOF
|
|
|
7565 }
|
|
|
7566
|
|
251
|
7567 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
259
|
7568 Defining FILE_CODING
|
|
|
7569 EOF
|
|
|
7570 cat >> confdefs.h <<\EOF
|
|
|
7571 #define FILE_CODING 1
|
|
|
7572 EOF
|
|
|
7573 }
|
|
|
7574
|
|
|
7575 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7576 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\""
|
|
151
|
7577 fi
|
|
149
|
7578
|
|
155
|
7579 for ac_hdr in libintl.h
|
|
|
7580 do
|
|
|
7581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
7582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
7583 echo "configure:7584: checking for $ac_hdr" >&5
|
|
|
7584
|
|
|
7585 cat > conftest.$ac_ext <<EOF
|
|
|
7586 #line 7587 "configure"
|
|
155
|
7587 #include "confdefs.h"
|
|
|
7588 #include <$ac_hdr>
|
|
|
7589 EOF
|
|
|
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
7592 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7593 if test -z "$ac_err"; then
|
|
|
7594 rm -rf conftest*
|
|
|
7595 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7596 else
|
|
|
7597 echo "$ac_err" >&5
|
|
|
7598 echo "configure: failed program was:" >&5
|
|
|
7599 cat conftest.$ac_ext >&5
|
|
|
7600 rm -rf conftest*
|
|
|
7601 eval "ac_cv_header_$ac_safe=no"
|
|
|
7602 fi
|
|
|
7603 rm -f conftest*
|
|
|
7604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7605 echo "$ac_t""yes" 1>&6
|
|
|
7606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
7607 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7608 Defining $ac_tr_hdr
|
|
|
7609 EOF
|
|
|
7610 cat >> confdefs.h <<EOF
|
|
|
7611 #define $ac_tr_hdr 1
|
|
|
7612 EOF
|
|
|
7613 }
|
|
|
7614
|
|
|
7615 else
|
|
|
7616 echo "$ac_t""no" 1>&6
|
|
|
7617 fi
|
|
|
7618 done
|
|
|
7619
|
|
|
7620
|
|
149
|
7621 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
|
321
|
7622 echo "configure:7623: checking for strerror in -lintl" >&5
|
|
149
|
7623 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
|
7624
|
|
|
7625 xe_check_libs=" -lintl "
|
|
|
7626 cat > conftest.$ac_ext <<EOF
|
|
321
|
7627 #line 7628 "configure"
|
|
149
|
7628 #include "confdefs.h"
|
|
|
7629 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7630 /* We use char because int might match the return type of a gcc2
|
|
|
7631 builtin and then its argument prototype would still apply. */
|
|
|
7632 char strerror();
|
|
|
7633
|
|
|
7634 int main() {
|
|
|
7635 strerror()
|
|
|
7636 ; return 0; }
|
|
|
7637 EOF
|
|
321
|
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7639 rm -rf conftest*
|
|
|
7640 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7641 else
|
|
|
7642 echo "configure: failed program was:" >&5
|
|
|
7643 cat conftest.$ac_ext >&5
|
|
|
7644 rm -rf conftest*
|
|
|
7645 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7646 fi
|
|
|
7647 rm -f conftest*
|
|
|
7648 xe_check_libs=""
|
|
|
7649
|
|
151
|
7650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7651 echo "$ac_t""yes" 1>&6
|
|
|
7652 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
7653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
7654 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7655 Defining $ac_tr_lib
|
|
|
7656 EOF
|
|
|
7657 cat >> confdefs.h <<EOF
|
|
|
7658 #define $ac_tr_lib 1
|
|
|
7659 EOF
|
|
|
7660 }
|
|
|
7661
|
|
151
|
7662 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
|
149
|
7663
|
|
|
7664 else
|
|
|
7665 echo "$ac_t""no" 1>&6
|
|
|
7666 fi
|
|
|
7667
|
|
|
7668
|
|
|
7669
|
|
|
7670 echo "checking for Mule input methods" 1>&6
|
|
321
|
7671 echo "configure:7672: checking for Mule input methods" >&5
|
|
272
|
7672 case "$with_xim" in "" | "yes" )
|
|
149
|
7673 echo "checking for XIM" 1>&6
|
|
321
|
7674 echo "configure:7675: checking for XIM" >&5
|
|
272
|
7675 if test "$have_lesstif" = "yes"; then with_xim=xlib
|
|
|
7676 else
|
|
149
|
7677 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
|
321
|
7678 echo "configure:7679: checking for XmImMbLookupString in -lXm" >&5
|
|
149
|
7679 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
|
7680
|
|
|
7681 xe_check_libs=" -lXm "
|
|
|
7682 cat > conftest.$ac_ext <<EOF
|
|
321
|
7683 #line 7684 "configure"
|
|
149
|
7684 #include "confdefs.h"
|
|
|
7685 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7686 /* We use char because int might match the return type of a gcc2
|
|
|
7687 builtin and then its argument prototype would still apply. */
|
|
|
7688 char XmImMbLookupString();
|
|
|
7689
|
|
|
7690 int main() {
|
|
|
7691 XmImMbLookupString()
|
|
|
7692 ; return 0; }
|
|
|
7693 EOF
|
|
321
|
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
7695 rm -rf conftest*
|
|
|
7696 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7697 else
|
|
|
7698 echo "configure: failed program was:" >&5
|
|
|
7699 cat conftest.$ac_ext >&5
|
|
|
7700 rm -rf conftest*
|
|
|
7701 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7702 fi
|
|
|
7703 rm -f conftest*
|
|
|
7704 xe_check_libs=""
|
|
|
7705
|
|
151
|
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
7707 echo "$ac_t""yes" 1>&6
|
|
|
7708 with_xim=motif
|
|
|
7709 else
|
|
|
7710 echo "$ac_t""no" 1>&6
|
|
|
7711 with_xim=xlib
|
|
|
7712 fi
|
|
|
7713
|
|
|
7714
|
|
272
|
7715 fi
|
|
149
|
7716 esac
|
|
272
|
7717 if test "$with_xim" != "no"; then
|
|
149
|
7718 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7719 Defining HAVE_XIM
|
|
|
7720 EOF
|
|
|
7721 cat >> confdefs.h <<\EOF
|
|
|
7722 #define HAVE_XIM 1
|
|
|
7723 EOF
|
|
|
7724 }
|
|
|
7725
|
|
|
7726 if test "$with_xim" = "xlib"; then
|
|
|
7727 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7728 Defining XIM_XLIB
|
|
|
7729 EOF
|
|
|
7730 cat >> confdefs.h <<\EOF
|
|
|
7731 #define XIM_XLIB 1
|
|
|
7732 EOF
|
|
|
7733 }
|
|
|
7734
|
|
151
|
7735 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7736 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
|
7737 fi
|
|
|
7738 fi
|
|
149
|
7739 if test "$with_xim" = "motif"; then
|
|
|
7740 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7741 Defining XIM_MOTIF
|
|
|
7742 EOF
|
|
|
7743 cat >> confdefs.h <<\EOF
|
|
|
7744 #define XIM_MOTIF 1
|
|
|
7745 EOF
|
|
|
7746 }
|
|
|
7747
|
|
|
7748 need_motif=yes
|
|
151
|
7749 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
|
7750 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
|
7751 fi
|
|
149
|
7752 fi
|
|
215
|
7753 if test "$with_xim" = "motif"; then
|
|
177
|
7754 with_xfs=no
|
|
|
7755 fi
|
|
215
|
7756 fi
|
|
|
7757
|
|
|
7758 if test "$with_xfs" = "yes" ; then
|
|
|
7759 echo "checking for XFontSet" 1>&6
|
|
321
|
7760 echo "configure:7761: checking for XFontSet" >&5
|
|
215
|
7761
|
|
177
|
7762 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
|
321
|
7763 echo "configure:7764: checking for XmbDrawString in -lX11" >&5
|
|
177
|
7764 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
|
7765
|
|
|
7766 xe_check_libs=" -lX11 "
|
|
|
7767 cat > conftest.$ac_ext <<EOF
|
|
321
|
7768 #line 7769 "configure"
|
|
177
|
7769 #include "confdefs.h"
|
|
|
7770 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7771 /* We use char because int might match the return type of a gcc2
|
|
|
7772 builtin and then its argument prototype would still apply. */
|
|
|
7773 char XmbDrawString();
|
|
|
7774
|
|
|
7775 int main() {
|
|
|
7776 XmbDrawString()
|
|
|
7777 ; return 0; }
|
|
|
7778 EOF
|
|
321
|
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
177
|
7780 rm -rf conftest*
|
|
|
7781 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7782 else
|
|
|
7783 echo "configure: failed program was:" >&5
|
|
|
7784 cat conftest.$ac_ext >&5
|
|
|
7785 rm -rf conftest*
|
|
|
7786 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7787 fi
|
|
|
7788 rm -f conftest*
|
|
|
7789 xe_check_libs=""
|
|
|
7790
|
|
|
7791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7792 echo "$ac_t""yes" 1>&6
|
|
|
7793 :
|
|
|
7794 else
|
|
|
7795 echo "$ac_t""no" 1>&6
|
|
|
7796 with_xfs=no
|
|
|
7797 fi
|
|
|
7798
|
|
|
7799
|
|
|
7800 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
|
7801 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
7802 Defining USE_XFONTSET
|
|
|
7803 EOF
|
|
|
7804 cat >> confdefs.h <<\EOF
|
|
|
7805 #define USE_XFONTSET 1
|
|
|
7806 EOF
|
|
|
7807 }
|
|
|
7808
|
|
215
|
7809 if test "$with_xim" = "no" ; then
|
|
|
7810 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
|
|
177
|
7811 echo " xemacs will be linked with \"input-method-xfs.o\""
|
|
|
7812 fi
|
|
215
|
7813 fi
|
|
177
|
7814 fi
|
|
151
|
7815 fi
|
|
149
|
7816 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
|
151
|
7817 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
|
7818 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
|
321
|
7819 echo "configure:7820: checking for wnn/jllib.h" >&5
|
|
|
7820
|
|
|
7821 cat > conftest.$ac_ext <<EOF
|
|
|
7822 #line 7823 "configure"
|
|
151
|
7823 #include "confdefs.h"
|
|
|
7824 #include <wnn/jllib.h>
|
|
149
|
7825 EOF
|
|
|
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
7828 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
7829 if test -z "$ac_err"; then
|
|
|
7830 rm -rf conftest*
|
|
|
7831 eval "ac_cv_header_$ac_safe=yes"
|
|
|
7832 else
|
|
|
7833 echo "$ac_err" >&5
|
|
|
7834 echo "configure: failed program was:" >&5
|
|
|
7835 cat conftest.$ac_ext >&5
|
|
|
7836 rm -rf conftest*
|
|
|
7837 eval "ac_cv_header_$ac_safe=no"
|
|
|
7838 fi
|
|
|
7839 rm -f conftest*
|
|
|
7840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
7841 echo "$ac_t""yes" 1>&6
|
|
|
7842 :
|
|
|
7843 else
|
|
|
7844 echo "$ac_t""no" 1>&6
|
|
|
7845 with_wnn=no
|
|
|
7846 fi
|
|
|
7847 }
|
|
167
|
7848 if test "$with_wnn" != "no"; then
|
|
|
7849 for ac_func in crypt
|
|
|
7850 do
|
|
|
7851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
7852 echo "configure:7853: checking for $ac_func" >&5
|
|
|
7853
|
|
|
7854 cat > conftest.$ac_ext <<EOF
|
|
|
7855 #line 7856 "configure"
|
|
167
|
7856 #include "confdefs.h"
|
|
|
7857 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
7858 which can conflict with char $ac_func(); below. */
|
|
|
7859 #include <assert.h>
|
|
|
7860 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7861 /* We use char because int might match the return type of a gcc2
|
|
|
7862 builtin and then its argument prototype would still apply. */
|
|
|
7863 char $ac_func();
|
|
|
7864
|
|
|
7865 int main() {
|
|
|
7866
|
|
|
7867 /* The GNU C library defines this for functions which it implements
|
|
|
7868 to always fail with ENOSYS. Some functions are actually named
|
|
|
7869 something starting with __ and the normal name is an alias. */
|
|
|
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
7871 choke me
|
|
|
7872 #else
|
|
|
7873 $ac_func();
|
|
|
7874 #endif
|
|
|
7875
|
|
|
7876 ; return 0; }
|
|
|
7877 EOF
|
|
321
|
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
7879 rm -rf conftest*
|
|
|
7880 eval "ac_cv_func_$ac_func=yes"
|
|
|
7881 else
|
|
|
7882 echo "configure: failed program was:" >&5
|
|
|
7883 cat conftest.$ac_ext >&5
|
|
|
7884 rm -rf conftest*
|
|
|
7885 eval "ac_cv_func_$ac_func=no"
|
|
|
7886 fi
|
|
|
7887 rm -f conftest*
|
|
|
7888
|
|
|
7889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
7890 echo "$ac_t""yes" 1>&6
|
|
|
7891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
7892 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7893 Defining $ac_tr_func
|
|
|
7894 EOF
|
|
|
7895 cat >> confdefs.h <<EOF
|
|
|
7896 #define $ac_tr_func 1
|
|
|
7897 EOF
|
|
|
7898 }
|
|
|
7899
|
|
|
7900 else
|
|
|
7901 echo "$ac_t""no" 1>&6
|
|
|
7902 fi
|
|
|
7903 done
|
|
|
7904
|
|
|
7905 test "$ac_cv_func_crypt" != "yes" && {
|
|
|
7906 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
321
|
7907 echo "configure:7908: checking for crypt in -lcrypt" >&5
|
|
167
|
7908 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
|
7909
|
|
|
7910 xe_check_libs=" -lcrypt "
|
|
|
7911 cat > conftest.$ac_ext <<EOF
|
|
321
|
7912 #line 7913 "configure"
|
|
167
|
7913 #include "confdefs.h"
|
|
|
7914 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7915 /* We use char because int might match the return type of a gcc2
|
|
|
7916 builtin and then its argument prototype would still apply. */
|
|
|
7917 char crypt();
|
|
|
7918
|
|
|
7919 int main() {
|
|
|
7920 crypt()
|
|
|
7921 ; return 0; }
|
|
|
7922 EOF
|
|
321
|
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
167
|
7924 rm -rf conftest*
|
|
|
7925 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7926 else
|
|
|
7927 echo "configure: failed program was:" >&5
|
|
|
7928 cat conftest.$ac_ext >&5
|
|
|
7929 rm -rf conftest*
|
|
|
7930 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7931 fi
|
|
|
7932 rm -f conftest*
|
|
|
7933 xe_check_libs=""
|
|
|
7934
|
|
|
7935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7936 echo "$ac_t""yes" 1>&6
|
|
|
7937 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
7938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
7939 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
7940 Defining $ac_tr_lib
|
|
|
7941 EOF
|
|
|
7942 cat >> confdefs.h <<EOF
|
|
|
7943 #define $ac_tr_lib 1
|
|
|
7944 EOF
|
|
|
7945 }
|
|
|
7946
|
|
|
7947 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
|
7948
|
|
|
7949 else
|
|
|
7950 echo "$ac_t""no" 1>&6
|
|
|
7951 fi
|
|
|
7952
|
|
|
7953 }
|
|
|
7954 fi
|
|
321
|
7955 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
|
7956
|
|
159
|
7957 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
|
321
|
7958 echo "configure:7959: checking for jl_dic_list_e in -lwnn" >&5
|
|
155
|
7959 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
149
|
7960
|
|
159
|
7961 xe_check_libs=" -lwnn "
|
|
|
7962 cat > conftest.$ac_ext <<EOF
|
|
321
|
7963 #line 7964 "configure"
|
|
149
|
7964 #include "confdefs.h"
|
|
|
7965 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
7966 /* We use char because int might match the return type of a gcc2
|
|
|
7967 builtin and then its argument prototype would still apply. */
|
|
155
|
7968 char jl_dic_list_e();
|
|
149
|
7969
|
|
|
7970 int main() {
|
|
155
|
7971 jl_dic_list_e()
|
|
149
|
7972 ; return 0; }
|
|
|
7973 EOF
|
|
321
|
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
7975 rm -rf conftest*
|
|
|
7976 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
7977 else
|
|
|
7978 echo "configure: failed program was:" >&5
|
|
|
7979 cat conftest.$ac_ext >&5
|
|
|
7980 rm -rf conftest*
|
|
|
7981 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
7982 fi
|
|
|
7983 rm -f conftest*
|
|
|
7984 xe_check_libs=""
|
|
|
7985
|
|
|
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
7987 echo "$ac_t""yes" 1>&6
|
|
|
7988 libwnn=wnn
|
|
|
7989 else
|
|
|
7990 echo "$ac_t""no" 1>&6
|
|
|
7991 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
|
|
7992 echo "configure:7993: checking for jl_dic_list_e in -lwnn4" >&5
|
|
|
7993 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
|
7994
|
|
|
7995 xe_check_libs=" -lwnn4 "
|
|
|
7996 cat > conftest.$ac_ext <<EOF
|
|
|
7997 #line 7998 "configure"
|
|
|
7998 #include "confdefs.h"
|
|
|
7999 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8000 /* We use char because int might match the return type of a gcc2
|
|
|
8001 builtin and then its argument prototype would still apply. */
|
|
|
8002 char jl_dic_list_e();
|
|
|
8003
|
|
|
8004 int main() {
|
|
|
8005 jl_dic_list_e()
|
|
|
8006 ; return 0; }
|
|
|
8007 EOF
|
|
|
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8009 rm -rf conftest*
|
|
|
8010 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8011 else
|
|
|
8012 echo "configure: failed program was:" >&5
|
|
|
8013 cat conftest.$ac_ext >&5
|
|
|
8014 rm -rf conftest*
|
|
|
8015 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8016 fi
|
|
|
8017 rm -f conftest*
|
|
|
8018 xe_check_libs=""
|
|
|
8019
|
|
151
|
8020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8021 echo "$ac_t""yes" 1>&6
|
|
321
|
8022 libwnn=wnn4
|
|
|
8023 else
|
|
|
8024 echo "$ac_t""no" 1>&6
|
|
|
8025 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
|
|
8026 echo "configure:8027: checking for jl_dic_list_e in -lwnn6" >&5
|
|
|
8027 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
|
8028
|
|
|
8029 xe_check_libs=" -lwnn6 "
|
|
|
8030 cat > conftest.$ac_ext <<EOF
|
|
|
8031 #line 8032 "configure"
|
|
|
8032 #include "confdefs.h"
|
|
|
8033 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8034 /* We use char because int might match the return type of a gcc2
|
|
|
8035 builtin and then its argument prototype would still apply. */
|
|
|
8036 char jl_dic_list_e();
|
|
|
8037
|
|
|
8038 int main() {
|
|
|
8039 jl_dic_list_e()
|
|
|
8040 ; return 0; }
|
|
|
8041 EOF
|
|
|
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
8043 rm -rf conftest*
|
|
|
8044 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8045 else
|
|
|
8046 echo "configure: failed program was:" >&5
|
|
|
8047 cat conftest.$ac_ext >&5
|
|
|
8048 rm -rf conftest*
|
|
|
8049 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8050 fi
|
|
|
8051 rm -f conftest*
|
|
|
8052 xe_check_libs=""
|
|
|
8053
|
|
|
8054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
8055 echo "$ac_t""yes" 1>&6
|
|
|
8056 libwnn=wnn6
|
|
|
8057 else
|
|
|
8058 echo "$ac_t""no" 1>&6
|
|
|
8059 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
|
|
8060 echo "configure:8061: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
|
|
8061 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
|
8062
|
|
|
8063 xe_check_libs=" -lwnn6_fromsrc "
|
|
|
8064 cat > conftest.$ac_ext <<EOF
|
|
|
8065 #line 8066 "configure"
|
|
|
8066 #include "confdefs.h"
|
|
|
8067 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8068 /* We use char because int might match the return type of a gcc2
|
|
|
8069 builtin and then its argument prototype would still apply. */
|
|
|
8070 char dic_list_e();
|
|
|
8071
|
|
|
8072 int main() {
|
|
|
8073 dic_list_e()
|
|
|
8074 ; return 0; }
|
|
|
8075 EOF
|
|
|
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
|
8077 rm -rf conftest*
|
|
|
8078 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8079 else
|
|
|
8080 echo "configure: failed program was:" >&5
|
|
|
8081 cat conftest.$ac_ext >&5
|
|
|
8082 rm -rf conftest*
|
|
|
8083 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8084 fi
|
|
|
8085 rm -f conftest*
|
|
|
8086 xe_check_libs=""
|
|
|
8087
|
|
|
8088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
8089 echo "$ac_t""yes" 1>&6
|
|
|
8090 libwnn=wnn6_fromsrc
|
|
159
|
8091 else
|
|
|
8092 echo "$ac_t""no" 1>&6
|
|
|
8093 with_wnn=no
|
|
149
|
8094 fi
|
|
|
8095
|
|
321
|
8096
|
|
|
8097 fi
|
|
|
8098
|
|
|
8099
|
|
|
8100 fi
|
|
|
8101
|
|
|
8102
|
|
|
8103 fi
|
|
|
8104
|
|
|
8105
|
|
|
8106 fi
|
|
149
|
8107 test -z "$with_wnn" && with_wnn=yes
|
|
|
8108 if test "$with_wnn" = "yes"; then
|
|
|
8109 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8110 Defining HAVE_WNN
|
|
|
8111 EOF
|
|
|
8112 cat >> confdefs.h <<\EOF
|
|
|
8113 #define HAVE_WNN 1
|
|
|
8114 EOF
|
|
|
8115 }
|
|
|
8116
|
|
321
|
8117 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
|
151
|
8118 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8119 echo " xemacs will be linked with \"mule-wnnfns.o\""
|
|
|
8120 fi
|
|
284
|
8121 if test "$with_wnn6" != "no"; then
|
|
|
8122
|
|
321
|
8123 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
|
|
8124 echo "configure:8125: checking for jl_fi_dic_list in -l$libwnn" >&5
|
|
|
8125 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
|
8126
|
|
|
8127 xe_check_libs=" -l$libwnn "
|
|
|
8128 cat > conftest.$ac_ext <<EOF
|
|
|
8129 #line 8130 "configure"
|
|
149
|
8130 #include "confdefs.h"
|
|
|
8131 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8132 /* We use char because int might match the return type of a gcc2
|
|
|
8133 builtin and then its argument prototype would still apply. */
|
|
|
8134 char jl_fi_dic_list();
|
|
|
8135
|
|
|
8136 int main() {
|
|
|
8137 jl_fi_dic_list()
|
|
|
8138 ; return 0; }
|
|
|
8139 EOF
|
|
321
|
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8141 rm -rf conftest*
|
|
|
8142 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8143 else
|
|
|
8144 echo "configure: failed program was:" >&5
|
|
|
8145 cat conftest.$ac_ext >&5
|
|
|
8146 rm -rf conftest*
|
|
|
8147 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8148 fi
|
|
|
8149 rm -f conftest*
|
|
|
8150 xe_check_libs=""
|
|
|
8151
|
|
151
|
8152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8153 echo "$ac_t""yes" 1>&6
|
|
|
8154 with_wnn6=yes
|
|
|
8155 else
|
|
|
8156 echo "$ac_t""no" 1>&6
|
|
|
8157 fi
|
|
|
8158
|
|
|
8159
|
|
284
|
8160 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
151
|
8161 Defining WNN6
|
|
|
8162 EOF
|
|
|
8163 cat >> confdefs.h <<\EOF
|
|
|
8164 #define WNN6 1
|
|
|
8165 EOF
|
|
|
8166 }
|
|
|
8167
|
|
284
|
8168 fi
|
|
151
|
8169 fi
|
|
149
|
8170
|
|
267
|
8171 canna_includes_found=no
|
|
|
8172 if test "$with_canna" != "no"; then
|
|
|
8173 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
|
8174 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
|
321
|
8175 echo "configure:8176: checking for canna/jrkanji.h" >&5
|
|
|
8176
|
|
|
8177 cat > conftest.$ac_ext <<EOF
|
|
|
8178 #line 8179 "configure"
|
|
267
|
8179 #include "confdefs.h"
|
|
|
8180 #include <canna/jrkanji.h>
|
|
|
8181 EOF
|
|
|
8182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
8183 { (eval echo configure:8184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
267
|
8184 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8185 if test -z "$ac_err"; then
|
|
|
8186 rm -rf conftest*
|
|
|
8187 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8188 else
|
|
|
8189 echo "$ac_err" >&5
|
|
|
8190 echo "configure: failed program was:" >&5
|
|
|
8191 cat conftest.$ac_ext >&5
|
|
|
8192 rm -rf conftest*
|
|
|
8193 eval "ac_cv_header_$ac_safe=no"
|
|
|
8194 fi
|
|
|
8195 rm -f conftest*
|
|
|
8196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8197 echo "$ac_t""yes" 1>&6
|
|
|
8198 canna_includes_found=yes
|
|
|
8199 else
|
|
|
8200 echo "$ac_t""no" 1>&6
|
|
|
8201 fi
|
|
|
8202
|
|
|
8203 fi
|
|
|
8204 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
|
8205 -d "/usr/local/canna/include"; then
|
|
|
8206 save_c_switch_site="$c_switch_site"
|
|
|
8207 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
|
8208 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
|
8209 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
|
321
|
8210 echo "configure:8211: checking for canna/jrkanji.h" >&5
|
|
|
8211
|
|
|
8212 cat > conftest.$ac_ext <<EOF
|
|
|
8213 #line 8214 "configure"
|
|
267
|
8214 #include "confdefs.h"
|
|
|
8215 #include <canna/jrkanji.h>
|
|
|
8216 EOF
|
|
|
8217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
8218 { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
267
|
8219 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8220 if test -z "$ac_err"; then
|
|
|
8221 rm -rf conftest*
|
|
|
8222 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8223 else
|
|
|
8224 echo "$ac_err" >&5
|
|
|
8225 echo "configure: failed program was:" >&5
|
|
|
8226 cat conftest.$ac_ext >&5
|
|
|
8227 rm -rf conftest*
|
|
|
8228 eval "ac_cv_header_$ac_safe=no"
|
|
|
8229 fi
|
|
|
8230 rm -f conftest*
|
|
|
8231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8232 echo "$ac_t""yes" 1>&6
|
|
|
8233 canna_includes_found=yes
|
|
|
8234 else
|
|
|
8235 echo "$ac_t""no" 1>&6
|
|
|
8236 fi
|
|
|
8237
|
|
|
8238 if test "$canna_includes_found" != "yes"; then
|
|
|
8239 c_switch_site="$save_c_switch_site"
|
|
|
8240 with_canna="no"
|
|
|
8241 fi
|
|
|
8242 fi
|
|
|
8243
|
|
|
8244 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
|
149
|
8245 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
|
321
|
8246 echo "configure:8247: checking for canna/RK.h" >&5
|
|
|
8247
|
|
|
8248 cat > conftest.$ac_ext <<EOF
|
|
|
8249 #line 8250 "configure"
|
|
149
|
8250 #include "confdefs.h"
|
|
|
8251 #include <canna/RK.h>
|
|
|
8252 EOF
|
|
|
8253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
8254 { (eval echo configure:8255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
8255 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
8256 if test -z "$ac_err"; then
|
|
|
8257 rm -rf conftest*
|
|
|
8258 eval "ac_cv_header_$ac_safe=yes"
|
|
|
8259 else
|
|
|
8260 echo "$ac_err" >&5
|
|
|
8261 echo "configure: failed program was:" >&5
|
|
|
8262 cat conftest.$ac_ext >&5
|
|
|
8263 rm -rf conftest*
|
|
|
8264 eval "ac_cv_header_$ac_safe=no"
|
|
|
8265 fi
|
|
|
8266 rm -f conftest*
|
|
|
8267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
8268 echo "$ac_t""yes" 1>&6
|
|
|
8269 :
|
|
|
8270 else
|
|
|
8271 echo "$ac_t""no" 1>&6
|
|
|
8272 with_canna=no
|
|
|
8273 fi
|
|
|
8274 }
|
|
|
8275 test -z "$with_canna" && {
|
|
|
8276 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
|
321
|
8277 echo "configure:8278: checking for RkBgnBun in -lRKC" >&5
|
|
149
|
8278 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
|
8279
|
|
|
8280 xe_check_libs=" -lRKC "
|
|
|
8281 cat > conftest.$ac_ext <<EOF
|
|
321
|
8282 #line 8283 "configure"
|
|
149
|
8283 #include "confdefs.h"
|
|
|
8284 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8285 /* We use char because int might match the return type of a gcc2
|
|
|
8286 builtin and then its argument prototype would still apply. */
|
|
|
8287 char RkBgnBun();
|
|
|
8288
|
|
|
8289 int main() {
|
|
|
8290 RkBgnBun()
|
|
|
8291 ; return 0; }
|
|
|
8292 EOF
|
|
321
|
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8294 rm -rf conftest*
|
|
|
8295 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8296 else
|
|
|
8297 echo "configure: failed program was:" >&5
|
|
|
8298 cat conftest.$ac_ext >&5
|
|
|
8299 rm -rf conftest*
|
|
|
8300 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8301 fi
|
|
|
8302 rm -f conftest*
|
|
|
8303 xe_check_libs=""
|
|
|
8304
|
|
151
|
8305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8306 echo "$ac_t""yes" 1>&6
|
|
|
8307 :
|
|
|
8308 else
|
|
|
8309 echo "$ac_t""no" 1>&6
|
|
|
8310 with_canna=no
|
|
|
8311 fi
|
|
|
8312
|
|
|
8313 }
|
|
|
8314 test -z "$with_canna" && {
|
|
|
8315 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
|
321
|
8316 echo "configure:8317: checking for jrKanjiControl in -lcanna" >&5
|
|
149
|
8317 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
|
8318
|
|
|
8319 xe_check_libs=" -lcanna "
|
|
|
8320 cat > conftest.$ac_ext <<EOF
|
|
321
|
8321 #line 8322 "configure"
|
|
149
|
8322 #include "confdefs.h"
|
|
|
8323 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8324 /* We use char because int might match the return type of a gcc2
|
|
|
8325 builtin and then its argument prototype would still apply. */
|
|
|
8326 char jrKanjiControl();
|
|
|
8327
|
|
|
8328 int main() {
|
|
|
8329 jrKanjiControl()
|
|
|
8330 ; return 0; }
|
|
|
8331 EOF
|
|
321
|
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8333 rm -rf conftest*
|
|
|
8334 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8335 else
|
|
|
8336 echo "configure: failed program was:" >&5
|
|
|
8337 cat conftest.$ac_ext >&5
|
|
|
8338 rm -rf conftest*
|
|
|
8339 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8340 fi
|
|
|
8341 rm -f conftest*
|
|
|
8342 xe_check_libs=""
|
|
|
8343
|
|
151
|
8344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
8345 echo "$ac_t""yes" 1>&6
|
|
|
8346 :
|
|
|
8347 else
|
|
|
8348 echo "$ac_t""no" 1>&6
|
|
|
8349 with_canna=no
|
|
|
8350 fi
|
|
|
8351
|
|
|
8352 }
|
|
|
8353 test -z "$with_canna" && with_canna=yes
|
|
|
8354 if test "$with_canna" = "yes"; then
|
|
|
8355 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8356 Defining HAVE_CANNA
|
|
|
8357 EOF
|
|
|
8358 cat >> confdefs.h <<\EOF
|
|
|
8359 #define HAVE_CANNA 1
|
|
|
8360 EOF
|
|
|
8361 }
|
|
|
8362
|
|
151
|
8363 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
|
8364 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8365 echo " xemacs will be linked with \"mule-canna.o\""
|
|
|
8366 fi
|
|
|
8367 fi
|
|
155
|
8368
|
|
151
|
8369 else for feature in xim canna wnn; do
|
|
149
|
8370 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
8371 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
|
|
|
8372 fi
|
|
|
8373 eval "with_${feature}=no"
|
|
|
8374 done
|
|
151
|
8375 fi
|
|
|
8376
|
|
|
8377 if test "$need_motif" = "yes" ; then
|
|
|
8378 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
|
207
|
8379
|
|
|
8380 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
|
321
|
8381 echo "configure:8382: checking for layout_object_getvalue in -li18n" >&5
|
|
207
|
8382 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
|
8383
|
|
|
8384 xe_check_libs=" -li18n "
|
|
|
8385 cat > conftest.$ac_ext <<EOF
|
|
321
|
8386 #line 8387 "configure"
|
|
207
|
8387 #include "confdefs.h"
|
|
|
8388 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8389 /* We use char because int might match the return type of a gcc2
|
|
|
8390 builtin and then its argument prototype would still apply. */
|
|
|
8391 char layout_object_getvalue();
|
|
|
8392
|
|
|
8393 int main() {
|
|
|
8394 layout_object_getvalue()
|
|
|
8395 ; return 0; }
|
|
|
8396 EOF
|
|
321
|
8397 if { (eval echo configure:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
207
|
8398 rm -rf conftest*
|
|
|
8399 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
8400 else
|
|
|
8401 echo "configure: failed program was:" >&5
|
|
|
8402 cat conftest.$ac_ext >&5
|
|
|
8403 rm -rf conftest*
|
|
|
8404 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
8405 fi
|
|
|
8406 rm -f conftest*
|
|
|
8407 xe_check_libs=""
|
|
|
8408
|
|
|
8409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
8410 echo "$ac_t""yes" 1>&6
|
|
|
8411 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
|
8412 else
|
|
|
8413 echo "$ac_t""no" 1>&6
|
|
|
8414 fi
|
|
|
8415
|
|
|
8416
|
|
151
|
8417
|
|
|
8418 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
|
165
|
8419 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
|
8420 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
151
|
8421
|
|
163
|
8422 runpath="" runpath_dirs=""
|
|
155
|
8423 if test -n "$LD_RUN_PATH"; then
|
|
151
|
8424 runpath="$LD_RUN_PATH"
|
|
155
|
8425 elif test "$GCC" = "yes"; then
|
|
163
|
8426 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
|
8427 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
|
155
|
8428 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
|
8429 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
|
8430 case "$arg" in P,* | -L* | -R* )
|
|
159
|
8431 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
|
163
|
8432 {
|
|
155
|
8433 xe_runpath_dir="$dir"
|
|
163
|
8434 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
8435 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
8436 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
8437 eval "$xe_add_unique_runpath_dir"
|
|
|
8438 }
|
|
155
|
8439 done ;;
|
|
|
8440 esac
|
|
|
8441 done
|
|
163
|
8442 ld_switch_run="$ld_switch_run_save"
|
|
155
|
8443 rm -f conftest*
|
|
151
|
8444 else
|
|
155
|
8445 for arg in $ld_switch_site $ld_switch_x_site; do
|
|
163
|
8446 case "$arg" in -L*) {
|
|
159
|
8447 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
|
163
|
8448 test "$xe_runpath_dir" != "/lib" -a \
|
|
155
|
8449 "$xe_runpath_dir" != "/usr/lib" -a \
|
|
163
|
8450 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
|
8451 eval "$xe_add_unique_runpath_dir"
|
|
|
8452 };; esac
|
|
151
|
8453 done
|
|
163
|
8454 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
|
8455 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
|
8456 eval "$xe_add_unique_runpath_dir";
|
|
|
8457 fi
|
|
155
|
8458 fi
|
|
151
|
8459 if test -n "$runpath"; then
|
|
|
8460 ld_switch_run="${dash_r}${runpath}"
|
|
272
|
8461
|
|
|
8462 if test "$GCC" = "yes"; then
|
|
|
8463 set x $ld_switch_run; shift; ld_switch_run=""
|
|
|
8464 while test -n "$1"; do
|
|
|
8465 case $1 in
|
|
|
8466 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
|
8467 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
|
8468 -Xlinker* ) ;;
|
|
|
8469 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
|
8470 esac
|
|
|
8471 shift
|
|
|
8472 done
|
|
|
8473 fi
|
|
151
|
8474 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
|
8475 fi
|
|
|
8476 fi
|
|
|
8477
|
|
|
8478 fi
|
|
|
8479
|
|
265
|
8480 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
|
|
149
|
8481 do
|
|
|
8482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
8483 echo "configure:8484: checking for $ac_func" >&5
|
|
|
8484
|
|
|
8485 cat > conftest.$ac_ext <<EOF
|
|
|
8486 #line 8487 "configure"
|
|
149
|
8487 #include "confdefs.h"
|
|
|
8488 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8489 which can conflict with char $ac_func(); below. */
|
|
|
8490 #include <assert.h>
|
|
|
8491 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8492 /* We use char because int might match the return type of a gcc2
|
|
|
8493 builtin and then its argument prototype would still apply. */
|
|
|
8494 char $ac_func();
|
|
|
8495
|
|
|
8496 int main() {
|
|
|
8497
|
|
70
|
8498 /* The GNU C library defines this for functions which it implements
|
|
|
8499 to always fail with ENOSYS. Some functions are actually named
|
|
|
8500 something starting with __ and the normal name is an alias. */
|
|
149
|
8501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
70
|
8502 choke me
|
|
|
8503 #else
|
|
149
|
8504 $ac_func();
|
|
70
|
8505 #endif
|
|
149
|
8506
|
|
70
|
8507 ; return 0; }
|
|
|
8508 EOF
|
|
321
|
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8510 rm -rf conftest*
|
|
|
8511 eval "ac_cv_func_$ac_func=yes"
|
|
|
8512 else
|
|
|
8513 echo "configure: failed program was:" >&5
|
|
|
8514 cat conftest.$ac_ext >&5
|
|
|
8515 rm -rf conftest*
|
|
|
8516 eval "ac_cv_func_$ac_func=no"
|
|
|
8517 fi
|
|
|
8518 rm -f conftest*
|
|
|
8519
|
|
|
8520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
8521 echo "$ac_t""yes" 1>&6
|
|
|
8522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
8523 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8524 Defining $ac_tr_func
|
|
|
8525 EOF
|
|
|
8526 cat >> confdefs.h <<EOF
|
|
|
8527 #define $ac_tr_func 1
|
|
|
8528 EOF
|
|
|
8529 }
|
|
|
8530
|
|
|
8531 else
|
|
|
8532 echo "$ac_t""no" 1>&6
|
|
|
8533 fi
|
|
|
8534 done
|
|
|
8535
|
|
|
8536
|
|
151
|
8537
|
|
|
8538 case "$opsys" in
|
|
209
|
8539 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
8540 echo " xemacs will be linked with \"realpath.o\""
|
|
|
8541 fi ;;
|
|
|
8542 * )
|
|
321
|
8543 case "$canonical" in
|
|
|
8544 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8545 echo " xemacs will be linked with \"realpath.o\""
|
|
|
8546 fi ;;
|
|
|
8547 * ) for ac_func in realpath
|
|
151
|
8548 do
|
|
|
8549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
8550 echo "configure:8551: checking for $ac_func" >&5
|
|
|
8551
|
|
|
8552 cat > conftest.$ac_ext <<EOF
|
|
|
8553 #line 8554 "configure"
|
|
151
|
8554 #include "confdefs.h"
|
|
|
8555 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8556 which can conflict with char $ac_func(); below. */
|
|
|
8557 #include <assert.h>
|
|
|
8558 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8559 /* We use char because int might match the return type of a gcc2
|
|
|
8560 builtin and then its argument prototype would still apply. */
|
|
|
8561 char $ac_func();
|
|
|
8562
|
|
|
8563 int main() {
|
|
|
8564
|
|
|
8565 /* The GNU C library defines this for functions which it implements
|
|
|
8566 to always fail with ENOSYS. Some functions are actually named
|
|
|
8567 something starting with __ and the normal name is an alias. */
|
|
|
8568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
8569 choke me
|
|
|
8570 #else
|
|
|
8571 $ac_func();
|
|
|
8572 #endif
|
|
|
8573
|
|
|
8574 ; return 0; }
|
|
|
8575 EOF
|
|
321
|
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
151
|
8577 rm -rf conftest*
|
|
|
8578 eval "ac_cv_func_$ac_func=yes"
|
|
|
8579 else
|
|
|
8580 echo "configure: failed program was:" >&5
|
|
|
8581 cat conftest.$ac_ext >&5
|
|
|
8582 rm -rf conftest*
|
|
|
8583 eval "ac_cv_func_$ac_func=no"
|
|
|
8584 fi
|
|
|
8585 rm -f conftest*
|
|
|
8586
|
|
|
8587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
8588 echo "$ac_t""yes" 1>&6
|
|
|
8589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
8590 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8591 Defining $ac_tr_func
|
|
|
8592 EOF
|
|
|
8593 cat >> confdefs.h <<EOF
|
|
|
8594 #define $ac_tr_func 1
|
|
|
8595 EOF
|
|
|
8596 }
|
|
|
8597
|
|
|
8598 else
|
|
|
8599 echo "$ac_t""no" 1>&6
|
|
|
8600 fi
|
|
|
8601 done
|
|
|
8602
|
|
321
|
8603 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
151
|
8604 echo " xemacs will be linked with \"realpath.o\""
|
|
|
8605 fi ;;
|
|
321
|
8606 esac ;;
|
|
151
|
8607 esac
|
|
|
8608
|
|
149
|
8609 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
|
321
|
8610 echo "configure:8611: checking whether netdb declares h_errno" >&5
|
|
|
8611 cat > conftest.$ac_ext <<EOF
|
|
|
8612 #line 8613 "configure"
|
|
0
|
8613 #include "confdefs.h"
|
|
|
8614 #include <netdb.h>
|
|
149
|
8615 int main() {
|
|
|
8616 return h_errno;
|
|
|
8617 ; return 0; }
|
|
|
8618 EOF
|
|
321
|
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8620 rm -rf conftest*
|
|
|
8621 echo "$ac_t""yes" 1>&6
|
|
|
8622 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8623 Defining HAVE_H_ERRNO
|
|
|
8624 EOF
|
|
|
8625 cat >> confdefs.h <<\EOF
|
|
|
8626 #define HAVE_H_ERRNO 1
|
|
|
8627 EOF
|
|
|
8628 }
|
|
|
8629
|
|
|
8630 else
|
|
|
8631 echo "configure: failed program was:" >&5
|
|
|
8632 cat conftest.$ac_ext >&5
|
|
|
8633 rm -rf conftest*
|
|
|
8634 echo "$ac_t""no" 1>&6
|
|
|
8635 fi
|
|
|
8636 rm -f conftest*
|
|
|
8637
|
|
|
8638 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
|
321
|
8639 echo "configure:8640: checking for sigsetjmp" >&5
|
|
|
8640 cat > conftest.$ac_ext <<EOF
|
|
|
8641 #line 8642 "configure"
|
|
0
|
8642 #include "confdefs.h"
|
|
|
8643 #include <setjmp.h>
|
|
149
|
8644 int main() {
|
|
|
8645 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
|
8646 ; return 0; }
|
|
|
8647 EOF
|
|
321
|
8648 if { (eval echo configure:8649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
8649 rm -rf conftest*
|
|
|
8650 echo "$ac_t""yes" 1>&6
|
|
|
8651 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8652 Defining HAVE_SIGSETJMP
|
|
|
8653 EOF
|
|
|
8654 cat >> confdefs.h <<\EOF
|
|
|
8655 #define HAVE_SIGSETJMP 1
|
|
|
8656 EOF
|
|
|
8657 }
|
|
|
8658
|
|
|
8659 else
|
|
|
8660 echo "configure: failed program was:" >&5
|
|
|
8661 cat conftest.$ac_ext >&5
|
|
|
8662 rm -rf conftest*
|
|
|
8663 echo "$ac_t""no" 1>&6
|
|
|
8664 fi
|
|
|
8665 rm -f conftest*
|
|
|
8666
|
|
|
8667 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
|
321
|
8668 echo "configure:8669: checking whether localtime caches TZ" >&5
|
|
149
|
8669
|
|
|
8670 if test "$ac_cv_func_tzset" = "yes"; then
|
|
|
8671 cat > conftest.$ac_ext <<EOF
|
|
321
|
8672 #line 8673 "configure"
|
|
0
|
8673 #include "confdefs.h"
|
|
|
8674 #include <time.h>
|
|
149
|
8675 #if STDC_HEADERS
|
|
0
|
8676 # include <stdlib.h>
|
|
|
8677 #endif
|
|
|
8678 extern char **environ;
|
|
|
8679 unset_TZ ()
|
|
|
8680 {
|
|
|
8681 char **from, **to;
|
|
|
8682 for (to = from = environ; (*to = *from); from++)
|
|
|
8683 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
|
8684 to++;
|
|
|
8685 }
|
|
149
|
8686 char TZ_GMT0[] = "TZ=GMT0";
|
|
|
8687 char TZ_PST8[] = "TZ=PST8";
|
|
0
|
8688 main()
|
|
|
8689 {
|
|
|
8690 time_t now = time ((time_t *) 0);
|
|
|
8691 int hour_GMT0, hour_unset;
|
|
149
|
8692 if (putenv (TZ_GMT0) != 0)
|
|
0
|
8693 exit (1);
|
|
|
8694 hour_GMT0 = localtime (&now)->tm_hour;
|
|
|
8695 unset_TZ ();
|
|
|
8696 hour_unset = localtime (&now)->tm_hour;
|
|
149
|
8697 if (putenv (TZ_PST8) != 0)
|
|
0
|
8698 exit (1);
|
|
|
8699 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
|
8700 exit (1);
|
|
|
8701 unset_TZ ();
|
|
|
8702 if (localtime (&now)->tm_hour != hour_unset)
|
|
|
8703 exit (1);
|
|
|
8704 exit (0);
|
|
|
8705 }
|
|
|
8706 EOF
|
|
321
|
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
8708 then
|
|
0
|
8709 emacs_cv_localtime_cache=no
|
|
149
|
8710 else
|
|
306
|
8711 conftest_rc="$?"
|
|
149
|
8712 echo "configure: failed program was:" >&5
|
|
|
8713 cat conftest.$ac_ext >&5
|
|
|
8714 rm -fr conftest*
|
|
0
|
8715 emacs_cv_localtime_cache=yes
|
|
|
8716 fi
|
|
|
8717 rm -fr conftest*
|
|
149
|
8718 else
|
|
|
8719 # If we lack tzset, report that localtime does not cache TZ,
|
|
|
8720 # since we can't invalidate the cache if we don't have tzset.
|
|
|
8721 emacs_cv_localtime_cache=no
|
|
|
8722 fi
|
|
|
8723 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
|
8724 if test $emacs_cv_localtime_cache = yes; then
|
|
|
8725 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8726 Defining LOCALTIME_CACHE
|
|
|
8727 EOF
|
|
|
8728 cat >> confdefs.h <<\EOF
|
|
|
8729 #define LOCALTIME_CACHE 1
|
|
|
8730 EOF
|
|
|
8731 }
|
|
|
8732
|
|
|
8733 fi
|
|
|
8734
|
|
|
8735 if test "$HAVE_TIMEVAL" = "yes"; then
|
|
274
|
8736 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
|
321
|
8737 echo "configure:8738: checking whether gettimeofday accepts one or two arguments" >&5
|
|
|
8738 cat > conftest.$ac_ext <<EOF
|
|
|
8739 #line 8740 "configure"
|
|
0
|
8740 #include "confdefs.h"
|
|
|
8741
|
|
|
8742 #ifdef TIME_WITH_SYS_TIME
|
|
|
8743 #include <sys/time.h>
|
|
|
8744 #include <time.h>
|
|
|
8745 #else
|
|
|
8746 #ifdef HAVE_SYS_TIME_H
|
|
|
8747 #include <sys/time.h>
|
|
|
8748 #else
|
|
|
8749 #include <time.h>
|
|
|
8750 #endif
|
|
|
8751 #endif
|
|
|
8752
|
|
149
|
8753 int main() {
|
|
|
8754
|
|
0
|
8755 struct timeval time;
|
|
|
8756 struct timezone dummy;
|
|
|
8757 gettimeofday (&time, &dummy);
|
|
149
|
8758
|
|
0
|
8759 ; return 0; }
|
|
|
8760 EOF
|
|
321
|
8761 if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
274
|
8762 rm -rf conftest*
|
|
|
8763 echo "$ac_t""two" 1>&6
|
|
|
8764 else
|
|
|
8765 echo "configure: failed program was:" >&5
|
|
|
8766 cat conftest.$ac_ext >&5
|
|
|
8767 rm -rf conftest*
|
|
|
8768 echo "$ac_t""one" 1>&6
|
|
149
|
8769 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8770 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
|
8771 EOF
|
|
|
8772 cat >> confdefs.h <<\EOF
|
|
|
8773 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
|
8774 EOF
|
|
|
8775 }
|
|
|
8776
|
|
|
8777 fi
|
|
|
8778 rm -f conftest*
|
|
|
8779 fi
|
|
|
8780
|
|
|
8781
|
|
|
8782 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
321
|
8783 echo "configure:8784: checking for inline" >&5
|
|
149
|
8784
|
|
|
8785 ac_cv_c_inline=no
|
|
|
8786 for ac_kw in inline __inline__ __inline; do
|
|
|
8787 cat > conftest.$ac_ext <<EOF
|
|
321
|
8788 #line 8789 "configure"
|
|
149
|
8789 #include "confdefs.h"
|
|
|
8790
|
|
|
8791 int main() {
|
|
|
8792 } $ac_kw foo() {
|
|
0
|
8793 ; return 0; }
|
|
|
8794 EOF
|
|
321
|
8795 if { (eval echo configure:8796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
149
|
8796 rm -rf conftest*
|
|
|
8797 ac_cv_c_inline=$ac_kw; break
|
|
|
8798 else
|
|
|
8799 echo "configure: failed program was:" >&5
|
|
|
8800 cat conftest.$ac_ext >&5
|
|
|
8801 fi
|
|
|
8802 rm -f conftest*
|
|
|
8803 done
|
|
|
8804
|
|
|
8805
|
|
|
8806 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
8807 case "$ac_cv_c_inline" in
|
|
|
8808 inline | yes) ;;
|
|
|
8809 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8810 Defining inline =
|
|
|
8811 EOF
|
|
|
8812 cat >> confdefs.h <<\EOF
|
|
|
8813 #define inline
|
|
|
8814 EOF
|
|
|
8815 }
|
|
|
8816 ;;
|
|
|
8817 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
8818 Defining inline = $ac_cv_c_inline
|
|
|
8819 EOF
|
|
|
8820 cat >> confdefs.h <<EOF
|
|
|
8821 #define inline $ac_cv_c_inline
|
|
|
8822 EOF
|
|
|
8823 }
|
|
|
8824 ;;
|
|
|
8825 esac
|
|
|
8826
|
|
155
|
8827 if test "$ac_cv_c_inline" != "no"; then
|
|
|
8828 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
8829 Defining HAVE_INLINE
|
|
|
8830 EOF
|
|
|
8831 cat >> confdefs.h <<\EOF
|
|
|
8832 #define HAVE_INLINE 1
|
|
|
8833 EOF
|
|
|
8834 }
|
|
|
8835
|
|
155
|
8836 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
|
|
8837 echo " xemacs will be linked with \"inline.o\""
|
|
|
8838 fi
|
|
|
8839 fi
|
|
149
|
8840
|
|
|
8841
|
|
0
|
8842 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
|
8843 # for constant arguments. Useless!
|
|
149
|
8844 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
321
|
8845 echo "configure:8846: checking for working alloca.h" >&5
|
|
|
8846
|
|
|
8847 cat > conftest.$ac_ext <<EOF
|
|
|
8848 #line 8849 "configure"
|
|
0
|
8849 #include "confdefs.h"
|
|
|
8850 #include <alloca.h>
|
|
149
|
8851 int main() {
|
|
|
8852 char *p = alloca(2 * sizeof(int));
|
|
0
|
8853 ; return 0; }
|
|
|
8854 EOF
|
|
321
|
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8856 rm -rf conftest*
|
|
|
8857 ac_cv_header_alloca_h=yes
|
|
|
8858 else
|
|
|
8859 echo "configure: failed program was:" >&5
|
|
|
8860 cat conftest.$ac_ext >&5
|
|
|
8861 rm -rf conftest*
|
|
|
8862 ac_cv_header_alloca_h=no
|
|
|
8863 fi
|
|
|
8864 rm -f conftest*
|
|
|
8865
|
|
|
8866 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
|
8867 if test $ac_cv_header_alloca_h = yes; then
|
|
|
8868 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8869 Defining HAVE_ALLOCA_H
|
|
|
8870 EOF
|
|
|
8871 cat >> confdefs.h <<\EOF
|
|
|
8872 #define HAVE_ALLOCA_H 1
|
|
|
8873 EOF
|
|
|
8874 }
|
|
|
8875
|
|
|
8876 fi
|
|
|
8877
|
|
|
8878 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
321
|
8879 echo "configure:8880: checking for alloca" >&5
|
|
|
8880
|
|
|
8881 cat > conftest.$ac_ext <<EOF
|
|
|
8882 #line 8883 "configure"
|
|
149
|
8883 #include "confdefs.h"
|
|
|
8884
|
|
|
8885 #ifdef __GNUC__
|
|
|
8886 # define alloca __builtin_alloca
|
|
0
|
8887 #else
|
|
149
|
8888 # if HAVE_ALLOCA_H
|
|
|
8889 # include <alloca.h>
|
|
|
8890 # else
|
|
|
8891 # ifdef _AIX
|
|
|
8892 #pragma alloca
|
|
|
8893 # else
|
|
|
8894 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
|
8895 char *alloca ();
|
|
|
8896 # endif
|
|
|
8897 # endif
|
|
|
8898 # endif
|
|
0
|
8899 #endif
|
|
149
|
8900
|
|
|
8901 int main() {
|
|
|
8902 char *p = (char *) alloca(1);
|
|
0
|
8903 ; return 0; }
|
|
|
8904 EOF
|
|
321
|
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8906 rm -rf conftest*
|
|
|
8907 ac_cv_func_alloca_works=yes
|
|
|
8908 else
|
|
|
8909 echo "configure: failed program was:" >&5
|
|
|
8910 cat conftest.$ac_ext >&5
|
|
|
8911 rm -rf conftest*
|
|
|
8912 ac_cv_func_alloca_works=no
|
|
|
8913 fi
|
|
|
8914 rm -f conftest*
|
|
|
8915
|
|
|
8916 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
|
8917 if test $ac_cv_func_alloca_works = yes; then
|
|
|
8918 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8919 Defining HAVE_ALLOCA
|
|
|
8920 EOF
|
|
|
8921 cat >> confdefs.h <<\EOF
|
|
|
8922 #define HAVE_ALLOCA 1
|
|
|
8923 EOF
|
|
|
8924 }
|
|
|
8925
|
|
|
8926 fi
|
|
|
8927
|
|
|
8928 if test $ac_cv_func_alloca_works = no; then
|
|
0
|
8929 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
|
8930 # that cause trouble. Some versions do not even contain alloca or
|
|
|
8931 # contain a buggy version. If you still want to use their alloca,
|
|
|
8932 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
|
8933 ALLOCA=alloca.o
|
|
149
|
8934 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
8935 Defining C_ALLOCA
|
|
|
8936 EOF
|
|
|
8937 cat >> confdefs.h <<\EOF
|
|
|
8938 #define C_ALLOCA 1
|
|
|
8939 EOF
|
|
|
8940 }
|
|
|
8941
|
|
|
8942
|
|
|
8943 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
321
|
8944 echo "configure:8945: checking whether alloca needs Cray hooks" >&5
|
|
|
8945
|
|
|
8946 cat > conftest.$ac_ext <<EOF
|
|
|
8947 #line 8948 "configure"
|
|
149
|
8948 #include "confdefs.h"
|
|
|
8949 #if defined(CRAY) && ! defined(CRAY2)
|
|
|
8950 webecray
|
|
|
8951 #else
|
|
|
8952 wenotbecray
|
|
|
8953 #endif
|
|
|
8954
|
|
|
8955 EOF
|
|
|
8956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
8957 egrep "webecray" >/dev/null 2>&1; then
|
|
|
8958 rm -rf conftest*
|
|
|
8959 ac_cv_os_cray=yes
|
|
|
8960 else
|
|
|
8961 rm -rf conftest*
|
|
|
8962 ac_cv_os_cray=no
|
|
|
8963 fi
|
|
|
8964 rm -f conftest*
|
|
|
8965
|
|
|
8966
|
|
|
8967 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
|
8968 if test $ac_cv_os_cray = yes; then
|
|
|
8969 for ac_func in _getb67 GETB67 getb67; do
|
|
|
8970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
8971 echo "configure:8972: checking for $ac_func" >&5
|
|
|
8972
|
|
|
8973 cat > conftest.$ac_ext <<EOF
|
|
|
8974 #line 8975 "configure"
|
|
149
|
8975 #include "confdefs.h"
|
|
|
8976 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
8977 which can conflict with char $ac_func(); below. */
|
|
|
8978 #include <assert.h>
|
|
|
8979 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
8980 /* We use char because int might match the return type of a gcc2
|
|
|
8981 builtin and then its argument prototype would still apply. */
|
|
|
8982 char $ac_func();
|
|
|
8983
|
|
|
8984 int main() {
|
|
|
8985
|
|
|
8986 /* The GNU C library defines this for functions which it implements
|
|
|
8987 to always fail with ENOSYS. Some functions are actually named
|
|
|
8988 something starting with __ and the normal name is an alias. */
|
|
|
8989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
8990 choke me
|
|
|
8991 #else
|
|
|
8992 $ac_func();
|
|
|
8993 #endif
|
|
|
8994
|
|
|
8995 ; return 0; }
|
|
|
8996 EOF
|
|
321
|
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
8998 rm -rf conftest*
|
|
|
8999 eval "ac_cv_func_$ac_func=yes"
|
|
|
9000 else
|
|
|
9001 echo "configure: failed program was:" >&5
|
|
|
9002 cat conftest.$ac_ext >&5
|
|
|
9003 rm -rf conftest*
|
|
|
9004 eval "ac_cv_func_$ac_func=no"
|
|
|
9005 fi
|
|
|
9006 rm -f conftest*
|
|
|
9007
|
|
|
9008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
9009 echo "$ac_t""yes" 1>&6
|
|
|
9010 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9011 Defining CRAY_STACKSEG_END = $ac_func
|
|
|
9012 EOF
|
|
|
9013 cat >> confdefs.h <<EOF
|
|
|
9014 #define CRAY_STACKSEG_END $ac_func
|
|
|
9015 EOF
|
|
|
9016 }
|
|
|
9017
|
|
|
9018 break
|
|
|
9019 else
|
|
|
9020 echo "$ac_t""no" 1>&6
|
|
|
9021 fi
|
|
|
9022
|
|
|
9023 done
|
|
|
9024 fi
|
|
|
9025
|
|
|
9026 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
321
|
9027 echo "configure:9028: checking stack direction for C alloca" >&5
|
|
|
9028
|
|
|
9029 cat > conftest.$ac_ext <<EOF
|
|
|
9030 #line 9031 "configure"
|
|
0
|
9031 #include "confdefs.h"
|
|
|
9032 find_stack_direction ()
|
|
|
9033 {
|
|
|
9034 static char *addr = 0;
|
|
|
9035 auto char dummy;
|
|
|
9036 if (addr == 0)
|
|
|
9037 {
|
|
|
9038 addr = &dummy;
|
|
|
9039 return find_stack_direction ();
|
|
|
9040 }
|
|
|
9041 else
|
|
|
9042 return (&dummy > addr) ? 1 : -1;
|
|
|
9043 }
|
|
|
9044 main ()
|
|
|
9045 {
|
|
|
9046 exit (find_stack_direction() < 0);
|
|
|
9047 }
|
|
|
9048 EOF
|
|
321
|
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
9050 then
|
|
|
9051 ac_cv_c_stack_direction=1
|
|
|
9052 else
|
|
306
|
9053 conftest_rc="$?"
|
|
149
|
9054 echo "configure: failed program was:" >&5
|
|
|
9055 cat conftest.$ac_ext >&5
|
|
|
9056 rm -fr conftest*
|
|
|
9057 ac_cv_c_stack_direction=-1
|
|
0
|
9058 fi
|
|
|
9059 rm -fr conftest*
|
|
149
|
9060
|
|
|
9061 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
|
9062 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9063 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
|
9064 EOF
|
|
|
9065 cat >> confdefs.h <<EOF
|
|
|
9066 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
|
9067 EOF
|
|
|
9068 }
|
|
|
9069
|
|
|
9070 fi
|
|
|
9071
|
|
151
|
9072 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
|
|
9073 echo " xemacs will be linked with \"$ALLOCA\""
|
|
|
9074 fi
|
|
149
|
9075
|
|
|
9076 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
|
9077 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
|
321
|
9078 echo "configure:9079: checking for vfork.h" >&5
|
|
|
9079
|
|
|
9080 cat > conftest.$ac_ext <<EOF
|
|
|
9081 #line 9082 "configure"
|
|
0
|
9082 #include "confdefs.h"
|
|
|
9083 #include <vfork.h>
|
|
|
9084 EOF
|
|
149
|
9085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9086 { (eval echo configure:9087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9087 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9088 if test -z "$ac_err"; then
|
|
|
9089 rm -rf conftest*
|
|
149
|
9090 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9091 else
|
|
|
9092 echo "$ac_err" >&5
|
|
|
9093 echo "configure: failed program was:" >&5
|
|
|
9094 cat conftest.$ac_ext >&5
|
|
|
9095 rm -rf conftest*
|
|
|
9096 eval "ac_cv_header_$ac_safe=no"
|
|
|
9097 fi
|
|
|
9098 rm -f conftest*
|
|
|
9099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9100 echo "$ac_t""yes" 1>&6
|
|
|
9101 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9102 Defining HAVE_VFORK_H
|
|
|
9103 EOF
|
|
|
9104 cat >> confdefs.h <<\EOF
|
|
|
9105 #define HAVE_VFORK_H 1
|
|
|
9106 EOF
|
|
|
9107 }
|
|
|
9108
|
|
|
9109 else
|
|
|
9110 echo "$ac_t""no" 1>&6
|
|
|
9111 fi
|
|
|
9112
|
|
|
9113 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
|
321
|
9114 echo "configure:9115: checking for working vfork" >&5
|
|
|
9115
|
|
|
9116 cat > conftest.$ac_ext <<EOF
|
|
|
9117 #line 9118 "configure"
|
|
0
|
9118 #include "confdefs.h"
|
|
|
9119 /* Thanks to Paul Eggert for this test. */
|
|
|
9120 #include <stdio.h>
|
|
|
9121 #include <sys/types.h>
|
|
|
9122 #include <sys/stat.h>
|
|
|
9123 #ifdef HAVE_UNISTD_H
|
|
|
9124 #include <unistd.h>
|
|
|
9125 #endif
|
|
|
9126 #ifdef HAVE_VFORK_H
|
|
|
9127 #include <vfork.h>
|
|
|
9128 #endif
|
|
149
|
9129 /* On some sparc systems, changes by the child to local and incoming
|
|
|
9130 argument registers are propagated back to the parent.
|
|
|
9131 The compiler is told about this with #include <vfork.h>,
|
|
|
9132 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
|
9133 Test for this by using a static variable whose address
|
|
|
9134 is put into a register that is clobbered by the vfork. */
|
|
|
9135 static
|
|
|
9136 #ifdef __cplusplus
|
|
|
9137 sparc_address_test (int arg)
|
|
|
9138 #else
|
|
|
9139 sparc_address_test (arg) int arg;
|
|
|
9140 #endif
|
|
|
9141 {
|
|
|
9142 static pid_t child;
|
|
|
9143 if (!child) {
|
|
|
9144 child = vfork ();
|
|
|
9145 if (child < 0) {
|
|
|
9146 perror ("vfork");
|
|
|
9147 _exit(2);
|
|
|
9148 }
|
|
|
9149 if (!child) {
|
|
|
9150 arg = getpid();
|
|
|
9151 write(-1, "", 0);
|
|
|
9152 _exit (arg);
|
|
|
9153 }
|
|
|
9154 }
|
|
|
9155 }
|
|
0
|
9156 main() {
|
|
|
9157 pid_t parent = getpid ();
|
|
|
9158 pid_t child;
|
|
|
9159
|
|
149
|
9160 sparc_address_test ();
|
|
0
|
9161
|
|
|
9162 child = vfork ();
|
|
|
9163
|
|
|
9164 if (child == 0) {
|
|
149
|
9165 /* Here is another test for sparc vfork register problems.
|
|
|
9166 This test uses lots of local variables, at least
|
|
0
|
9167 as many local variables as main has allocated so far
|
|
|
9168 including compiler temporaries. 4 locals are enough for
|
|
149
|
9169 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
|
0
|
9170 A buggy compiler should reuse the register of parent
|
|
|
9171 for one of the local variables, since it will think that
|
|
|
9172 parent can't possibly be used any more in this routine.
|
|
|
9173 Assigning to the local variable will thus munge parent
|
|
|
9174 in the parent process. */
|
|
|
9175 pid_t
|
|
|
9176 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
|
9177 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
|
9178 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
|
9179 use the same hardware register for all 8 local variables. */
|
|
|
9180 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
|
9181 || p != p5 || p != p6 || p != p7)
|
|
|
9182 _exit(1);
|
|
|
9183
|
|
|
9184 /* On some systems (e.g. IRIX 3.3),
|
|
|
9185 vfork doesn't separate parent from child file descriptors.
|
|
|
9186 If the child closes a descriptor before it execs or exits,
|
|
|
9187 this munges the parent's descriptor as well.
|
|
|
9188 Test for this by closing stdout in the child. */
|
|
|
9189 _exit(close(fileno(stdout)) != 0);
|
|
|
9190 } else {
|
|
|
9191 int status;
|
|
|
9192 struct stat st;
|
|
|
9193
|
|
|
9194 while (wait(&status) != child)
|
|
|
9195 ;
|
|
|
9196 exit(
|
|
|
9197 /* Was there some problem with vforking? */
|
|
|
9198 child < 0
|
|
|
9199
|
|
|
9200 /* Did the child fail? (This shouldn't happen.) */
|
|
|
9201 || status
|
|
|
9202
|
|
|
9203 /* Did the vfork/compiler bug occur? */
|
|
|
9204 || parent != getpid()
|
|
|
9205
|
|
|
9206 /* Did the file descriptor bug occur? */
|
|
|
9207 || fstat(fileno(stdout), &st) != 0
|
|
|
9208 );
|
|
|
9209 }
|
|
|
9210 }
|
|
|
9211 EOF
|
|
321
|
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
9213 then
|
|
|
9214 ac_cv_func_vfork_works=yes
|
|
|
9215 else
|
|
306
|
9216 conftest_rc="$?"
|
|
149
|
9217 echo "configure: failed program was:" >&5
|
|
|
9218 cat conftest.$ac_ext >&5
|
|
|
9219 rm -fr conftest*
|
|
|
9220 ac_cv_func_vfork_works=no
|
|
0
|
9221 fi
|
|
|
9222 rm -fr conftest*
|
|
|
9223
|
|
149
|
9224 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
|
9225 if test $ac_cv_func_vfork_works = no; then
|
|
|
9226 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9227 Defining vfork = fork
|
|
|
9228 EOF
|
|
|
9229 cat >> confdefs.h <<\EOF
|
|
|
9230 #define vfork fork
|
|
|
9231 EOF
|
|
|
9232 }
|
|
|
9233
|
|
|
9234 fi
|
|
|
9235
|
|
|
9236
|
|
|
9237 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
|
321
|
9238 echo "configure:9239: checking for working strcoll" >&5
|
|
|
9239
|
|
|
9240 cat > conftest.$ac_ext <<EOF
|
|
|
9241 #line 9242 "configure"
|
|
0
|
9242 #include "confdefs.h"
|
|
|
9243 #include <string.h>
|
|
|
9244 main ()
|
|
|
9245 {
|
|
|
9246 exit (strcoll ("abc", "def") >= 0 ||
|
|
|
9247 strcoll ("ABC", "DEF") >= 0 ||
|
|
|
9248 strcoll ("123", "456") >= 0);
|
|
|
9249 }
|
|
|
9250 EOF
|
|
321
|
9251 if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
9252 then
|
|
|
9253 ac_cv_func_strcoll_works=yes
|
|
|
9254 else
|
|
306
|
9255 conftest_rc="$?"
|
|
149
|
9256 echo "configure: failed program was:" >&5
|
|
|
9257 cat conftest.$ac_ext >&5
|
|
|
9258 rm -fr conftest*
|
|
|
9259 ac_cv_func_strcoll_works=no
|
|
0
|
9260 fi
|
|
|
9261 rm -fr conftest*
|
|
|
9262
|
|
149
|
9263 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
|
9264 if test $ac_cv_func_strcoll_works = yes; then
|
|
|
9265 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9266 Defining HAVE_STRCOLL
|
|
|
9267 EOF
|
|
|
9268 cat >> confdefs.h <<\EOF
|
|
|
9269 #define HAVE_STRCOLL 1
|
|
|
9270 EOF
|
|
|
9271 }
|
|
|
9272
|
|
|
9273 fi
|
|
|
9274
|
|
|
9275
|
|
163
|
9276 for ac_func in getpgrp
|
|
|
9277 do
|
|
|
9278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
9279 echo "configure:9280: checking for $ac_func" >&5
|
|
|
9280
|
|
|
9281 cat > conftest.$ac_ext <<EOF
|
|
|
9282 #line 9283 "configure"
|
|
163
|
9283 #include "confdefs.h"
|
|
|
9284 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9285 which can conflict with char $ac_func(); below. */
|
|
|
9286 #include <assert.h>
|
|
|
9287 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9288 /* We use char because int might match the return type of a gcc2
|
|
|
9289 builtin and then its argument prototype would still apply. */
|
|
|
9290 char $ac_func();
|
|
|
9291
|
|
|
9292 int main() {
|
|
|
9293
|
|
|
9294 /* The GNU C library defines this for functions which it implements
|
|
|
9295 to always fail with ENOSYS. Some functions are actually named
|
|
|
9296 something starting with __ and the normal name is an alias. */
|
|
|
9297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
9298 choke me
|
|
|
9299 #else
|
|
|
9300 $ac_func();
|
|
|
9301 #endif
|
|
|
9302
|
|
|
9303 ; return 0; }
|
|
|
9304 EOF
|
|
321
|
9305 if { (eval echo configure:9306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
163
|
9306 rm -rf conftest*
|
|
|
9307 eval "ac_cv_func_$ac_func=yes"
|
|
|
9308 else
|
|
|
9309 echo "configure: failed program was:" >&5
|
|
|
9310 cat conftest.$ac_ext >&5
|
|
|
9311 rm -rf conftest*
|
|
|
9312 eval "ac_cv_func_$ac_func=no"
|
|
|
9313 fi
|
|
|
9314 rm -f conftest*
|
|
|
9315
|
|
|
9316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
9317 echo "$ac_t""yes" 1>&6
|
|
|
9318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
9319 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9320 Defining $ac_tr_func
|
|
|
9321 EOF
|
|
|
9322 cat >> confdefs.h <<EOF
|
|
|
9323 #define $ac_tr_func 1
|
|
|
9324 EOF
|
|
|
9325 }
|
|
|
9326
|
|
|
9327 else
|
|
|
9328 echo "$ac_t""no" 1>&6
|
|
|
9329 fi
|
|
|
9330 done
|
|
|
9331
|
|
|
9332 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
|
321
|
9333 echo "configure:9334: checking whether getpgrp takes no argument" >&5
|
|
|
9334
|
|
|
9335 cat > conftest.$ac_ext <<EOF
|
|
|
9336 #line 9337 "configure"
|
|
163
|
9337 #include "confdefs.h"
|
|
|
9338
|
|
|
9339 /*
|
|
|
9340 * If this system has a BSD-style getpgrp(),
|
|
|
9341 * which takes a pid argument, exit unsuccessfully.
|
|
|
9342 *
|
|
|
9343 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
|
9344 */
|
|
|
9345 #include <stdio.h>
|
|
|
9346 #include <sys/types.h>
|
|
|
9347
|
|
|
9348 int pid;
|
|
|
9349 int pg1, pg2, pg3, pg4;
|
|
|
9350 int ng, np, s, child;
|
|
|
9351
|
|
|
9352 main()
|
|
|
9353 {
|
|
|
9354 pid = getpid();
|
|
|
9355 pg1 = getpgrp(0);
|
|
|
9356 pg2 = getpgrp();
|
|
|
9357 pg3 = getpgrp(pid);
|
|
|
9358 pg4 = getpgrp(1);
|
|
|
9359
|
|
|
9360 /*
|
|
|
9361 * If all of these values are the same, it's pretty sure that
|
|
|
9362 * we're on a system that ignores getpgrp's first argument.
|
|
|
9363 */
|
|
|
9364 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
|
9365 exit(0);
|
|
|
9366
|
|
|
9367 child = fork();
|
|
|
9368 if (child < 0)
|
|
|
9369 exit(1);
|
|
|
9370 else if (child == 0) {
|
|
|
9371 np = getpid();
|
|
|
9372 /*
|
|
|
9373 * If this is Sys V, this will not work; pgrp will be
|
|
|
9374 * set to np because setpgrp just changes a pgrp to be
|
|
|
9375 * the same as the pid.
|
|
|
9376 */
|
|
|
9377 setpgrp(np, pg1);
|
|
|
9378 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
|
9379 if (ng == pg1) {
|
|
|
9380 exit(1);
|
|
|
9381 } else {
|
|
|
9382 exit(0);
|
|
|
9383 }
|
|
|
9384 } else {
|
|
|
9385 wait(&s);
|
|
|
9386 exit(s>>8);
|
|
|
9387 }
|
|
|
9388 }
|
|
|
9389
|
|
|
9390 EOF
|
|
321
|
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
163
|
9392 then
|
|
|
9393 ac_cv_func_getpgrp_void=yes
|
|
|
9394 else
|
|
306
|
9395 conftest_rc="$?"
|
|
163
|
9396 echo "configure: failed program was:" >&5
|
|
|
9397 cat conftest.$ac_ext >&5
|
|
|
9398 rm -fr conftest*
|
|
|
9399 ac_cv_func_getpgrp_void=no
|
|
|
9400 fi
|
|
|
9401 rm -fr conftest*
|
|
|
9402
|
|
|
9403
|
|
|
9404 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
|
9405 if test $ac_cv_func_getpgrp_void = yes; then
|
|
|
9406 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9407 Defining GETPGRP_VOID
|
|
|
9408 EOF
|
|
|
9409 cat >> confdefs.h <<\EOF
|
|
|
9410 #define GETPGRP_VOID 1
|
|
|
9411 EOF
|
|
|
9412 }
|
|
|
9413
|
|
|
9414 fi
|
|
|
9415
|
|
|
9416
|
|
149
|
9417 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
321
|
9418 echo "configure:9419: checking for working mmap" >&5
|
|
155
|
9419 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
|
9420 cat > conftest.$ac_ext <<EOF
|
|
321
|
9421 #line 9422 "configure"
|
|
153
|
9422 #include "confdefs.h"
|
|
|
9423 #include <stdio.h>
|
|
|
9424 #include <unistd.h>
|
|
149
|
9425 #include <fcntl.h>
|
|
|
9426 #include <sys/mman.h>
|
|
|
9427
|
|
153
|
9428 #ifndef MAP_VARIABLE
|
|
|
9429 #define MAP_VARIABLE 0
|
|
0
|
9430 #endif
|
|
149
|
9431
|
|
153
|
9432 #ifndef MAP_FAILED
|
|
|
9433 #define MAP_FAILED -1
|
|
|
9434 #endif
|
|
|
9435
|
|
|
9436 int main (int argc, char *argv[])
|
|
0
|
9437 {
|
|
153
|
9438 int fd = -1;
|
|
|
9439 caddr_t p;
|
|
|
9440 #ifndef MAP_ANONYMOUS
|
|
|
9441 fd = open ("/dev/zero", O_RDWR);
|
|
|
9442 if (fd < 0)
|
|
|
9443 return 1;
|
|
|
9444 #define MAP_ANONYMOUS 0
|
|
|
9445 #endif
|
|
|
9446 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
|
9447 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
|
9448 fd, 0) != (void *) MAP_FAILED)
|
|
|
9449 return 0;
|
|
|
9450 perror ("conftest: mmap failed");
|
|
|
9451 return 1;
|
|
|
9452 }
|
|
|
9453 EOF
|
|
321
|
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
149
|
9455 then
|
|
153
|
9456 have_mmap=yes
|
|
149
|
9457 else
|
|
306
|
9458 conftest_rc="$?"
|
|
149
|
9459 echo "configure: failed program was:" >&5
|
|
|
9460 cat conftest.$ac_ext >&5
|
|
|
9461 rm -fr conftest*
|
|
153
|
9462 have_mmap=no
|
|
149
|
9463 fi
|
|
155
|
9464 rm -fr conftest* ;;
|
|
|
9465 esac
|
|
153
|
9466 echo "$ac_t""$have_mmap" 1>&6
|
|
|
9467 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
9468 Defining HAVE_MMAP
|
|
|
9469 EOF
|
|
|
9470 cat >> confdefs.h <<\EOF
|
|
|
9471 #define HAVE_MMAP 1
|
|
|
9472 EOF
|
|
|
9473 }
|
|
|
9474
|
|
318
|
9475 for ac_hdr in unistd.h
|
|
|
9476 do
|
|
|
9477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
9478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
9479 echo "configure:9480: checking for $ac_hdr" >&5
|
|
|
9480
|
|
|
9481 cat > conftest.$ac_ext <<EOF
|
|
|
9482 #line 9483 "configure"
|
|
318
|
9483 #include "confdefs.h"
|
|
|
9484 #include <$ac_hdr>
|
|
|
9485 EOF
|
|
|
9486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9487 { (eval echo configure:9488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
318
|
9488 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9489 if test -z "$ac_err"; then
|
|
|
9490 rm -rf conftest*
|
|
|
9491 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9492 else
|
|
|
9493 echo "$ac_err" >&5
|
|
|
9494 echo "configure: failed program was:" >&5
|
|
|
9495 cat conftest.$ac_ext >&5
|
|
|
9496 rm -rf conftest*
|
|
|
9497 eval "ac_cv_header_$ac_safe=no"
|
|
|
9498 fi
|
|
|
9499 rm -f conftest*
|
|
|
9500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9501 echo "$ac_t""yes" 1>&6
|
|
|
9502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
9503 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9504 Defining $ac_tr_hdr
|
|
|
9505 EOF
|
|
|
9506 cat >> confdefs.h <<EOF
|
|
|
9507 #define $ac_tr_hdr 1
|
|
|
9508 EOF
|
|
|
9509 }
|
|
|
9510
|
|
|
9511 else
|
|
|
9512 echo "$ac_t""no" 1>&6
|
|
|
9513 fi
|
|
|
9514 done
|
|
|
9515
|
|
|
9516 for ac_func in getpagesize
|
|
|
9517 do
|
|
|
9518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
9519 echo "configure:9520: checking for $ac_func" >&5
|
|
|
9520
|
|
|
9521 cat > conftest.$ac_ext <<EOF
|
|
|
9522 #line 9523 "configure"
|
|
318
|
9523 #include "confdefs.h"
|
|
|
9524 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9525 which can conflict with char $ac_func(); below. */
|
|
|
9526 #include <assert.h>
|
|
|
9527 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9528 /* We use char because int might match the return type of a gcc2
|
|
|
9529 builtin and then its argument prototype would still apply. */
|
|
|
9530 char $ac_func();
|
|
|
9531
|
|
|
9532 int main() {
|
|
|
9533
|
|
|
9534 /* The GNU C library defines this for functions which it implements
|
|
|
9535 to always fail with ENOSYS. Some functions are actually named
|
|
|
9536 something starting with __ and the normal name is an alias. */
|
|
|
9537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
9538 choke me
|
|
|
9539 #else
|
|
|
9540 $ac_func();
|
|
|
9541 #endif
|
|
|
9542
|
|
|
9543 ; return 0; }
|
|
|
9544 EOF
|
|
321
|
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
318
|
9546 rm -rf conftest*
|
|
|
9547 eval "ac_cv_func_$ac_func=yes"
|
|
|
9548 else
|
|
|
9549 echo "configure: failed program was:" >&5
|
|
|
9550 cat conftest.$ac_ext >&5
|
|
|
9551 rm -rf conftest*
|
|
|
9552 eval "ac_cv_func_$ac_func=no"
|
|
|
9553 fi
|
|
|
9554 rm -f conftest*
|
|
|
9555
|
|
|
9556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
9557 echo "$ac_t""yes" 1>&6
|
|
|
9558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
9559 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
9560 Defining $ac_tr_func
|
|
|
9561 EOF
|
|
|
9562 cat >> confdefs.h <<EOF
|
|
|
9563 #define $ac_tr_func 1
|
|
|
9564 EOF
|
|
|
9565 }
|
|
|
9566
|
|
|
9567 else
|
|
|
9568 echo "$ac_t""no" 1>&6
|
|
|
9569 fi
|
|
|
9570 done
|
|
|
9571
|
|
|
9572 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
321
|
9573 echo "configure:9574: checking for working mmap" >&5
|
|
|
9574
|
|
|
9575 cat > conftest.$ac_ext <<EOF
|
|
|
9576 #line 9577 "configure"
|
|
318
|
9577 #include "confdefs.h"
|
|
|
9578
|
|
|
9579 /* Thanks to Mike Haertel and Jim Avera for this test.
|
|
|
9580 Here is a matrix of mmap possibilities:
|
|
|
9581 mmap private not fixed
|
|
|
9582 mmap private fixed at somewhere currently unmapped
|
|
|
9583 mmap private fixed at somewhere already mapped
|
|
|
9584 mmap shared not fixed
|
|
|
9585 mmap shared fixed at somewhere currently unmapped
|
|
|
9586 mmap shared fixed at somewhere already mapped
|
|
|
9587 For private mappings, we should verify that changes cannot be read()
|
|
|
9588 back from the file, nor mmap's back from the file at a different
|
|
|
9589 address. (There have been systems where private was not correctly
|
|
|
9590 implemented like the infamous i386 svr4.0, and systems where the
|
|
|
9591 VM page cache was not coherent with the filesystem buffer cache
|
|
|
9592 like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|
|
9593 For shared mappings, we should conversely verify that changes get
|
|
|
9594 propogated back to all the places they're supposed to be.
|
|
|
9595
|
|
|
9596 Grep wants private fixed already mapped.
|
|
|
9597 The main things grep needs to know about mmap are:
|
|
|
9598 * does it exist and is it safe to write into the mmap'd area
|
|
|
9599 * how to use it (BSD variants) */
|
|
|
9600 #include <sys/types.h>
|
|
|
9601 #include <fcntl.h>
|
|
|
9602 #include <sys/mman.h>
|
|
|
9603
|
|
|
9604 /* This mess was copied from the GNU getpagesize.h. */
|
|
|
9605 #ifndef HAVE_GETPAGESIZE
|
|
|
9606 # ifdef HAVE_UNISTD_H
|
|
|
9607 # include <unistd.h>
|
|
|
9608 # endif
|
|
|
9609
|
|
|
9610 /* Assume that all systems that can run configure have sys/param.h. */
|
|
|
9611 # ifndef HAVE_SYS_PARAM_H
|
|
|
9612 # define HAVE_SYS_PARAM_H 1
|
|
|
9613 # endif
|
|
|
9614
|
|
|
9615 # ifdef _SC_PAGESIZE
|
|
|
9616 # define getpagesize() sysconf(_SC_PAGESIZE)
|
|
|
9617 # else /* no _SC_PAGESIZE */
|
|
|
9618 # ifdef HAVE_SYS_PARAM_H
|
|
|
9619 # include <sys/param.h>
|
|
|
9620 # ifdef EXEC_PAGESIZE
|
|
|
9621 # define getpagesize() EXEC_PAGESIZE
|
|
|
9622 # else /* no EXEC_PAGESIZE */
|
|
|
9623 # ifdef NBPG
|
|
|
9624 # define getpagesize() NBPG * CLSIZE
|
|
|
9625 # ifndef CLSIZE
|
|
|
9626 # define CLSIZE 1
|
|
|
9627 # endif /* no CLSIZE */
|
|
|
9628 # else /* no NBPG */
|
|
|
9629 # ifdef NBPC
|
|
|
9630 # define getpagesize() NBPC
|
|
|
9631 # else /* no NBPC */
|
|
|
9632 # ifdef PAGESIZE
|
|
|
9633 # define getpagesize() PAGESIZE
|
|
|
9634 # endif /* PAGESIZE */
|
|
|
9635 # endif /* no NBPC */
|
|
|
9636 # endif /* no NBPG */
|
|
|
9637 # endif /* no EXEC_PAGESIZE */
|
|
|
9638 # else /* no HAVE_SYS_PARAM_H */
|
|
|
9639 # define getpagesize() 8192 /* punt totally */
|
|
|
9640 # endif /* no HAVE_SYS_PARAM_H */
|
|
|
9641 # endif /* no _SC_PAGESIZE */
|
|
|
9642
|
|
|
9643 #endif /* no HAVE_GETPAGESIZE */
|
|
|
9644
|
|
|
9645 #ifdef __cplusplus
|
|
|
9646 extern "C" { void *malloc(unsigned); }
|
|
|
9647 #else
|
|
|
9648 char *malloc();
|
|
|
9649 #endif
|
|
|
9650
|
|
|
9651 int
|
|
|
9652 main()
|
|
|
9653 {
|
|
|
9654 char *data, *data2, *data3;
|
|
|
9655 int i, pagesize;
|
|
|
9656 int fd;
|
|
|
9657
|
|
|
9658 pagesize = getpagesize();
|
|
|
9659
|
|
|
9660 /*
|
|
|
9661 * First, make a file with some known garbage in it.
|
|
|
9662 */
|
|
|
9663 data = malloc(pagesize);
|
|
|
9664 if (!data)
|
|
|
9665 exit(1);
|
|
|
9666 for (i = 0; i < pagesize; ++i)
|
|
|
9667 *(data + i) = rand();
|
|
|
9668 umask(0);
|
|
|
9669 fd = creat("conftestmmap", 0600);
|
|
|
9670 if (fd < 0)
|
|
|
9671 exit(1);
|
|
|
9672 if (write(fd, data, pagesize) != pagesize)
|
|
|
9673 exit(1);
|
|
|
9674 close(fd);
|
|
|
9675
|
|
|
9676 /*
|
|
|
9677 * Next, try to mmap the file at a fixed address which
|
|
|
9678 * already has something else allocated at it. If we can,
|
|
|
9679 * also make sure that we see the same garbage.
|
|
|
9680 */
|
|
|
9681 fd = open("conftestmmap", O_RDWR);
|
|
|
9682 if (fd < 0)
|
|
|
9683 exit(1);
|
|
|
9684 data2 = malloc(2 * pagesize);
|
|
|
9685 if (!data2)
|
|
|
9686 exit(1);
|
|
|
9687 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|
|
9688 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|
|
9689 MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|
|
9690 exit(1);
|
|
|
9691 for (i = 0; i < pagesize; ++i)
|
|
|
9692 if (*(data + i) != *(data2 + i))
|
|
|
9693 exit(1);
|
|
|
9694
|
|
|
9695 /*
|
|
|
9696 * Finally, make sure that changes to the mapped area
|
|
|
9697 * do not percolate back to the file as seen by read().
|
|
|
9698 * (This is a bug on some variants of i386 svr4.0.)
|
|
|
9699 */
|
|
|
9700 for (i = 0; i < pagesize; ++i)
|
|
|
9701 *(data2 + i) = *(data2 + i) + 1;
|
|
|
9702 data3 = malloc(pagesize);
|
|
|
9703 if (!data3)
|
|
|
9704 exit(1);
|
|
|
9705 if (read(fd, data3, pagesize) != pagesize)
|
|
|
9706 exit(1);
|
|
|
9707 for (i = 0; i < pagesize; ++i)
|
|
|
9708 if (*(data + i) != *(data3 + i))
|
|
|
9709 exit(1);
|
|
|
9710 close(fd);
|
|
|
9711 unlink("conftestmmap");
|
|
|
9712 exit(0);
|
|
|
9713 }
|
|
|
9714
|
|
|
9715 EOF
|
|
321
|
9716 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
318
|
9717 then
|
|
|
9718 ac_cv_func_mmap_fixed_mapped=yes
|
|
|
9719 else
|
|
|
9720 conftest_rc="$?"
|
|
|
9721 echo "configure: failed program was:" >&5
|
|
|
9722 cat conftest.$ac_ext >&5
|
|
|
9723 rm -fr conftest*
|
|
|
9724 ac_cv_func_mmap_fixed_mapped=no
|
|
|
9725 fi
|
|
|
9726 rm -fr conftest*
|
|
|
9727
|
|
|
9728 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|
|
9729 if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|
|
9730 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9731 Defining HAVE_MMAP
|
|
|
9732 EOF
|
|
|
9733 cat >> confdefs.h <<\EOF
|
|
|
9734 #define HAVE_MMAP 1
|
|
|
9735 EOF
|
|
|
9736 }
|
|
|
9737
|
|
|
9738 fi
|
|
|
9739
|
|
153
|
9740
|
|
|
9741 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
|
9742 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
|
|
149
|
9743 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9744 Defining REL_ALLOC
|
|
|
9745 EOF
|
|
|
9746 cat >> confdefs.h <<\EOF
|
|
|
9747 #define REL_ALLOC 1
|
|
|
9748 EOF
|
|
|
9749 }
|
|
|
9750
|
|
|
9751
|
|
175
|
9752 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
|
9753 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
|
321
|
9754 echo "configure:9755: checking for termios.h" >&5
|
|
|
9755
|
|
|
9756 cat > conftest.$ac_ext <<EOF
|
|
|
9757 #line 9758 "configure"
|
|
175
|
9758 #include "confdefs.h"
|
|
|
9759 #include <termios.h>
|
|
|
9760 EOF
|
|
|
9761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9762 { (eval echo configure:9763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
9763 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9764 if test -z "$ac_err"; then
|
|
|
9765 rm -rf conftest*
|
|
|
9766 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9767 else
|
|
|
9768 echo "$ac_err" >&5
|
|
|
9769 echo "configure: failed program was:" >&5
|
|
|
9770 cat conftest.$ac_ext >&5
|
|
|
9771 rm -rf conftest*
|
|
|
9772 eval "ac_cv_header_$ac_safe=no"
|
|
|
9773 fi
|
|
|
9774 rm -f conftest*
|
|
|
9775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9776 echo "$ac_t""yes" 1>&6
|
|
|
9777 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9778 Defining HAVE_TERMIOS
|
|
|
9779 EOF
|
|
|
9780 cat >> confdefs.h <<\EOF
|
|
|
9781 #define HAVE_TERMIOS 1
|
|
|
9782 EOF
|
|
|
9783 }
|
|
|
9784
|
|
|
9785 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9786 Defining SIGNALS_VIA_CHARACTERS
|
|
|
9787 EOF
|
|
|
9788 cat >> confdefs.h <<\EOF
|
|
|
9789 #define SIGNALS_VIA_CHARACTERS 1
|
|
|
9790 EOF
|
|
|
9791 }
|
|
|
9792
|
|
|
9793 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9794 Defining NO_TERMIO
|
|
|
9795 EOF
|
|
|
9796 cat >> confdefs.h <<\EOF
|
|
|
9797 #define NO_TERMIO 1
|
|
|
9798 EOF
|
|
|
9799 }
|
|
|
9800
|
|
|
9801 else
|
|
|
9802 echo "$ac_t""no" 1>&6
|
|
|
9803 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
|
9804 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
|
321
|
9805 echo "configure:9806: checking for termio.h" >&5
|
|
|
9806
|
|
|
9807 cat > conftest.$ac_ext <<EOF
|
|
|
9808 #line 9809 "configure"
|
|
175
|
9809 #include "confdefs.h"
|
|
|
9810 #include <termio.h>
|
|
|
9811 EOF
|
|
|
9812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9813 { (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
175
|
9814 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
9815 if test -z "$ac_err"; then
|
|
|
9816 rm -rf conftest*
|
|
|
9817 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9818 else
|
|
|
9819 echo "$ac_err" >&5
|
|
|
9820 echo "configure: failed program was:" >&5
|
|
|
9821 cat conftest.$ac_ext >&5
|
|
|
9822 rm -rf conftest*
|
|
|
9823 eval "ac_cv_header_$ac_safe=no"
|
|
|
9824 fi
|
|
|
9825 rm -f conftest*
|
|
|
9826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9827 echo "$ac_t""yes" 1>&6
|
|
|
9828 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9829 Defining HAVE_TERMIO
|
|
|
9830 EOF
|
|
|
9831 cat >> confdefs.h <<\EOF
|
|
|
9832 #define HAVE_TERMIO 1
|
|
|
9833 EOF
|
|
|
9834 }
|
|
|
9835
|
|
|
9836 else
|
|
|
9837 echo "$ac_t""no" 1>&6
|
|
|
9838 fi
|
|
|
9839
|
|
|
9840 fi
|
|
|
9841
|
|
|
9842
|
|
|
9843
|
|
149
|
9844 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
|
321
|
9845 echo "configure:9846: checking for socket" >&5
|
|
|
9846
|
|
|
9847 cat > conftest.$ac_ext <<EOF
|
|
|
9848 #line 9849 "configure"
|
|
149
|
9849 #include "confdefs.h"
|
|
|
9850 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
9851 which can conflict with char socket(); below. */
|
|
|
9852 #include <assert.h>
|
|
|
9853 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
9854 /* We use char because int might match the return type of a gcc2
|
|
|
9855 builtin and then its argument prototype would still apply. */
|
|
|
9856 char socket();
|
|
|
9857
|
|
|
9858 int main() {
|
|
|
9859
|
|
0
|
9860 /* The GNU C library defines this for functions which it implements
|
|
|
9861 to always fail with ENOSYS. Some functions are actually named
|
|
|
9862 something starting with __ and the normal name is an alias. */
|
|
|
9863 #if defined (__stub_socket) || defined (__stub___socket)
|
|
|
9864 choke me
|
|
|
9865 #else
|
|
149
|
9866 socket();
|
|
0
|
9867 #endif
|
|
149
|
9868
|
|
0
|
9869 ; return 0; }
|
|
|
9870 EOF
|
|
321
|
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9872 rm -rf conftest*
|
|
|
9873 eval "ac_cv_func_socket=yes"
|
|
|
9874 else
|
|
|
9875 echo "configure: failed program was:" >&5
|
|
|
9876 cat conftest.$ac_ext >&5
|
|
|
9877 rm -rf conftest*
|
|
|
9878 eval "ac_cv_func_socket=no"
|
|
|
9879 fi
|
|
|
9880 rm -f conftest*
|
|
|
9881
|
|
|
9882 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
|
9883 echo "$ac_t""yes" 1>&6
|
|
|
9884 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
|
9885 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
|
321
|
9886 echo "configure:9887: checking for netinet/in.h" >&5
|
|
|
9887
|
|
|
9888 cat > conftest.$ac_ext <<EOF
|
|
|
9889 #line 9890 "configure"
|
|
0
|
9890 #include "confdefs.h"
|
|
|
9891 #include <netinet/in.h>
|
|
|
9892 EOF
|
|
149
|
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9895 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9896 if test -z "$ac_err"; then
|
|
149
|
9897 rm -rf conftest*
|
|
|
9898 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9899 else
|
|
|
9900 echo "$ac_err" >&5
|
|
|
9901 echo "configure: failed program was:" >&5
|
|
|
9902 cat conftest.$ac_ext >&5
|
|
|
9903 rm -rf conftest*
|
|
|
9904 eval "ac_cv_header_$ac_safe=no"
|
|
|
9905 fi
|
|
|
9906 rm -f conftest*
|
|
|
9907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9908 echo "$ac_t""yes" 1>&6
|
|
|
9909 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
|
9910 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
|
321
|
9911 echo "configure:9912: checking for arpa/inet.h" >&5
|
|
|
9912
|
|
|
9913 cat > conftest.$ac_ext <<EOF
|
|
|
9914 #line 9915 "configure"
|
|
0
|
9915 #include "confdefs.h"
|
|
|
9916 #include <arpa/inet.h>
|
|
|
9917 EOF
|
|
149
|
9918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
9919 { (eval echo configure:9920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
9920 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
9921 if test -z "$ac_err"; then
|
|
149
|
9922 rm -rf conftest*
|
|
|
9923 eval "ac_cv_header_$ac_safe=yes"
|
|
|
9924 else
|
|
|
9925 echo "$ac_err" >&5
|
|
|
9926 echo "configure: failed program was:" >&5
|
|
|
9927 cat conftest.$ac_ext >&5
|
|
|
9928 rm -rf conftest*
|
|
|
9929 eval "ac_cv_header_$ac_safe=no"
|
|
|
9930 fi
|
|
|
9931 rm -f conftest*
|
|
|
9932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
9933 echo "$ac_t""yes" 1>&6
|
|
0
|
9934
|
|
149
|
9935 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9936 Defining HAVE_SOCKETS
|
|
|
9937 EOF
|
|
|
9938 cat >> confdefs.h <<\EOF
|
|
|
9939 #define HAVE_SOCKETS 1
|
|
|
9940 EOF
|
|
|
9941 }
|
|
|
9942
|
|
|
9943 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
|
321
|
9944 echo "configure:9945: checking "for sun_len member in struct sockaddr_un"" >&5
|
|
149
|
9945 cat > conftest.$ac_ext <<EOF
|
|
321
|
9946 #line 9947 "configure"
|
|
149
|
9947 #include "confdefs.h"
|
|
|
9948
|
|
0
|
9949 #include <sys/types.h>
|
|
149
|
9950 #include <sys/socket.h>
|
|
|
9951 #include <sys/un.h>
|
|
|
9952
|
|
|
9953 int main() {
|
|
|
9954 static struct sockaddr_un x; x.sun_len = 1;
|
|
|
9955 ; return 0; }
|
|
|
9956 EOF
|
|
321
|
9957 if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
9958 rm -rf conftest*
|
|
|
9959 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9960 Defining HAVE_SOCKADDR_SUN_LEN
|
|
|
9961 EOF
|
|
|
9962 cat >> confdefs.h <<\EOF
|
|
|
9963 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
|
9964 EOF
|
|
|
9965 }
|
|
|
9966
|
|
|
9967 else
|
|
|
9968 echo "configure: failed program was:" >&5
|
|
|
9969 cat conftest.$ac_ext >&5
|
|
|
9970 rm -rf conftest*
|
|
|
9971 echo "$ac_t""no" 1>&6
|
|
|
9972 fi
|
|
|
9973 rm -f conftest*
|
|
259
|
9974 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
|
321
|
9975 echo "configure:9976: checking "for ip_mreq struct in netinet/in.h"" >&5
|
|
259
|
9976 cat > conftest.$ac_ext <<EOF
|
|
321
|
9977 #line 9978 "configure"
|
|
284
|
9978 #include "confdefs.h"
|
|
|
9979
|
|
|
9980 #include <sys/types.h>
|
|
259
|
9981 #include <netinet/in.h>
|
|
|
9982
|
|
|
9983 int main() {
|
|
|
9984 static struct ip_mreq x;
|
|
|
9985 ; return 0; }
|
|
|
9986 EOF
|
|
321
|
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
259
|
9988 rm -rf conftest*
|
|
|
9989 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
9990 Defining HAVE_MULTICAST
|
|
|
9991 EOF
|
|
|
9992 cat >> confdefs.h <<\EOF
|
|
|
9993 #define HAVE_MULTICAST 1
|
|
|
9994 EOF
|
|
|
9995 }
|
|
|
9996
|
|
|
9997 else
|
|
|
9998 echo "configure: failed program was:" >&5
|
|
|
9999 cat conftest.$ac_ext >&5
|
|
|
10000 rm -rf conftest*
|
|
|
10001 echo "$ac_t""no" 1>&6
|
|
|
10002 fi
|
|
|
10003 rm -f conftest*
|
|
149
|
10004 else
|
|
|
10005 echo "$ac_t""no" 1>&6
|
|
|
10006 fi
|
|
|
10007
|
|
|
10008 else
|
|
|
10009 echo "$ac_t""no" 1>&6
|
|
|
10010 fi
|
|
|
10011
|
|
|
10012 else
|
|
|
10013 echo "$ac_t""no" 1>&6
|
|
|
10014 fi
|
|
|
10015
|
|
|
10016
|
|
|
10017 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
|
321
|
10018 echo "configure:10019: checking for msgget" >&5
|
|
|
10019
|
|
|
10020 cat > conftest.$ac_ext <<EOF
|
|
|
10021 #line 10022 "configure"
|
|
149
|
10022 #include "confdefs.h"
|
|
|
10023 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
10024 which can conflict with char msgget(); below. */
|
|
|
10025 #include <assert.h>
|
|
|
10026 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10027 /* We use char because int might match the return type of a gcc2
|
|
|
10028 builtin and then its argument prototype would still apply. */
|
|
|
10029 char msgget();
|
|
|
10030
|
|
|
10031 int main() {
|
|
|
10032
|
|
0
|
10033 /* The GNU C library defines this for functions which it implements
|
|
|
10034 to always fail with ENOSYS. Some functions are actually named
|
|
|
10035 something starting with __ and the normal name is an alias. */
|
|
|
10036 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
|
10037 choke me
|
|
|
10038 #else
|
|
149
|
10039 msgget();
|
|
0
|
10040 #endif
|
|
149
|
10041
|
|
0
|
10042 ; return 0; }
|
|
|
10043 EOF
|
|
321
|
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10045 rm -rf conftest*
|
|
|
10046 eval "ac_cv_func_msgget=yes"
|
|
|
10047 else
|
|
|
10048 echo "configure: failed program was:" >&5
|
|
|
10049 cat conftest.$ac_ext >&5
|
|
|
10050 rm -rf conftest*
|
|
|
10051 eval "ac_cv_func_msgget=no"
|
|
|
10052 fi
|
|
|
10053 rm -f conftest*
|
|
|
10054
|
|
|
10055 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
|
10056 echo "$ac_t""yes" 1>&6
|
|
|
10057 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
|
10058 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
|
321
|
10059 echo "configure:10060: checking for sys/ipc.h" >&5
|
|
|
10060
|
|
|
10061 cat > conftest.$ac_ext <<EOF
|
|
|
10062 #line 10063 "configure"
|
|
0
|
10063 #include "confdefs.h"
|
|
|
10064 #include <sys/ipc.h>
|
|
|
10065 EOF
|
|
149
|
10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10068 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10069 if test -z "$ac_err"; then
|
|
149
|
10070 rm -rf conftest*
|
|
|
10071 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10072 else
|
|
|
10073 echo "$ac_err" >&5
|
|
|
10074 echo "configure: failed program was:" >&5
|
|
|
10075 cat conftest.$ac_ext >&5
|
|
|
10076 rm -rf conftest*
|
|
|
10077 eval "ac_cv_header_$ac_safe=no"
|
|
|
10078 fi
|
|
|
10079 rm -f conftest*
|
|
|
10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10081 echo "$ac_t""yes" 1>&6
|
|
|
10082 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
|
10083 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
|
321
|
10084 echo "configure:10085: checking for sys/msg.h" >&5
|
|
|
10085
|
|
|
10086 cat > conftest.$ac_ext <<EOF
|
|
|
10087 #line 10088 "configure"
|
|
0
|
10088 #include "confdefs.h"
|
|
|
10089 #include <sys/msg.h>
|
|
|
10090 EOF
|
|
149
|
10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10093 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10094 if test -z "$ac_err"; then
|
|
149
|
10095 rm -rf conftest*
|
|
|
10096 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10097 else
|
|
|
10098 echo "$ac_err" >&5
|
|
|
10099 echo "configure: failed program was:" >&5
|
|
|
10100 cat conftest.$ac_ext >&5
|
|
|
10101 rm -rf conftest*
|
|
|
10102 eval "ac_cv_header_$ac_safe=no"
|
|
|
10103 fi
|
|
|
10104 rm -f conftest*
|
|
|
10105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10106 echo "$ac_t""yes" 1>&6
|
|
|
10107 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10108 Defining HAVE_SYSVIPC
|
|
|
10109 EOF
|
|
|
10110 cat >> confdefs.h <<\EOF
|
|
|
10111 #define HAVE_SYSVIPC 1
|
|
|
10112 EOF
|
|
|
10113 }
|
|
|
10114
|
|
|
10115 else
|
|
|
10116 echo "$ac_t""no" 1>&6
|
|
|
10117 fi
|
|
|
10118
|
|
|
10119 else
|
|
|
10120 echo "$ac_t""no" 1>&6
|
|
|
10121 fi
|
|
|
10122
|
|
|
10123 else
|
|
|
10124 echo "$ac_t""no" 1>&6
|
|
|
10125 fi
|
|
|
10126
|
|
|
10127
|
|
|
10128 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
|
10129 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
|
321
|
10130 echo "configure:10131: checking for dirent.h" >&5
|
|
|
10131
|
|
|
10132 cat > conftest.$ac_ext <<EOF
|
|
|
10133 #line 10134 "configure"
|
|
0
|
10134 #include "confdefs.h"
|
|
|
10135 #include <dirent.h>
|
|
|
10136 EOF
|
|
149
|
10137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10138 { (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10139 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10140 if test -z "$ac_err"; then
|
|
|
10141 rm -rf conftest*
|
|
149
|
10142 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10143 else
|
|
|
10144 echo "$ac_err" >&5
|
|
|
10145 echo "configure: failed program was:" >&5
|
|
|
10146 cat conftest.$ac_ext >&5
|
|
|
10147 rm -rf conftest*
|
|
|
10148 eval "ac_cv_header_$ac_safe=no"
|
|
|
10149 fi
|
|
|
10150 rm -f conftest*
|
|
|
10151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10152 echo "$ac_t""yes" 1>&6
|
|
|
10153 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10154 Defining SYSV_SYSTEM_DIR
|
|
|
10155 EOF
|
|
|
10156 cat >> confdefs.h <<\EOF
|
|
|
10157 #define SYSV_SYSTEM_DIR 1
|
|
|
10158 EOF
|
|
|
10159 }
|
|
|
10160
|
|
|
10161 else
|
|
|
10162 echo "$ac_t""no" 1>&6
|
|
|
10163 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
|
10164 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
|
321
|
10165 echo "configure:10166: checking for sys/dir.h" >&5
|
|
|
10166
|
|
|
10167 cat > conftest.$ac_ext <<EOF
|
|
|
10168 #line 10169 "configure"
|
|
0
|
10169 #include "confdefs.h"
|
|
|
10170 #include <sys/dir.h>
|
|
|
10171 EOF
|
|
149
|
10172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10173 { (eval echo configure:10174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10174 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10175 if test -z "$ac_err"; then
|
|
149
|
10176 rm -rf conftest*
|
|
|
10177 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10178 else
|
|
|
10179 echo "$ac_err" >&5
|
|
|
10180 echo "configure: failed program was:" >&5
|
|
|
10181 cat conftest.$ac_ext >&5
|
|
|
10182 rm -rf conftest*
|
|
|
10183 eval "ac_cv_header_$ac_safe=no"
|
|
|
10184 fi
|
|
|
10185 rm -f conftest*
|
|
|
10186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10187 echo "$ac_t""yes" 1>&6
|
|
0
|
10188 :
|
|
|
10189 else
|
|
149
|
10190 echo "$ac_t""no" 1>&6
|
|
|
10191 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10192 Defining NONSYSTEM_DIR_LIBRARY
|
|
|
10193 EOF
|
|
|
10194 cat >> confdefs.h <<\EOF
|
|
|
10195 #define NONSYSTEM_DIR_LIBRARY 1
|
|
|
10196 EOF
|
|
|
10197 }
|
|
|
10198
|
|
|
10199 fi
|
|
|
10200
|
|
|
10201 fi
|
|
|
10202
|
|
|
10203
|
|
|
10204 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
|
10205 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
|
321
|
10206 echo "configure:10207: checking for nlist.h" >&5
|
|
|
10207
|
|
|
10208 cat > conftest.$ac_ext <<EOF
|
|
|
10209 #line 10210 "configure"
|
|
0
|
10210 #include "confdefs.h"
|
|
|
10211 #include <nlist.h>
|
|
|
10212 EOF
|
|
149
|
10213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10214 { (eval echo configure:10215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10215 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10216 if test -z "$ac_err"; then
|
|
|
10217 rm -rf conftest*
|
|
149
|
10218 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10219 else
|
|
|
10220 echo "$ac_err" >&5
|
|
|
10221 echo "configure: failed program was:" >&5
|
|
|
10222 cat conftest.$ac_ext >&5
|
|
|
10223 rm -rf conftest*
|
|
|
10224 eval "ac_cv_header_$ac_safe=no"
|
|
|
10225 fi
|
|
|
10226 rm -f conftest*
|
|
|
10227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10228 echo "$ac_t""yes" 1>&6
|
|
|
10229 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10230 Defining NLIST_STRUCT
|
|
|
10231 EOF
|
|
|
10232 cat >> confdefs.h <<\EOF
|
|
|
10233 #define NLIST_STRUCT 1
|
|
|
10234 EOF
|
|
|
10235 }
|
|
|
10236
|
|
|
10237 else
|
|
|
10238 echo "$ac_t""no" 1>&6
|
|
|
10239 fi
|
|
|
10240
|
|
|
10241
|
|
0
|
10242
|
|
149
|
10243 echo "checking "for sound support"" 1>&6
|
|
321
|
10244 echo "configure:10245: checking "for sound support"" >&5
|
|
149
|
10245 case "$with_sound" in
|
|
|
10246 native | both ) with_native_sound=yes;;
|
|
|
10247 nas | no ) with_native_sound=no;;
|
|
|
10248 esac
|
|
155
|
10249 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
|
10250
|
|
149
|
10251 if test "$with_native_sound" != "no"; then
|
|
155
|
10252 if test -n "$native_sound_lib"; then
|
|
|
10253 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
|
10254 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
|
321
|
10255 echo "configure:10256: checking for multimedia/audio_device.h" >&5
|
|
|
10256
|
|
|
10257 cat > conftest.$ac_ext <<EOF
|
|
|
10258 #line 10259 "configure"
|
|
155
|
10259 #include "confdefs.h"
|
|
|
10260 #include <multimedia/audio_device.h>
|
|
|
10261 EOF
|
|
|
10262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10263 { (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
10264 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
10265 if test -z "$ac_err"; then
|
|
|
10266 rm -rf conftest*
|
|
|
10267 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10268 else
|
|
|
10269 echo "$ac_err" >&5
|
|
|
10270 echo "configure: failed program was:" >&5
|
|
|
10271 cat conftest.$ac_ext >&5
|
|
|
10272 rm -rf conftest*
|
|
|
10273 eval "ac_cv_header_$ac_safe=no"
|
|
|
10274 fi
|
|
|
10275 rm -f conftest*
|
|
|
10276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10277 echo "$ac_t""yes" 1>&6
|
|
|
10278 sound_found=yes sound_cflags=""
|
|
|
10279 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10280 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
10281 fi
|
|
|
10282 else
|
|
|
10283 echo "$ac_t""no" 1>&6
|
|
|
10284 fi
|
|
|
10285
|
|
|
10286 fi
|
|
|
10287
|
|
|
10288 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
|
10289 sound_found=yes
|
|
151
|
10290 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10291 echo " xemacs will be linked with \"sunplay.o\""
|
|
|
10292 fi
|
|
149
|
10293 if test -d "/usr/demo/SOUND/include"
|
|
|
10294 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
|
10295 else sound_cflags="-I/usr/demo/SOUND"
|
|
|
10296 fi
|
|
|
10297 if test -z "$native_sound_lib" ; then
|
|
|
10298 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
|
10299 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
|
10300 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
|
10301 fi
|
|
|
10302 fi
|
|
155
|
10303 fi
|
|
|
10304
|
|
|
10305 if test -z "$sound_found"; then
|
|
|
10306 case "$canonical" in
|
|
149
|
10307 *-sgi-* )
|
|
155
|
10308 if test -z "$native_sound_lib"; then
|
|
|
10309
|
|
149
|
10310 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
|
321
|
10311 echo "configure:10312: checking for ALopenport in -laudio" >&5
|
|
149
|
10312 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
|
10313
|
|
|
10314 xe_check_libs=" -laudio "
|
|
|
10315 cat > conftest.$ac_ext <<EOF
|
|
321
|
10316 #line 10317 "configure"
|
|
149
|
10317 #include "confdefs.h"
|
|
|
10318 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10319 /* We use char because int might match the return type of a gcc2
|
|
|
10320 builtin and then its argument prototype would still apply. */
|
|
|
10321 char ALopenport();
|
|
|
10322
|
|
|
10323 int main() {
|
|
|
10324 ALopenport()
|
|
|
10325 ; return 0; }
|
|
|
10326 EOF
|
|
321
|
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10328 rm -rf conftest*
|
|
|
10329 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10330 else
|
|
|
10331 echo "configure: failed program was:" >&5
|
|
|
10332 cat conftest.$ac_ext >&5
|
|
|
10333 rm -rf conftest*
|
|
|
10334 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10335 fi
|
|
|
10336 rm -f conftest*
|
|
|
10337 xe_check_libs=""
|
|
|
10338
|
|
151
|
10339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
10340 echo "$ac_t""yes" 1>&6
|
|
|
10341 native_sound_lib="-laudio"
|
|
|
10342 else
|
|
|
10343 echo "$ac_t""no" 1>&6
|
|
|
10344 fi
|
|
|
10345
|
|
|
10346
|
|
155
|
10347 fi
|
|
|
10348 if test -n "$native_sound_lib"; then
|
|
|
10349 sound_found=yes sound_cflags=""
|
|
151
|
10350 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10351 echo " xemacs will be linked with \"sgiplay.o\""
|
|
|
10352 fi
|
|
149
|
10353 fi ;;
|
|
|
10354 hppa*-hp-hpux* )
|
|
155
|
10355 if test -z "$native_sound_lib"; then
|
|
|
10356
|
|
149
|
10357 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
|
321
|
10358 echo "configure:10359: checking for AOpenAudio in -lAlib" >&5
|
|
149
|
10359 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
|
10360
|
|
|
10361 xe_check_libs=" -lAlib "
|
|
|
10362 cat > conftest.$ac_ext <<EOF
|
|
321
|
10363 #line 10364 "configure"
|
|
149
|
10364 #include "confdefs.h"
|
|
|
10365 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10366 /* We use char because int might match the return type of a gcc2
|
|
|
10367 builtin and then its argument prototype would still apply. */
|
|
|
10368 char AOpenAudio();
|
|
|
10369
|
|
|
10370 int main() {
|
|
|
10371 AOpenAudio()
|
|
|
10372 ; return 0; }
|
|
|
10373 EOF
|
|
321
|
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10375 rm -rf conftest*
|
|
|
10376 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10377 else
|
|
|
10378 echo "configure: failed program was:" >&5
|
|
|
10379 cat conftest.$ac_ext >&5
|
|
|
10380 rm -rf conftest*
|
|
|
10381 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10382 fi
|
|
|
10383 rm -f conftest*
|
|
|
10384 xe_check_libs=""
|
|
|
10385
|
|
151
|
10386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
10387 echo "$ac_t""yes" 1>&6
|
|
|
10388 native_sound_lib="-lAlib"
|
|
|
10389 else
|
|
|
10390 echo "$ac_t""no" 1>&6
|
|
|
10391 fi
|
|
|
10392
|
|
|
10393
|
|
155
|
10394 fi
|
|
|
10395 if test -n "$native_sound_lib"; then
|
|
|
10396 sound_found=yes
|
|
151
|
10397 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10398 echo " xemacs will be linked with \"hpplay.o\""
|
|
|
10399 fi
|
|
169
|
10400 if test "$GCC" = "yes" # Kludge city
|
|
149
|
10401 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
|
10402 else sound_cflags="+e -I/usr/audio/examples"
|
|
|
10403 fi
|
|
|
10404 fi ;;
|
|
0
|
10405 esac
|
|
|
10406 fi
|
|
149
|
10407
|
|
155
|
10408 if test -z "$sound_found"; then
|
|
149
|
10409 for dir in "machine" "sys" "linux"; do
|
|
|
10410 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
|
10411 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
|
321
|
10412 echo "configure:10413: checking for ${dir}/soundcard.h" >&5
|
|
|
10413
|
|
|
10414 cat > conftest.$ac_ext <<EOF
|
|
|
10415 #line 10416 "configure"
|
|
149
|
10416 #include "confdefs.h"
|
|
|
10417 #include <${dir}/soundcard.h>
|
|
|
10418 EOF
|
|
|
10419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10420 { (eval echo configure:10421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10421 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
10422 if test -z "$ac_err"; then
|
|
|
10423 rm -rf conftest*
|
|
|
10424 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10425 else
|
|
|
10426 echo "$ac_err" >&5
|
|
|
10427 echo "configure: failed program was:" >&5
|
|
|
10428 cat conftest.$ac_ext >&5
|
|
|
10429 rm -rf conftest*
|
|
|
10430 eval "ac_cv_header_$ac_safe=no"
|
|
|
10431 fi
|
|
|
10432 rm -f conftest*
|
|
|
10433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10434 echo "$ac_t""yes" 1>&6
|
|
|
10435 sound_found=yes
|
|
151
|
10436 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10437 echo " xemacs will be linked with \"linuxplay.o\""
|
|
|
10438 fi
|
|
149
|
10439 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10440 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
|
|
|
10441 EOF
|
|
|
10442 cat >> confdefs.h <<EOF
|
|
|
10443 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
|
|
|
10444 EOF
|
|
|
10445 }
|
|
|
10446
|
|
|
10447 break
|
|
|
10448 else
|
|
|
10449 echo "$ac_t""no" 1>&6
|
|
|
10450 fi
|
|
|
10451
|
|
|
10452 done
|
|
100
|
10453 fi
|
|
149
|
10454
|
|
|
10455 test "$sound_found" = "yes" && with_native_sound=yes
|
|
|
10456 fi
|
|
|
10457
|
|
|
10458 if test -z "$with_sound"; then
|
|
|
10459 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
|
|
|
10460 with_sound=native
|
|
100
|
10461 fi
|
|
|
10462 fi
|
|
|
10463
|
|
149
|
10464 if test "$with_native_sound" = "yes"; then
|
|
|
10465 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10466 Defining HAVE_NATIVE_SOUND
|
|
|
10467 EOF
|
|
|
10468 cat >> confdefs.h <<\EOF
|
|
|
10469 #define HAVE_NATIVE_SOUND 1
|
|
|
10470 EOF
|
|
|
10471 }
|
|
|
10472
|
|
151
|
10473 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
|
10474 fi
|
|
|
10475
|
|
|
10476 case "$with_sound" in both | nas )
|
|
|
10477 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10478 Defining HAVE_NAS_SOUND
|
|
|
10479 EOF
|
|
|
10480 cat >> confdefs.h <<\EOF
|
|
|
10481 #define HAVE_NAS_SOUND 1
|
|
|
10482 EOF
|
|
|
10483 }
|
|
|
10484
|
|
151
|
10485 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10486 echo " xemacs will be linked with \"nas.o\""
|
|
|
10487 fi
|
|
201
|
10488 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
149
|
10489 cat > conftest.$ac_ext <<EOF
|
|
321
|
10490 #line 10491 "configure"
|
|
149
|
10491 #include "confdefs.h"
|
|
|
10492 #include <audio/Xtutil.h>
|
|
|
10493 EOF
|
|
|
10494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
10495 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
|
10496 :
|
|
|
10497 else
|
|
|
10498 rm -rf conftest*
|
|
|
10499 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10500 Defining NAS_NO_ERROR_JUMP
|
|
|
10501 EOF
|
|
|
10502 cat >> confdefs.h <<\EOF
|
|
|
10503 #define NAS_NO_ERROR_JUMP 1
|
|
|
10504 EOF
|
|
|
10505 }
|
|
|
10506
|
|
|
10507 fi
|
|
|
10508 rm -f conftest*
|
|
|
10509
|
|
|
10510 esac
|
|
|
10511
|
|
|
10512
|
|
|
10513 test -z "$with_tty" && with_tty=yes
|
|
|
10514
|
|
|
10515 if test "$with_tty" = "yes" ; then
|
|
151
|
10516 echo "checking for TTY-related features" 1>&6
|
|
321
|
10517 echo "configure:10518: checking for TTY-related features" >&5
|
|
149
|
10518 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10519 Defining HAVE_TTY
|
|
|
10520 EOF
|
|
|
10521 cat >> confdefs.h <<\EOF
|
|
|
10522 #define HAVE_TTY 1
|
|
|
10523 EOF
|
|
|
10524 }
|
|
|
10525
|
|
151
|
10526 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
|
|
|
10527 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\""
|
|
|
10528 fi
|
|
149
|
10529
|
|
|
10530 if test -z "$with_ncurses"; then
|
|
70
|
10531
|
|
151
|
10532 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
|
321
|
10533 echo "configure:10534: checking for tgetent in -lncurses" >&5
|
|
151
|
10534 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
149
|
10535
|
|
|
10536 xe_check_libs=" -lncurses "
|
|
|
10537 cat > conftest.$ac_ext <<EOF
|
|
321
|
10538 #line 10539 "configure"
|
|
149
|
10539 #include "confdefs.h"
|
|
|
10540 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10541 /* We use char because int might match the return type of a gcc2
|
|
|
10542 builtin and then its argument prototype would still apply. */
|
|
151
|
10543 char tgetent();
|
|
149
|
10544
|
|
|
10545 int main() {
|
|
151
|
10546 tgetent()
|
|
149
|
10547 ; return 0; }
|
|
|
10548 EOF
|
|
321
|
10549 if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10550 rm -rf conftest*
|
|
|
10551 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10552 else
|
|
|
10553 echo "configure: failed program was:" >&5
|
|
|
10554 cat conftest.$ac_ext >&5
|
|
|
10555 rm -rf conftest*
|
|
|
10556 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10557 fi
|
|
|
10558 rm -f conftest*
|
|
|
10559 xe_check_libs=""
|
|
|
10560
|
|
151
|
10561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
10562 echo "$ac_t""yes" 1>&6
|
|
|
10563 with_ncurses=yes
|
|
|
10564 else
|
|
|
10565 echo "$ac_t""no" 1>&6
|
|
|
10566 with_ncurses=no
|
|
|
10567 fi
|
|
|
10568
|
|
|
10569
|
|
|
10570 fi
|
|
|
10571 if test "$with_ncurses" = "yes"; then
|
|
|
10572 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10573 Defining HAVE_NCURSES
|
|
|
10574 EOF
|
|
|
10575 cat >> confdefs.h <<\EOF
|
|
|
10576 #define HAVE_NCURSES 1
|
|
|
10577 EOF
|
|
|
10578 }
|
|
|
10579
|
|
|
10580 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
10581 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
321
|
10582 echo "configure:10583: checking for ncurses/curses.h" >&5
|
|
|
10583
|
|
|
10584 cat > conftest.$ac_ext <<EOF
|
|
|
10585 #line 10586 "configure"
|
|
149
|
10586 #include "confdefs.h"
|
|
|
10587 #include <ncurses/curses.h>
|
|
|
10588 EOF
|
|
|
10589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10590 { (eval echo configure:10591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10591 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
10592 if test -z "$ac_err"; then
|
|
|
10593 rm -rf conftest*
|
|
|
10594 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10595 else
|
|
|
10596 echo "$ac_err" >&5
|
|
|
10597 echo "configure: failed program was:" >&5
|
|
|
10598 cat conftest.$ac_ext >&5
|
|
|
10599 rm -rf conftest*
|
|
|
10600 eval "ac_cv_header_$ac_safe=no"
|
|
|
10601 fi
|
|
|
10602 rm -f conftest*
|
|
|
10603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10604 echo "$ac_t""yes" 1>&6
|
|
|
10605 curses_h_path=ncurses/curses.h
|
|
|
10606 else
|
|
|
10607 echo "$ac_t""no" 1>&6
|
|
|
10608 fi
|
|
|
10609
|
|
|
10610 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
|
10611 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
|
321
|
10612 echo "configure:10613: checking for ncurses/term.h" >&5
|
|
|
10613
|
|
|
10614 cat > conftest.$ac_ext <<EOF
|
|
|
10615 #line 10616 "configure"
|
|
0
|
10616 #include "confdefs.h"
|
|
|
10617 #include <ncurses/term.h>
|
|
|
10618 EOF
|
|
149
|
10619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10620 { (eval echo configure:10621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10621 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10622 if test -z "$ac_err"; then
|
|
|
10623 rm -rf conftest*
|
|
149
|
10624 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10625 else
|
|
|
10626 echo "$ac_err" >&5
|
|
|
10627 echo "configure: failed program was:" >&5
|
|
|
10628 cat conftest.$ac_ext >&5
|
|
|
10629 rm -rf conftest*
|
|
|
10630 eval "ac_cv_header_$ac_safe=no"
|
|
|
10631 fi
|
|
|
10632 rm -f conftest*
|
|
|
10633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10634 echo "$ac_t""yes" 1>&6
|
|
|
10635 term_h_path=ncurses/term.h
|
|
|
10636 else
|
|
|
10637 echo "$ac_t""no" 1>&6
|
|
|
10638 fi
|
|
|
10639
|
|
151
|
10640 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10641 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
10642 fi
|
|
|
10643 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
|
149
|
10644
|
|
153
|
10645 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
|
149
|
10646 save_c_switch_site="$c_switch_site"
|
|
|
10647 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
|
10648 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
|
10649 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
|
321
|
10650 echo "configure:10651: checking for ncurses/curses.h" >&5
|
|
|
10651
|
|
|
10652 cat > conftest.$ac_ext <<EOF
|
|
|
10653 #line 10654 "configure"
|
|
0
|
10654 #include "confdefs.h"
|
|
|
10655 #include <ncurses/curses.h>
|
|
|
10656 EOF
|
|
149
|
10657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10658 { (eval echo configure:10659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
149
|
10659 ac_err=`grep -v '^ *+' conftest.out`
|
|
0
|
10660 if test -z "$ac_err"; then
|
|
|
10661 rm -rf conftest*
|
|
149
|
10662 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10663 else
|
|
|
10664 echo "$ac_err" >&5
|
|
|
10665 echo "configure: failed program was:" >&5
|
|
|
10666 cat conftest.$ac_ext >&5
|
|
|
10667 rm -rf conftest*
|
|
|
10668 eval "ac_cv_header_$ac_safe=no"
|
|
|
10669 fi
|
|
|
10670 rm -f conftest*
|
|
|
10671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10672 echo "$ac_t""yes" 1>&6
|
|
|
10673 curses_h_path=ncurses/curses.h
|
|
|
10674 else
|
|
|
10675 echo "$ac_t""no" 1>&6
|
|
|
10676 fi
|
|
|
10677
|
|
153
|
10678 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
|
149
|
10679 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
|
|
|
10680 else c_switch_site="$save_c_switch_site"
|
|
|
10681 fi
|
|
|
10682 fi
|
|
151
|
10683 else if test "$have_terminfo" = "yes"; then
|
|
|
10684 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10685 echo " xemacs will be linked with \"terminfo.o\""
|
|
|
10686 fi
|
|
|
10687 if test -n "$libs_termcap"; then
|
|
|
10688 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
10689 else
|
|
|
10690 for lib in curses termlib termcap; do
|
|
|
10691
|
|
|
10692 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
|
321
|
10693 echo "configure:10694: checking for tgetent in -l$lib" >&5
|
|
151
|
10694 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
10695
|
|
|
10696 xe_check_libs=" -l$lib "
|
|
|
10697 cat > conftest.$ac_ext <<EOF
|
|
321
|
10698 #line 10699 "configure"
|
|
149
|
10699 #include "confdefs.h"
|
|
|
10700 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10701 /* We use char because int might match the return type of a gcc2
|
|
|
10702 builtin and then its argument prototype would still apply. */
|
|
151
|
10703 char tgetent();
|
|
149
|
10704
|
|
|
10705 int main() {
|
|
151
|
10706 tgetent()
|
|
149
|
10707 ; return 0; }
|
|
|
10708 EOF
|
|
321
|
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10710 rm -rf conftest*
|
|
|
10711 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10712 else
|
|
|
10713 echo "configure: failed program was:" >&5
|
|
|
10714 cat conftest.$ac_ext >&5
|
|
|
10715 rm -rf conftest*
|
|
|
10716 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10717 fi
|
|
|
10718 rm -f conftest*
|
|
|
10719 xe_check_libs=""
|
|
|
10720
|
|
151
|
10721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
10722 echo "$ac_t""yes" 1>&6
|
|
|
10723 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
|
10724 else
|
|
|
10725 echo "$ac_t""no" 1>&6
|
|
|
10726 fi
|
|
|
10727
|
|
|
10728
|
|
|
10729 done
|
|
|
10730 fi
|
|
|
10731 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10732 echo " xemacs will be linked with \"tparam.o\""
|
|
|
10733 fi
|
|
|
10734 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
|
10735 if test -n "$libs_termcap"; then
|
|
|
10736 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
|
10737 else
|
|
|
10738
|
|
|
10739 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
|
321
|
10740 echo "configure:10741: checking for tgetent in -lcurses" >&5
|
|
151
|
10741 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
10742
|
|
|
10743 xe_check_libs=" -lcurses "
|
|
|
10744 cat > conftest.$ac_ext <<EOF
|
|
321
|
10745 #line 10746 "configure"
|
|
149
|
10746 #include "confdefs.h"
|
|
|
10747 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10748 /* We use char because int might match the return type of a gcc2
|
|
|
10749 builtin and then its argument prototype would still apply. */
|
|
151
|
10750 char tgetent();
|
|
149
|
10751
|
|
|
10752 int main() {
|
|
151
|
10753 tgetent()
|
|
149
|
10754 ; return 0; }
|
|
|
10755 EOF
|
|
321
|
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10757 rm -rf conftest*
|
|
|
10758 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10759 else
|
|
|
10760 echo "configure: failed program was:" >&5
|
|
|
10761 cat conftest.$ac_ext >&5
|
|
|
10762 rm -rf conftest*
|
|
|
10763 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10764 fi
|
|
|
10765 rm -f conftest*
|
|
|
10766 xe_check_libs=""
|
|
|
10767
|
|
151
|
10768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
10769 echo "$ac_t""yes" 1>&6
|
|
|
10770 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
|
10771 else
|
|
|
10772 echo "$ac_t""no" 1>&6
|
|
|
10773 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
|
321
|
10774 echo "configure:10775: checking for tgetent in -ltermcap" >&5
|
|
151
|
10775 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
10776
|
|
|
10777 xe_check_libs=" -ltermcap "
|
|
|
10778 cat > conftest.$ac_ext <<EOF
|
|
321
|
10779 #line 10780 "configure"
|
|
149
|
10780 #include "confdefs.h"
|
|
|
10781 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10782 /* We use char because int might match the return type of a gcc2
|
|
|
10783 builtin and then its argument prototype would still apply. */
|
|
151
|
10784 char tgetent();
|
|
149
|
10785
|
|
|
10786 int main() {
|
|
151
|
10787 tgetent()
|
|
149
|
10788 ; return 0; }
|
|
|
10789 EOF
|
|
321
|
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10791 rm -rf conftest*
|
|
|
10792 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10793 else
|
|
|
10794 echo "configure: failed program was:" >&5
|
|
|
10795 cat conftest.$ac_ext >&5
|
|
|
10796 rm -rf conftest*
|
|
|
10797 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10798 fi
|
|
|
10799 rm -f conftest*
|
|
|
10800 xe_check_libs=""
|
|
|
10801
|
|
151
|
10802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
10803 echo "$ac_t""yes" 1>&6
|
|
|
10804 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
|
10805 else
|
|
|
10806 echo "$ac_t""no" 1>&6
|
|
|
10807 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10808 echo " xemacs will be linked with \"termcap.o\""
|
|
|
10809 fi
|
|
|
10810 fi
|
|
|
10811
|
|
|
10812
|
|
|
10813 fi
|
|
|
10814
|
|
|
10815
|
|
0
|
10816 fi
|
|
|
10817 fi
|
|
149
|
10818 fi
|
|
|
10819 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10820 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
|
|
|
10821 EOF
|
|
|
10822 cat >> confdefs.h <<EOF
|
|
|
10823 #define CURSES_H_PATH "${curses_h_path-curses.h}"
|
|
|
10824 EOF
|
|
|
10825 }
|
|
|
10826
|
|
|
10827 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10828 Defining TERM_H_PATH = "${term_h_path-term.h}"
|
|
|
10829 EOF
|
|
|
10830 cat >> confdefs.h <<EOF
|
|
|
10831 #define TERM_H_PATH "${term_h_path-term.h}"
|
|
|
10832 EOF
|
|
|
10833 }
|
|
|
10834
|
|
155
|
10835
|
|
|
10836 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
|
10837 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
|
321
|
10838 echo "configure:10839: checking for gpm.h" >&5
|
|
|
10839
|
|
|
10840 cat > conftest.$ac_ext <<EOF
|
|
|
10841 #line 10842 "configure"
|
|
155
|
10842 #include "confdefs.h"
|
|
|
10843 #include <gpm.h>
|
|
|
10844 EOF
|
|
|
10845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10846 { (eval echo configure:10847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
155
|
10847 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
10848 if test -z "$ac_err"; then
|
|
|
10849 rm -rf conftest*
|
|
|
10850 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10851 else
|
|
|
10852 echo "$ac_err" >&5
|
|
|
10853 echo "configure: failed program was:" >&5
|
|
|
10854 cat conftest.$ac_ext >&5
|
|
|
10855 rm -rf conftest*
|
|
|
10856 eval "ac_cv_header_$ac_safe=no"
|
|
|
10857 fi
|
|
|
10858 rm -f conftest*
|
|
|
10859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10860 echo "$ac_t""yes" 1>&6
|
|
|
10861 :
|
|
|
10862 else
|
|
|
10863 echo "$ac_t""no" 1>&6
|
|
|
10864 with_gpm=no
|
|
|
10865 fi
|
|
|
10866 }
|
|
|
10867 test -z "$with_gpm" && {
|
|
|
10868 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
|
321
|
10869 echo "configure:10870: checking for Gpm_Open in -lgpm" >&5
|
|
155
|
10870 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
|
10871
|
|
|
10872 xe_check_libs=" -lgpm "
|
|
|
10873 cat > conftest.$ac_ext <<EOF
|
|
321
|
10874 #line 10875 "configure"
|
|
155
|
10875 #include "confdefs.h"
|
|
|
10876 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10877 /* We use char because int might match the return type of a gcc2
|
|
|
10878 builtin and then its argument prototype would still apply. */
|
|
|
10879 char Gpm_Open();
|
|
|
10880
|
|
|
10881 int main() {
|
|
|
10882 Gpm_Open()
|
|
|
10883 ; return 0; }
|
|
|
10884 EOF
|
|
321
|
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
155
|
10886 rm -rf conftest*
|
|
|
10887 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
10888 else
|
|
|
10889 echo "configure: failed program was:" >&5
|
|
|
10890 cat conftest.$ac_ext >&5
|
|
|
10891 rm -rf conftest*
|
|
|
10892 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
10893 fi
|
|
|
10894 rm -f conftest*
|
|
|
10895 xe_check_libs=""
|
|
|
10896
|
|
|
10897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
10898 echo "$ac_t""yes" 1>&6
|
|
|
10899 with_gpm=yes
|
|
|
10900 else
|
|
|
10901 echo "$ac_t""no" 1>&6
|
|
|
10902 with_gpm=no
|
|
|
10903 fi
|
|
|
10904
|
|
|
10905 }
|
|
|
10906 if test "$with_gpm" = "yes"; then
|
|
|
10907 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
10908 Defining HAVE_GPM
|
|
|
10909 EOF
|
|
|
10910 cat >> confdefs.h <<\EOF
|
|
|
10911 #define HAVE_GPM 1
|
|
|
10912 EOF
|
|
|
10913 }
|
|
|
10914
|
|
|
10915 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10916 echo " xemacs will be linked with \"gpmevent.o\""
|
|
|
10917 fi
|
|
|
10918 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
|
10919 fi
|
|
|
10920
|
|
151
|
10921 else for feature in ncurses gpm; do
|
|
149
|
10922 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
|
10923 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
|
|
|
10924 fi
|
|
|
10925 eval "with_${feature}=no"
|
|
|
10926 done
|
|
151
|
10927 fi
|
|
163
|
10928 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
|
|
|
10929 echo " xemacs will be linked with \"event-unixoid.o\""
|
|
|
10930 fi
|
|
|
10931
|
|
149
|
10932
|
|
|
10933 echo "checking for database support" 1>&6
|
|
321
|
10934 echo "configure:10935: checking for database support" >&5
|
|
151
|
10935
|
|
|
10936 if test "$with_database_gnudbm" != "no"; then
|
|
265
|
10937 for ac_hdr in ndbm.h
|
|
|
10938 do
|
|
|
10939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
10940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
10941 echo "configure:10942: checking for $ac_hdr" >&5
|
|
|
10942
|
|
|
10943 cat > conftest.$ac_ext <<EOF
|
|
|
10944 #line 10945 "configure"
|
|
265
|
10945 #include "confdefs.h"
|
|
|
10946 #include <$ac_hdr>
|
|
|
10947 EOF
|
|
|
10948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
10949 { (eval echo configure:10950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
265
|
10950 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
10951 if test -z "$ac_err"; then
|
|
|
10952 rm -rf conftest*
|
|
|
10953 eval "ac_cv_header_$ac_safe=yes"
|
|
|
10954 else
|
|
|
10955 echo "$ac_err" >&5
|
|
|
10956 echo "configure: failed program was:" >&5
|
|
|
10957 cat conftest.$ac_ext >&5
|
|
|
10958 rm -rf conftest*
|
|
|
10959 eval "ac_cv_header_$ac_safe=no"
|
|
|
10960 fi
|
|
|
10961 rm -f conftest*
|
|
|
10962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
10963 echo "$ac_t""yes" 1>&6
|
|
|
10964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
10965 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
10966 Defining $ac_tr_hdr
|
|
|
10967 EOF
|
|
|
10968 cat >> confdefs.h <<EOF
|
|
|
10969 #define $ac_tr_hdr 1
|
|
|
10970 EOF
|
|
|
10971 }
|
|
|
10972 have_ndbm_h=yes
|
|
|
10973 else
|
|
|
10974 echo "$ac_t""no" 1>&6
|
|
|
10975 fi
|
|
|
10976 done
|
|
|
10977
|
|
|
10978 if test "$have_ndbm_h" = "yes"; then
|
|
|
10979
|
|
149
|
10980 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
|
321
|
10981 echo "configure:10982: checking for dbm_open in -lgdbm" >&5
|
|
149
|
10982 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
10983
|
|
|
10984 xe_check_libs=" -lgdbm "
|
|
|
10985 cat > conftest.$ac_ext <<EOF
|
|
321
|
10986 #line 10987 "configure"
|
|
149
|
10987 #include "confdefs.h"
|
|
|
10988 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
10989 /* We use char because int might match the return type of a gcc2
|
|
|
10990 builtin and then its argument prototype would still apply. */
|
|
|
10991 char dbm_open();
|
|
|
10992
|
|
|
10993 int main() {
|
|
|
10994 dbm_open()
|
|
|
10995 ; return 0; }
|
|
|
10996 EOF
|
|
321
|
10997 if { (eval echo configure:10998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
10998 rm -rf conftest*
|
|
|
10999 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11000 else
|
|
|
11001 echo "configure: failed program was:" >&5
|
|
|
11002 cat conftest.$ac_ext >&5
|
|
|
11003 rm -rf conftest*
|
|
|
11004 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11005 fi
|
|
|
11006 rm -f conftest*
|
|
|
11007 xe_check_libs=""
|
|
|
11008
|
|
151
|
11009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
11010 echo "$ac_t""yes" 1>&6
|
|
|
11011 with_database_gnudbm=yes have_libgdbm=yes
|
|
|
11012 else
|
|
|
11013 echo "$ac_t""no" 1>&6
|
|
|
11014 fi
|
|
|
11015
|
|
|
11016
|
|
265
|
11017 fi
|
|
149
|
11018 if test "$with_database_gnudbm" != "yes"; then
|
|
|
11019 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
321
|
11020 echo "configure:11021: checking for dbm_open" >&5
|
|
|
11021
|
|
|
11022 cat > conftest.$ac_ext <<EOF
|
|
|
11023 #line 11024 "configure"
|
|
149
|
11024 #include "confdefs.h"
|
|
|
11025 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
11026 which can conflict with char dbm_open(); below. */
|
|
|
11027 #include <assert.h>
|
|
|
11028 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11029 /* We use char because int might match the return type of a gcc2
|
|
|
11030 builtin and then its argument prototype would still apply. */
|
|
|
11031 char dbm_open();
|
|
|
11032
|
|
|
11033 int main() {
|
|
|
11034
|
|
|
11035 /* The GNU C library defines this for functions which it implements
|
|
|
11036 to always fail with ENOSYS. Some functions are actually named
|
|
|
11037 something starting with __ and the normal name is an alias. */
|
|
|
11038 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
11039 choke me
|
|
|
11040 #else
|
|
|
11041 dbm_open();
|
|
|
11042 #endif
|
|
|
11043
|
|
|
11044 ; return 0; }
|
|
|
11045 EOF
|
|
321
|
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
11047 rm -rf conftest*
|
|
|
11048 eval "ac_cv_func_dbm_open=yes"
|
|
|
11049 else
|
|
|
11050 echo "configure: failed program was:" >&5
|
|
|
11051 cat conftest.$ac_ext >&5
|
|
|
11052 rm -rf conftest*
|
|
|
11053 eval "ac_cv_func_dbm_open=no"
|
|
|
11054 fi
|
|
|
11055 rm -f conftest*
|
|
|
11056
|
|
|
11057 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
11058 echo "$ac_t""yes" 1>&6
|
|
|
11059 with_database_gnudbm=yes
|
|
|
11060 else
|
|
|
11061 echo "$ac_t""no" 1>&6
|
|
|
11062 fi
|
|
|
11063
|
|
|
11064 fi
|
|
151
|
11065 if test "$with_database_gnudbm" = "yes"; then
|
|
149
|
11066 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11067 Defining HAVE_DBM
|
|
|
11068 EOF
|
|
|
11069 cat >> confdefs.h <<\EOF
|
|
|
11070 #define HAVE_DBM 1
|
|
|
11071 EOF
|
|
|
11072 }
|
|
|
11073
|
|
151
|
11074 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
|
|
149
|
11075 with_database_dbm=no
|
|
|
11076 else with_database_gnudbm=no
|
|
|
11077 fi
|
|
|
11078 fi
|
|
|
11079
|
|
151
|
11080 if test "$with_database_dbm" != "no"; then
|
|
149
|
11081 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
321
|
11082 echo "configure:11083: checking for dbm_open" >&5
|
|
|
11083
|
|
|
11084 cat > conftest.$ac_ext <<EOF
|
|
|
11085 #line 11086 "configure"
|
|
149
|
11086 #include "confdefs.h"
|
|
|
11087 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
11088 which can conflict with char dbm_open(); below. */
|
|
|
11089 #include <assert.h>
|
|
|
11090 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11091 /* We use char because int might match the return type of a gcc2
|
|
|
11092 builtin and then its argument prototype would still apply. */
|
|
|
11093 char dbm_open();
|
|
|
11094
|
|
|
11095 int main() {
|
|
|
11096
|
|
|
11097 /* The GNU C library defines this for functions which it implements
|
|
|
11098 to always fail with ENOSYS. Some functions are actually named
|
|
|
11099 something starting with __ and the normal name is an alias. */
|
|
|
11100 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
|
11101 choke me
|
|
|
11102 #else
|
|
|
11103 dbm_open();
|
|
|
11104 #endif
|
|
|
11105
|
|
|
11106 ; return 0; }
|
|
|
11107 EOF
|
|
321
|
11108 if { (eval echo configure:11109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
11109 rm -rf conftest*
|
|
|
11110 eval "ac_cv_func_dbm_open=yes"
|
|
|
11111 else
|
|
|
11112 echo "configure: failed program was:" >&5
|
|
|
11113 cat conftest.$ac_ext >&5
|
|
|
11114 rm -rf conftest*
|
|
|
11115 eval "ac_cv_func_dbm_open=no"
|
|
|
11116 fi
|
|
|
11117 rm -f conftest*
|
|
|
11118
|
|
|
11119 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
|
11120 echo "$ac_t""yes" 1>&6
|
|
|
11121 with_database_dbm=yes need_libdbm=no
|
|
|
11122 else
|
|
|
11123 echo "$ac_t""no" 1>&6
|
|
|
11124 fi
|
|
|
11125
|
|
|
11126 if test "$need_libdbm" != "no"; then
|
|
|
11127
|
|
|
11128 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
|
321
|
11129 echo "configure:11130: checking for dbm_open in -ldbm" >&5
|
|
149
|
11130 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
|
11131
|
|
|
11132 xe_check_libs=" -ldbm "
|
|
|
11133 cat > conftest.$ac_ext <<EOF
|
|
321
|
11134 #line 11135 "configure"
|
|
149
|
11135 #include "confdefs.h"
|
|
|
11136 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11137 /* We use char because int might match the return type of a gcc2
|
|
|
11138 builtin and then its argument prototype would still apply. */
|
|
|
11139 char dbm_open();
|
|
|
11140
|
|
|
11141 int main() {
|
|
|
11142 dbm_open()
|
|
|
11143 ; return 0; }
|
|
|
11144 EOF
|
|
321
|
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
11146 rm -rf conftest*
|
|
|
11147 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11148 else
|
|
|
11149 echo "configure: failed program was:" >&5
|
|
|
11150 cat conftest.$ac_ext >&5
|
|
|
11151 rm -rf conftest*
|
|
|
11152 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11153 fi
|
|
|
11154 rm -f conftest*
|
|
|
11155 xe_check_libs=""
|
|
|
11156
|
|
151
|
11157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
11158 echo "$ac_t""yes" 1>&6
|
|
|
11159 with_database_dbm=yes need_libdbm=yes
|
|
|
11160 else
|
|
|
11161 echo "$ac_t""no" 1>&6
|
|
|
11162 fi
|
|
|
11163
|
|
70
|
11164
|
|
0
|
11165 fi
|
|
151
|
11166 if test "$with_database_dbm" = "yes"; then
|
|
149
|
11167 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11168 Defining HAVE_DBM
|
|
|
11169 EOF
|
|
|
11170 cat >> confdefs.h <<\EOF
|
|
|
11171 #define HAVE_DBM 1
|
|
|
11172 EOF
|
|
|
11173 }
|
|
|
11174
|
|
151
|
11175 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
|
|
149
|
11176 else with_database_dbm=no
|
|
|
11177 fi
|
|
|
11178 fi
|
|
|
11179
|
|
|
11180 if test "$with_database_berkdb" != "no"; then
|
|
298
|
11181 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
|
321
|
11182 echo "configure:11183: checking for Berkeley db.h" >&5
|
|
298
|
11183 for path in "db/db.h" "db.h"; do
|
|
|
11184 cat > conftest.$ac_ext <<EOF
|
|
321
|
11185 #line 11186 "configure"
|
|
149
|
11186 #include "confdefs.h"
|
|
298
|
11187 #ifdef HAVE_INTTYPES_H
|
|
|
11188 #define __BIT_TYPES_DEFINED__
|
|
|
11189 #include <inttypes.h>
|
|
|
11190 typedef uint8_t u_int8_t;
|
|
|
11191 typedef uint16_t u_int16_t;
|
|
|
11192 typedef uint32_t u_int32_t;
|
|
|
11193 #ifdef WE_DONT_NEED_QUADS
|
|
|
11194 typedef uint64_t u_int64_t;
|
|
|
11195 #endif
|
|
|
11196 #endif
|
|
|
11197 #include <$path>
|
|
|
11198
|
|
|
11199 int main() {
|
|
|
11200
|
|
|
11201 ; return 0; }
|
|
|
11202 EOF
|
|
321
|
11203 if { (eval echo configure:11204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
298
|
11204 rm -rf conftest*
|
|
|
11205 db_h_path="$path"; break
|
|
|
11206 else
|
|
|
11207 echo "configure: failed program was:" >&5
|
|
|
11208 cat conftest.$ac_ext >&5
|
|
|
11209 fi
|
|
|
11210 rm -f conftest*
|
|
|
11211 done
|
|
306
|
11212 if test -z "$db_h_path"
|
|
298
|
11213 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
|
|
11214 else echo "$ac_t""$db_h_path" 1>&6
|
|
|
11215 fi
|
|
|
11216
|
|
|
11217 if test "$with_database_berkdb" != "no"; then
|
|
|
11218 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
|
321
|
11219 echo "configure:11220: checking for Berkeley DB version" >&5
|
|
298
|
11220 cat > conftest.$ac_ext <<EOF
|
|
321
|
11221 #line 11222 "configure"
|
|
298
|
11222 #include "confdefs.h"
|
|
|
11223 #include <$db_h_path>
|
|
|
11224 #if DB_VERSION_MAJOR > 1
|
|
|
11225 yes
|
|
|
11226 #endif
|
|
|
11227
|
|
|
11228 EOF
|
|
|
11229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
11230 egrep "yes" >/dev/null 2>&1; then
|
|
|
11231 rm -rf conftest*
|
|
|
11232 echo "$ac_t""2" 1>&6; dbfunc=db_open
|
|
|
11233 else
|
|
|
11234 rm -rf conftest*
|
|
|
11235 echo "$ac_t""1" 1>&6; dbfunc=dbopen
|
|
|
11236 fi
|
|
|
11237 rm -f conftest*
|
|
|
11238
|
|
|
11239 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
|
321
|
11240 echo "configure:11241: checking for $dbfunc" >&5
|
|
|
11241
|
|
|
11242 cat > conftest.$ac_ext <<EOF
|
|
|
11243 #line 11244 "configure"
|
|
298
|
11244 #include "confdefs.h"
|
|
149
|
11245 /* System header to define __stub macros and hopefully few prototypes,
|
|
298
|
11246 which can conflict with char $dbfunc(); below. */
|
|
149
|
11247 #include <assert.h>
|
|
|
11248 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11249 /* We use char because int might match the return type of a gcc2
|
|
|
11250 builtin and then its argument prototype would still apply. */
|
|
298
|
11251 char $dbfunc();
|
|
149
|
11252
|
|
|
11253 int main() {
|
|
|
11254
|
|
0
|
11255 /* The GNU C library defines this for functions which it implements
|
|
|
11256 to always fail with ENOSYS. Some functions are actually named
|
|
|
11257 something starting with __ and the normal name is an alias. */
|
|
298
|
11258 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
|
0
|
11259 choke me
|
|
|
11260 #else
|
|
298
|
11261 $dbfunc();
|
|
0
|
11262 #endif
|
|
149
|
11263
|
|
0
|
11264 ; return 0; }
|
|
|
11265 EOF
|
|
321
|
11266 if { (eval echo configure:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
298
|
11267 rm -rf conftest*
|
|
|
11268 eval "ac_cv_func_$dbfunc=yes"
|
|
|
11269 else
|
|
|
11270 echo "configure: failed program was:" >&5
|
|
|
11271 cat conftest.$ac_ext >&5
|
|
|
11272 rm -rf conftest*
|
|
|
11273 eval "ac_cv_func_$dbfunc=no"
|
|
|
11274 fi
|
|
|
11275 rm -f conftest*
|
|
|
11276
|
|
|
11277 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
|
149
|
11278 echo "$ac_t""yes" 1>&6
|
|
|
11279 with_database_berkdb=yes need_libdb=no
|
|
|
11280 else
|
|
|
11281 echo "$ac_t""no" 1>&6
|
|
298
|
11282
|
|
|
11283
|
|
|
11284 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
|
321
|
11285 echo "configure:11286: checking for $dbfunc in -ldb" >&5
|
|
298
|
11286 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
|
149
|
11287
|
|
|
11288 xe_check_libs=" -ldb "
|
|
|
11289 cat > conftest.$ac_ext <<EOF
|
|
321
|
11290 #line 11291 "configure"
|
|
149
|
11291 #include "confdefs.h"
|
|
0
|
11292 /* Override any gcc2 internal prototype to avoid an error. */
|
|
149
|
11293 /* We use char because int might match the return type of a gcc2
|
|
|
11294 builtin and then its argument prototype would still apply. */
|
|
298
|
11295 char $dbfunc();
|
|
|
11296
|
|
|
11297 int main() {
|
|
|
11298 $dbfunc()
|
|
|
11299 ; return 0; }
|
|
|
11300 EOF
|
|
321
|
11301 if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
11302 rm -rf conftest*
|
|
|
11303 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11304 else
|
|
|
11305 echo "configure: failed program was:" >&5
|
|
|
11306 cat conftest.$ac_ext >&5
|
|
|
11307 rm -rf conftest*
|
|
|
11308 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11309 fi
|
|
|
11310 rm -f conftest*
|
|
|
11311 xe_check_libs=""
|
|
|
11312
|
|
151
|
11313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
11314 echo "$ac_t""yes" 1>&6
|
|
|
11315 with_database_berkdb=yes need_libdb=yes
|
|
|
11316 else
|
|
|
11317 echo "$ac_t""no" 1>&6
|
|
298
|
11318 fi
|
|
|
11319
|
|
|
11320
|
|
|
11321 fi
|
|
|
11322
|
|
|
11323 fi
|
|
|
11324
|
|
149
|
11325 if test "$with_database_berkdb" = "yes"; then
|
|
|
11326 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
11327 Defining DB_H_PATH = "$db_h_path"
|
|
|
11328 EOF
|
|
|
11329 cat >> confdefs.h <<EOF
|
|
|
11330 #define DB_H_PATH "$db_h_path"
|
|
|
11331 EOF
|
|
|
11332 }
|
|
|
11333
|
|
|
11334 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11335 Defining HAVE_BERKELEY_DB
|
|
|
11336 EOF
|
|
|
11337 cat >> confdefs.h <<\EOF
|
|
|
11338 #define HAVE_BERKELEY_DB 1
|
|
|
11339 EOF
|
|
|
11340 }
|
|
|
11341
|
|
151
|
11342 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
|
149
|
11343 else with_database_berkdb=no
|
|
|
11344 fi
|
|
|
11345 fi
|
|
|
11346
|
|
272
|
11347 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
|
|
|
11348 != "no no no"; then
|
|
149
|
11349 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11350 Defining HAVE_DATABASE
|
|
|
11351 EOF
|
|
|
11352 cat >> confdefs.h <<\EOF
|
|
|
11353 #define HAVE_DATABASE 1
|
|
|
11354 EOF
|
|
|
11355 }
|
|
|
11356
|
|
151
|
11357 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
|
|
|
11358 echo " xemacs will be linked with \"database.o\""
|
|
|
11359 fi
|
|
149
|
11360 fi
|
|
|
11361
|
|
|
11362 if test "$with_socks" = "yes"; then
|
|
|
11363
|
|
|
11364 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
|
321
|
11365 echo "configure:11366: checking for SOCKSinit in -lsocks" >&5
|
|
149
|
11366 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
|
11367
|
|
|
11368 xe_check_libs=" -lsocks "
|
|
|
11369 cat > conftest.$ac_ext <<EOF
|
|
321
|
11370 #line 11371 "configure"
|
|
149
|
11371 #include "confdefs.h"
|
|
|
11372 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11373 /* We use char because int might match the return type of a gcc2
|
|
|
11374 builtin and then its argument prototype would still apply. */
|
|
|
11375 char SOCKSinit();
|
|
|
11376
|
|
|
11377 int main() {
|
|
|
11378 SOCKSinit()
|
|
|
11379 ; return 0; }
|
|
|
11380 EOF
|
|
321
|
11381 if { (eval echo configure:11382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
149
|
11382 rm -rf conftest*
|
|
|
11383 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11384 else
|
|
|
11385 echo "configure: failed program was:" >&5
|
|
|
11386 cat conftest.$ac_ext >&5
|
|
|
11387 rm -rf conftest*
|
|
|
11388 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11389 fi
|
|
|
11390 rm -f conftest*
|
|
|
11391 xe_check_libs=""
|
|
|
11392
|
|
151
|
11393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
149
|
11394 echo "$ac_t""yes" 1>&6
|
|
|
11395 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
11396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
11397 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
11398 Defining $ac_tr_lib
|
|
|
11399 EOF
|
|
|
11400 cat >> confdefs.h <<EOF
|
|
|
11401 #define $ac_tr_lib 1
|
|
|
11402 EOF
|
|
|
11403 }
|
|
|
11404
|
|
151
|
11405 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
|
149
|
11406
|
|
|
11407 else
|
|
|
11408 echo "$ac_t""no" 1>&6
|
|
|
11409 fi
|
|
|
11410
|
|
|
11411
|
|
|
11412 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11413 Defining HAVE_SOCKS
|
|
|
11414 EOF
|
|
|
11415 cat >> confdefs.h <<\EOF
|
|
|
11416 #define HAVE_SOCKS 1
|
|
|
11417 EOF
|
|
|
11418 }
|
|
|
11419
|
|
|
11420 fi
|
|
|
11421
|
|
|
11422 if test "$usage_tracking" = "yes"; then
|
|
|
11423 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11424 Defining USAGE_TRACKING
|
|
|
11425 EOF
|
|
|
11426 cat >> confdefs.h <<\EOF
|
|
|
11427 #define USAGE_TRACKING 1
|
|
|
11428 EOF
|
|
|
11429 }
|
|
|
11430
|
|
151
|
11431 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
|
149
|
11432 fi
|
|
|
11433
|
|
321
|
11434 test -z "$with_shlib" && test "$opsys $machine" = "cygwin32 intel386" && with_shlib=no
|
|
|
11435
|
|
265
|
11436 for ac_hdr in dlfcn.h
|
|
|
11437 do
|
|
|
11438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
11439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
321
|
11440 echo "configure:11441: checking for $ac_hdr" >&5
|
|
|
11441
|
|
|
11442 cat > conftest.$ac_ext <<EOF
|
|
|
11443 #line 11444 "configure"
|
|
265
|
11444 #include "confdefs.h"
|
|
|
11445 #include <$ac_hdr>
|
|
261
|
11446 EOF
|
|
|
11447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
321
|
11448 { (eval echo configure:11449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
261
|
11449 ac_err=`grep -v '^ *+' conftest.out`
|
|
|
11450 if test -z "$ac_err"; then
|
|
|
11451 rm -rf conftest*
|
|
|
11452 eval "ac_cv_header_$ac_safe=yes"
|
|
|
11453 else
|
|
|
11454 echo "$ac_err" >&5
|
|
|
11455 echo "configure: failed program was:" >&5
|
|
|
11456 cat conftest.$ac_ext >&5
|
|
|
11457 rm -rf conftest*
|
|
|
11458 eval "ac_cv_header_$ac_safe=no"
|
|
|
11459 fi
|
|
|
11460 rm -f conftest*
|
|
|
11461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
11462 echo "$ac_t""yes" 1>&6
|
|
265
|
11463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
11464 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
11465 Defining $ac_tr_hdr
|
|
|
11466 EOF
|
|
|
11467 cat >> confdefs.h <<EOF
|
|
|
11468 #define $ac_tr_hdr 1
|
|
|
11469 EOF
|
|
|
11470 }
|
|
|
11471 have_dlfcn=yes
|
|
|
11472 else
|
|
|
11473 echo "$ac_t""no" 1>&6
|
|
|
11474 fi
|
|
|
11475 done
|
|
|
11476
|
|
|
11477 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
|
261
|
11478 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
|
321
|
11479 echo "configure:11480: checking for dlopen in -ldl" >&5
|
|
261
|
11480 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
11481
|
|
|
11482 xe_check_libs=" -ldl "
|
|
|
11483 cat > conftest.$ac_ext <<EOF
|
|
321
|
11484 #line 11485 "configure"
|
|
261
|
11485 #include "confdefs.h"
|
|
|
11486 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11487 /* We use char because int might match the return type of a gcc2
|
|
|
11488 builtin and then its argument prototype would still apply. */
|
|
|
11489 char dlopen();
|
|
|
11490
|
|
|
11491 int main() {
|
|
|
11492 dlopen()
|
|
|
11493 ; return 0; }
|
|
|
11494 EOF
|
|
321
|
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
265
|
11496 rm -rf conftest*
|
|
|
11497 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11498 else
|
|
|
11499 echo "configure: failed program was:" >&5
|
|
|
11500 cat conftest.$ac_ext >&5
|
|
|
11501 rm -rf conftest*
|
|
|
11502 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11503 fi
|
|
|
11504 rm -f conftest*
|
|
|
11505 xe_check_libs=""
|
|
|
11506
|
|
|
11507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
11508 echo "$ac_t""yes" 1>&6
|
|
|
11509 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11510 Defining HAVE_DLOPEN
|
|
|
11511 EOF
|
|
|
11512 cat >> confdefs.h <<\EOF
|
|
|
11513 #define HAVE_DLOPEN 1
|
|
|
11514 EOF
|
|
|
11515 }
|
|
|
11516 DLL_LIB=dl; with_shlib=yes
|
|
|
11517 else
|
|
|
11518 echo "$ac_t""no" 1>&6
|
|
|
11519 fi
|
|
|
11520
|
|
|
11521 }
|
|
|
11522 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
|
|
11523 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
|
|
321
|
11524 echo "configure:11525: checking for _dlopen in -lc" >&5
|
|
265
|
11525 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
|
|
|
11526
|
|
|
11527 xe_check_libs=" -lc "
|
|
|
11528 cat > conftest.$ac_ext <<EOF
|
|
321
|
11529 #line 11530 "configure"
|
|
265
|
11530 #include "confdefs.h"
|
|
|
11531 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11532 /* We use char because int might match the return type of a gcc2
|
|
|
11533 builtin and then its argument prototype would still apply. */
|
|
|
11534 char _dlopen();
|
|
|
11535
|
|
|
11536 int main() {
|
|
|
11537 _dlopen()
|
|
|
11538 ; return 0; }
|
|
|
11539 EOF
|
|
321
|
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
265
|
11541 rm -rf conftest*
|
|
|
11542 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11543 else
|
|
|
11544 echo "configure: failed program was:" >&5
|
|
|
11545 cat conftest.$ac_ext >&5
|
|
|
11546 rm -rf conftest*
|
|
|
11547 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11548 fi
|
|
|
11549 rm -f conftest*
|
|
|
11550 xe_check_libs=""
|
|
|
11551
|
|
|
11552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
11553 echo "$ac_t""yes" 1>&6
|
|
|
11554 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11555 Defining HAVE_DLOPEN
|
|
|
11556 EOF
|
|
|
11557 cat >> confdefs.h <<\EOF
|
|
|
11558 #define HAVE_DLOPEN 1
|
|
|
11559 EOF
|
|
|
11560 }
|
|
|
11561 DLL_LIB=; with_shlib=yes
|
|
|
11562 else
|
|
|
11563 echo "$ac_t""no" 1>&6
|
|
|
11564 fi
|
|
|
11565
|
|
|
11566 }
|
|
|
11567 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
|
|
11568 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
|
321
|
11569 echo "configure:11570: checking for dlopen in -lc" >&5
|
|
265
|
11570 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
11571
|
|
|
11572 xe_check_libs=" -lc "
|
|
|
11573 cat > conftest.$ac_ext <<EOF
|
|
321
|
11574 #line 11575 "configure"
|
|
265
|
11575 #include "confdefs.h"
|
|
|
11576 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11577 /* We use char because int might match the return type of a gcc2
|
|
|
11578 builtin and then its argument prototype would still apply. */
|
|
|
11579 char dlopen();
|
|
|
11580
|
|
|
11581 int main() {
|
|
|
11582 dlopen()
|
|
|
11583 ; return 0; }
|
|
|
11584 EOF
|
|
321
|
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
261
|
11586 rm -rf conftest*
|
|
|
11587 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11588 else
|
|
|
11589 echo "configure: failed program was:" >&5
|
|
|
11590 cat conftest.$ac_ext >&5
|
|
|
11591 rm -rf conftest*
|
|
|
11592 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11593 fi
|
|
|
11594 rm -f conftest*
|
|
|
11595 xe_check_libs=""
|
|
|
11596
|
|
|
11597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
11598 echo "$ac_t""yes" 1>&6
|
|
265
|
11599 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11600 Defining HAVE_DLOPEN
|
|
|
11601 EOF
|
|
|
11602 cat >> confdefs.h <<\EOF
|
|
|
11603 #define HAVE_DLOPEN 1
|
|
|
11604 EOF
|
|
|
11605 }
|
|
|
11606 DLL_LIB=; with_shlib=yes
|
|
|
11607 else
|
|
|
11608 echo "$ac_t""no" 1>&6
|
|
|
11609 fi
|
|
|
11610
|
|
|
11611 }
|
|
|
11612 test -z "$with_shlib" && {
|
|
|
11613 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
|
321
|
11614 echo "configure:11615: checking for shl_load in -ldld" >&5
|
|
265
|
11615 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
|
11616
|
|
|
11617 xe_check_libs=" -ldld "
|
|
|
11618 cat > conftest.$ac_ext <<EOF
|
|
321
|
11619 #line 11620 "configure"
|
|
263
|
11620 #include "confdefs.h"
|
|
|
11621 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11622 /* We use char because int might match the return type of a gcc2
|
|
|
11623 builtin and then its argument prototype would still apply. */
|
|
265
|
11624 char shl_load();
|
|
|
11625
|
|
|
11626 int main() {
|
|
|
11627 shl_load()
|
|
|
11628 ; return 0; }
|
|
|
11629 EOF
|
|
321
|
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
265
|
11631 rm -rf conftest*
|
|
|
11632 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11633 else
|
|
|
11634 echo "configure: failed program was:" >&5
|
|
|
11635 cat conftest.$ac_ext >&5
|
|
|
11636 rm -rf conftest*
|
|
|
11637 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11638 fi
|
|
|
11639 rm -f conftest*
|
|
|
11640 xe_check_libs=""
|
|
|
11641
|
|
|
11642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
11643 echo "$ac_t""yes" 1>&6
|
|
|
11644 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11645 Defining HAVE_SHL_LOAD
|
|
|
11646 EOF
|
|
|
11647 cat >> confdefs.h <<\EOF
|
|
|
11648 #define HAVE_SHL_LOAD 1
|
|
|
11649 EOF
|
|
|
11650 }
|
|
|
11651 DLL_LIB=dld; with_shlib=yes
|
|
|
11652 else
|
|
|
11653 echo "$ac_t""no" 1>&6
|
|
|
11654 fi
|
|
|
11655
|
|
|
11656 }
|
|
|
11657 test -z "$with_shlib" && {
|
|
|
11658 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
|
321
|
11659 echo "configure:11660: checking for dld_init in -ldld" >&5
|
|
265
|
11660 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
|
|
11661
|
|
|
11662 xe_check_libs=" -ldld "
|
|
|
11663 cat > conftest.$ac_ext <<EOF
|
|
321
|
11664 #line 11665 "configure"
|
|
265
|
11665 #include "confdefs.h"
|
|
|
11666 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11667 /* We use char because int might match the return type of a gcc2
|
|
|
11668 builtin and then its argument prototype would still apply. */
|
|
|
11669 char dld_init();
|
|
|
11670
|
|
|
11671 int main() {
|
|
|
11672 dld_init()
|
|
|
11673 ; return 0; }
|
|
|
11674 EOF
|
|
321
|
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
263
|
11676 rm -rf conftest*
|
|
|
11677 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
11678 else
|
|
|
11679 echo "configure: failed program was:" >&5
|
|
|
11680 cat conftest.$ac_ext >&5
|
|
|
11681 rm -rf conftest*
|
|
|
11682 eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
11683 fi
|
|
|
11684 rm -f conftest*
|
|
|
11685 xe_check_libs=""
|
|
|
11686
|
|
|
11687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
|
11688 echo "$ac_t""yes" 1>&6
|
|
265
|
11689 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11690 Defining HAVE_DLD_INIT
|
|
|
11691 EOF
|
|
|
11692 cat >> confdefs.h <<\EOF
|
|
|
11693 #define HAVE_DLD_INIT 1
|
|
|
11694 EOF
|
|
|
11695 }
|
|
|
11696 DLL_LIB=dld; with_shlib=yes
|
|
|
11697 else
|
|
|
11698 echo "$ac_t""no" 1>&6
|
|
263
|
11699 fi
|
|
|
11700
|
|
261
|
11701 }
|
|
|
11702 if test "$with_shlib" = "yes"; then
|
|
|
11703 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11704 Defining HAVE_SHLIB
|
|
|
11705 EOF
|
|
|
11706 cat >> confdefs.h <<\EOF
|
|
|
11707 #define HAVE_SHLIB 1
|
|
|
11708 EOF
|
|
|
11709 }
|
|
|
11710
|
|
265
|
11711 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
|
|
|
11712 echo " xemacs will be linked with \"sysdll.o\""
|
|
|
11713 fi
|
|
|
11714 extra_objs="$extra_objs dll.o" && if test "$extra_verbose" = "yes"; then
|
|
|
11715 echo " xemacs will be linked with \"dll.o\""
|
|
261
|
11716 fi
|
|
265
|
11717 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
|
|
|
11718
|
|
|
11719 dll_ld="ld"
|
|
|
11720 dll_lflags="-shared"
|
|
|
11721 dll_cflags="-r"
|
|
|
11722 dll_oflags="-o "
|
|
|
11723
|
|
|
11724 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
|
|
321
|
11725 echo "configure:11726: checking how to build a shared library" >&5
|
|
265
|
11726 case `uname -rs` in
|
|
|
11727 UNIX_SV*|UNIX_System_V*)
|
|
|
11728 dll_lflags="-G"
|
|
|
11729 dll_cflags=-Kpic
|
|
|
11730 dll_ld="ld"
|
|
|
11731 ;;
|
|
|
11732 BSD/OS*)
|
|
|
11733 dll_cflags=
|
|
|
11734 dll_lflags="-r"
|
|
|
11735 dll_ld="shlicc2"
|
|
|
11736 ;;
|
|
|
11737 FreeBSD*2*)
|
|
|
11738 dll_lflags="-Bshareable"
|
|
|
11739 dll_cflags="-fPIC -DPIC"
|
|
|
11740 dll_ld=ld
|
|
|
11741 ;;
|
|
|
11742 SunOS*4.*)
|
|
|
11743 dll_cflags="-P"
|
|
|
11744 dll_lflags="-dp -assert pure-text -assert nodefinitions"
|
|
|
11745 ;;
|
|
|
11746 SunOS*5.*)
|
|
|
11747 dll_ld="cc"
|
|
|
11748 dll_cflags="-KPIC"
|
|
|
11749 dll_lflags="-G"
|
|
|
11750 dll_oflags="-W0,-y-o -W0,-y"
|
|
|
11751 ;;
|
|
|
11752 IRIX*5.*|IRIX*6.*)
|
|
|
11753 dll_cflags="-KPIC"
|
|
|
11754 ;;
|
|
|
11755 OSF1*)
|
|
|
11756 ;;
|
|
|
11757 HP-UX*)
|
|
|
11758 dll_ld="ld"
|
|
|
11759 dll_lflags="-b"
|
|
|
11760 dll_cflags="+z"
|
|
|
11761 ;;
|
|
|
11762 SCO_SV*)
|
|
|
11763 dll_ld="ld"
|
|
|
11764 dll_lflags="-G"
|
|
|
11765 dll_cflags="-Kpic"
|
|
|
11766 ;;
|
|
|
11767 AIX*)
|
|
|
11768 dll_lflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:\${@:.ell=.exp} -b noentry -lc"
|
|
|
11769 dll_ld="ld"
|
|
|
11770 ;;
|
|
|
11771 *)
|
|
|
11772 ;;
|
|
|
11773 esac
|
|
|
11774
|
|
|
11775 if test "$GCC" = "yes" ; then
|
|
|
11776 dll_cflags="-fPIC"
|
|
|
11777 case `uname -rs` in
|
|
|
11778 SunOS*5.*)
|
|
|
11779 dll_ld="ld"
|
|
|
11780 dll_oflags="-o "
|
|
|
11781 dll_lflags="-G"
|
|
|
11782 ;;
|
|
|
11783 SCO_SV*)
|
|
|
11784 dll_ld="ld"
|
|
|
11785 dll_lflags="-G"
|
|
|
11786 dll_cflags="-b elf"
|
|
|
11787 ;;
|
|
|
11788 FreeBSD*)
|
|
|
11789 dll_cflags="-DDLSYM_NEEDS_UNDERSCORE -DPIC -fPIC"
|
|
|
11790 dll_lflags="-Bshareable"
|
|
|
11791 dll_ld=ld
|
|
|
11792 ;;
|
|
|
11793 BSD/OS*)
|
|
|
11794 dll_cflags=
|
|
|
11795 dll_lflags="-r"
|
|
|
11796 dll_ld="shlicc2"
|
|
|
11797 ;;
|
|
|
11798 UNIX_SV*)
|
|
|
11799 dll_cflags="-fPIC"
|
|
|
11800 ;;
|
|
|
11801 *)
|
|
|
11802 dll_ld="$CC"
|
|
|
11803 dll_lflags="-shared"
|
|
|
11804 esac
|
|
|
11805 fi
|
|
|
11806
|
|
|
11807 echo "$ac_t"""lflags: $dll_lflags cflags: $dll_cflags"" 1>&6
|
|
|
11808
|
|
|
11809
|
|
|
11810
|
|
|
11811
|
|
|
11812
|
|
276
|
11813 for ac_func in dlerror
|
|
|
11814 do
|
|
|
11815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
321
|
11816 echo "configure:11817: checking for $ac_func" >&5
|
|
|
11817
|
|
|
11818 cat > conftest.$ac_ext <<EOF
|
|
|
11819 #line 11820 "configure"
|
|
276
|
11820 #include "confdefs.h"
|
|
|
11821 /* System header to define __stub macros and hopefully few prototypes,
|
|
|
11822 which can conflict with char $ac_func(); below. */
|
|
|
11823 #include <assert.h>
|
|
|
11824 /* Override any gcc2 internal prototype to avoid an error. */
|
|
|
11825 /* We use char because int might match the return type of a gcc2
|
|
|
11826 builtin and then its argument prototype would still apply. */
|
|
|
11827 char $ac_func();
|
|
|
11828
|
|
|
11829 int main() {
|
|
|
11830
|
|
|
11831 /* The GNU C library defines this for functions which it implements
|
|
|
11832 to always fail with ENOSYS. Some functions are actually named
|
|
|
11833 something starting with __ and the normal name is an alias. */
|
|
|
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
|
11835 choke me
|
|
|
11836 #else
|
|
|
11837 $ac_func();
|
|
|
11838 #endif
|
|
|
11839
|
|
|
11840 ; return 0; }
|
|
|
11841 EOF
|
|
321
|
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
|
276
|
11843 rm -rf conftest*
|
|
|
11844 eval "ac_cv_func_$ac_func=yes"
|
|
|
11845 else
|
|
|
11846 echo "configure: failed program was:" >&5
|
|
|
11847 cat conftest.$ac_ext >&5
|
|
|
11848 rm -rf conftest*
|
|
|
11849 eval "ac_cv_func_$ac_func=no"
|
|
|
11850 fi
|
|
|
11851 rm -f conftest*
|
|
|
11852
|
|
|
11853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
|
11854 echo "$ac_t""yes" 1>&6
|
|
|
11855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
11856 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
11857 Defining $ac_tr_func
|
|
|
11858 EOF
|
|
|
11859 cat >> confdefs.h <<EOF
|
|
|
11860 #define $ac_tr_func 1
|
|
|
11861 EOF
|
|
|
11862 }
|
|
|
11863
|
|
|
11864 else
|
|
|
11865 echo "$ac_t""no" 1>&6
|
|
|
11866 fi
|
|
|
11867 done
|
|
|
11868
|
|
263
|
11869 ld_dynamic_link_flags=
|
|
|
11870 case "$opsys" in
|
|
267
|
11871 hpux*) ld_dynamic_link_flags="-Wl,-E" ;;
|
|
263
|
11872 linux*) ld_dynamic_link_flags="-rdynamic" ;;
|
|
|
11873 *) ;;
|
|
|
11874 esac
|
|
|
11875 fi
|
|
|
11876
|
|
272
|
11877 cat > conftest.$ac_ext <<EOF
|
|
321
|
11878 #line 11879 "configure"
|
|
272
|
11879 #include "confdefs.h"
|
|
|
11880 int main(int c,char *v[]){return 0;}
|
|
|
11881 EOF
|
|
321
|
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
272
|
11883 then
|
|
|
11884 :
|
|
|
11885 else
|
|
306
|
11886 conftest_rc="$?"
|
|
272
|
11887 echo "configure: failed program was:" >&5
|
|
|
11888 cat conftest.$ac_ext >&5
|
|
|
11889 rm -fr conftest*
|
|
|
11890
|
|
|
11891 echo ""
|
|
|
11892 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
|
11893 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
|
11894 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
|
11895 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
|
11896 echo "*** PANIC *** found at run time."
|
|
|
11897 echo "*** PANIC ***"
|
|
|
11898 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
|
11899 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
|
11900 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
|
11901 echo "*** PANIC ***"
|
|
|
11902 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
|
11903 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
|
11904 echo "*** PANIC *** on your system. Don't do that."
|
|
|
11905 exit 1
|
|
|
11906 fi
|
|
|
11907 rm -fr conftest*
|
|
|
11908
|
|
263
|
11909
|
|
|
11910 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
11911 Defining HAVE_UNIX_PROCESSES
|
|
|
11912 EOF
|
|
|
11913 cat >> confdefs.h <<\EOF
|
|
|
11914 #define HAVE_UNIX_PROCESSES 1
|
|
|
11915 EOF
|
|
|
11916 }
|
|
|
11917
|
|
|
11918 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
|
|
|
11919 echo " xemacs will be linked with \"process-unix.o\""
|
|
|
11920 fi
|
|
261
|
11921
|
|
155
|
11922
|
|
|
11923
|
|
|
11924 T=""
|
|
175
|
11925 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11926 CFLAGS="$T"
|
|
|
11927
|
|
|
11928
|
|
|
11929 T=""
|
|
155
|
11930 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11931 extra_objs="$T"
|
|
|
11932
|
|
|
11933
|
|
|
11934 T=""
|
|
|
11935 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
|
|
|
11936 c_switch_general="$T"
|
|
|
11937
|
|
|
11938
|
|
|
11939 T=""
|
|
|
11940 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11941 c_switch_window_system="$T"
|
|
|
11942
|
|
|
11943
|
|
|
11944 T=""
|
|
|
11945 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11946 c_switch_all="$T"
|
|
|
11947
|
|
|
11948
|
|
|
11949 T=""
|
|
|
11950 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
|
|
|
11951 ld_switch_general="$T"
|
|
|
11952
|
|
|
11953
|
|
|
11954 T=""
|
|
|
11955 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11956 ld_switch_window_system="$T"
|
|
|
11957
|
|
|
11958
|
|
|
11959 T=""
|
|
|
11960 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11961 ld_switch_all="$T"
|
|
|
11962
|
|
|
11963
|
|
|
11964 T=""
|
|
|
11965 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11966 ld_libs_general="$T"
|
|
|
11967
|
|
|
11968
|
|
|
11969 T=""
|
|
|
11970 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
|
|
|
11971 ld_libs_window_system="$T"
|
|
|
11972
|
|
|
11973
|
|
|
11974 T=""
|
|
|
11975 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11976 ld_libs_all="$T"
|
|
|
11977
|
|
149
|
11978
|
|
151
|
11979
|
|
|
11980 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
|
149
|
11981 internal_makefile_list="Makefile"
|
|
|
11982 SUBDIR_MAKEFILES=''
|
|
151
|
11983 test -d lock || mkdir lock
|
|
149
|
11984 for dir in $MAKE_SUBDIR; do
|
|
167
|
11985 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
|
11986 test -d "$d" || mkdir "$d"; cd "$d"
|
|
|
11987 done ) ;;
|
|
|
11988 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
|
11989 esac
|
|
155
|
11990
|
|
|
11991 T=""
|
|
|
11992 for W in $SUBDIR_MAKEFILES $dir/Makefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11993 SUBDIR_MAKEFILES="$T"
|
|
|
11994
|
|
|
11995
|
|
|
11996 T=""
|
|
|
11997 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
11998 internal_makefile_list="$T"
|
|
|
11999
|
|
149
|
12000 done
|
|
|
12001
|
|
|
12002
|
|
|
12003
|
|
167
|
12004
|
|
157
|
12005 for dir in src/s src/m; do
|
|
|
12006 if test ! -d "$dir" ; then
|
|
|
12007 echo Making symbolic link to "$srcdir/$dir"
|
|
|
12008 ${LN_S} "$srcdir/$dir" "$dir"
|
|
|
12009 fi
|
|
|
12010 done
|
|
|
12011
|
|
149
|
12012 if test "$extra_verbose" = "yes"; then
|
|
151
|
12013 echo ""
|
|
163
|
12014 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
|
12015 echo ""
|
|
|
12016 fi
|
|
|
12017
|
|
151
|
12018 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
|
|
153
|
12019 echo "creating src/gdbinit"; echo ""
|
|
151
|
12020 echo "source $srcdir/src/gdbinit" > src/gdbinit
|
|
|
12021 fi
|
|
|
12022
|
|
306
|
12023 if test "$__SUNPRO_C" = "yes"; then
|
|
153
|
12024 echo "creating .sbinit"; echo ""
|
|
157
|
12025 ( echo "# For use with Sun WorkShop's Source browser."
|
|
|
12026 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
|
12027 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
|
12028 ) > .sbinit
|
|
|
12029 fi
|
|
151
|
12030
|
|
|
12031 rm -f core
|
|
|
12032
|
|
149
|
12033
|
|
|
12034
|
|
|
12035
|
|
|
12036
|
|
|
12037
|
|
|
12038
|
|
|
12039
|
|
|
12040
|
|
|
12041
|
|
|
12042
|
|
|
12043
|
|
|
12044
|
|
|
12045
|
|
|
12046
|
|
280
|
12047
|
|
278
|
12048 PREFIX=$prefix
|
|
|
12049 while true; do
|
|
|
12050 case "$PREFIX" in
|
|
|
12051 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
|
12052 *) break ;;
|
|
|
12053 esac
|
|
|
12054 done
|
|
|
12055
|
|
|
12056
|
|
|
12057
|
|
|
12058 EXEC_PREFIX=$exec_prefix
|
|
|
12059 while true; do
|
|
|
12060 case "$EXEC_PREFIX" in
|
|
|
12061 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
|
12062 *) break ;;
|
|
|
12063 esac
|
|
|
12064 done
|
|
|
12065
|
|
149
|
12066
|
|
|
12067
|
|
|
12068
|
|
274
|
12069 INFODIR=$infodir
|
|
|
12070 while true; do
|
|
|
12071 case "$INFODIR" in
|
|
|
12072 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
|
12073 *) break ;;
|
|
|
12074 esac
|
|
|
12075 done
|
|
|
12076
|
|
|
12077
|
|
|
12078
|
|
|
12079
|
|
|
12080 INFOPATH=$infopath
|
|
|
12081 while true; do
|
|
|
12082 case "$INFOPATH" in
|
|
|
12083 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
|
12084 *) break ;;
|
|
|
12085 esac
|
|
|
12086 done
|
|
|
12087
|
|
|
12088
|
|
|
12089
|
|
|
12090
|
|
|
12091 PACKAGE_PATH=$package_path
|
|
|
12092 while true; do
|
|
|
12093 case "$PACKAGE_PATH" in
|
|
|
12094 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
|
12095 *) break ;;
|
|
|
12096 esac
|
|
|
12097 done
|
|
|
12098
|
|
|
12099
|
|
|
12100
|
|
|
12101
|
|
|
12102 LISPDIR=$lispdir
|
|
|
12103 while true; do
|
|
|
12104 case "$LISPDIR" in
|
|
|
12105 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
|
12106 *) break ;;
|
|
|
12107 esac
|
|
|
12108 done
|
|
|
12109
|
|
|
12110
|
|
|
12111
|
|
|
12112
|
|
|
12113
|
|
|
12114 ETCDIR=$etcdir
|
|
|
12115 while true; do
|
|
|
12116 case "$ETCDIR" in
|
|
|
12117 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
|
12118 *) break ;;
|
|
|
12119 esac
|
|
|
12120 done
|
|
|
12121
|
|
|
12122
|
|
|
12123
|
|
|
12124
|
|
|
12125 LOCKDIR=$lockdir
|
|
|
12126 while true; do
|
|
|
12127 case "$LOCKDIR" in
|
|
|
12128 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
|
|
|
12129 *) break ;;
|
|
|
12130 esac
|
|
|
12131 done
|
|
|
12132
|
|
|
12133
|
|
|
12134
|
|
|
12135
|
|
|
12136 ARCHLIBDIR=$archlibdir
|
|
|
12137 while true; do
|
|
|
12138 case "$ARCHLIBDIR" in
|
|
|
12139 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
|
12140 *) break ;;
|
|
|
12141 esac
|
|
|
12142 done
|
|
149
|
12143
|
|
|
12144
|
|
|
12145
|
|
|
12146
|
|
|
12147
|
|
|
12148
|
|
|
12149
|
|
|
12150
|
|
|
12151
|
|
|
12152
|
|
|
12153
|
|
|
12154
|
|
|
12155
|
|
|
12156
|
|
|
12157
|
|
|
12158
|
|
203
|
12159
|
|
207
|
12160
|
|
263
|
12161
|
|
267
|
12162
|
|
|
12163
|
|
173
|
12164 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
|
12165
|
|
|
12166
|
|
|
12167
|
|
|
12168
|
|
|
12169
|
|
|
12170
|
|
|
12171
|
|
267
|
12172 # The default is yes
|
|
|
12173 if test "$with_site_lisp" = "no"; then
|
|
|
12174 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12175 Defining INHIBIT_SITE_LISP
|
|
|
12176 EOF
|
|
|
12177 cat >> confdefs.h <<\EOF
|
|
|
12178 #define INHIBIT_SITE_LISP 1
|
|
|
12179 EOF
|
|
|
12180 }
|
|
|
12181
|
|
|
12182 fi
|
|
155
|
12183
|
|
207
|
12184
|
|
|
12185 T=""
|
|
|
12186 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
|
12187 ac_configure_args="$T"
|
|
|
12188
|
|
149
|
12189 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12190 Defining EMACS_CONFIGURATION = "$canonical"
|
|
|
12191 EOF
|
|
|
12192 cat >> confdefs.h <<EOF
|
|
|
12193 #define EMACS_CONFIGURATION "$canonical"
|
|
|
12194 EOF
|
|
|
12195 }
|
|
|
12196
|
|
|
12197 { test "$extra_verbose" = "yes" && cat << EOF
|
|
207
|
12198 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
|
173
|
12199 EOF
|
|
|
12200 cat >> confdefs.h <<EOF
|
|
207
|
12201 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
|
173
|
12202 EOF
|
|
|
12203 }
|
|
|
12204
|
|
|
12205 { test "$extra_verbose" = "yes" && cat << EOF
|
|
149
|
12206 Defining config_machfile = "$machfile"
|
|
|
12207 EOF
|
|
|
12208 cat >> confdefs.h <<EOF
|
|
|
12209 #define config_machfile "$machfile"
|
|
|
12210 EOF
|
|
|
12211 }
|
|
|
12212
|
|
|
12213 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12214 Defining config_opsysfile = "$opsysfile"
|
|
|
12215 EOF
|
|
|
12216 cat >> confdefs.h <<EOF
|
|
|
12217 #define config_opsysfile "$opsysfile"
|
|
|
12218 EOF
|
|
|
12219 }
|
|
|
12220
|
|
|
12221
|
|
|
12222
|
|
|
12223 null_string=""
|
|
|
12224 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12225 Defining LD_SWITCH_X_SITE = $null_string
|
|
|
12226 EOF
|
|
|
12227 cat >> confdefs.h <<EOF
|
|
|
12228 #define LD_SWITCH_X_SITE $null_string
|
|
|
12229 EOF
|
|
|
12230 }
|
|
|
12231
|
|
|
12232 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12233 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
|
12234 EOF
|
|
|
12235 cat >> confdefs.h <<EOF
|
|
|
12236 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
|
12237 EOF
|
|
|
12238 }
|
|
|
12239
|
|
|
12240 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12241 Defining C_SWITCH_X_SITE = $null_string
|
|
|
12242 EOF
|
|
|
12243 cat >> confdefs.h <<EOF
|
|
|
12244 #define C_SWITCH_X_SITE $null_string
|
|
|
12245 EOF
|
|
|
12246 }
|
|
|
12247
|
|
|
12248 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12249 Defining LD_SWITCH_SITE = $null_string
|
|
|
12250 EOF
|
|
|
12251 cat >> confdefs.h <<EOF
|
|
|
12252 #define LD_SWITCH_SITE $null_string
|
|
|
12253 EOF
|
|
|
12254 }
|
|
|
12255
|
|
|
12256 { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12257 Defining C_SWITCH_SITE = $null_string
|
|
|
12258 EOF
|
|
|
12259 cat >> confdefs.h <<EOF
|
|
|
12260 #define C_SWITCH_SITE $null_string
|
|
|
12261 EOF
|
|
|
12262 }
|
|
|
12263
|
|
|
12264
|
|
|
12265
|
|
|
12266 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
|
12267 Defining RAW_PURESIZE = $puresize
|
|
|
12268 EOF
|
|
|
12269 cat >> confdefs.h <<EOF
|
|
|
12270 #define RAW_PURESIZE $puresize
|
|
|
12271 EOF
|
|
|
12272 }
|
|
|
12273
|
|
|
12274
|
|
181
|
12275 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
12276 Defining GNU_MALLOC
|
|
|
12277 EOF
|
|
|
12278 cat >> confdefs.h <<\EOF
|
|
|
12279 #define GNU_MALLOC 1
|
|
|
12280 EOF
|
|
|
12281 }
|
|
|
12282
|
|
181
|
12283 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
12284 Defining USE_SYSTEM_MALLOC
|
|
|
12285 EOF
|
|
|
12286 cat >> confdefs.h <<\EOF
|
|
|
12287 #define USE_SYSTEM_MALLOC 1
|
|
|
12288 EOF
|
|
|
12289 }
|
|
|
12290
|
|
181
|
12291 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
12292 Defining USE_DEBUG_MALLOC
|
|
|
12293 EOF
|
|
|
12294 cat >> confdefs.h <<\EOF
|
|
|
12295 #define USE_DEBUG_MALLOC 1
|
|
|
12296 EOF
|
|
|
12297 }
|
|
|
12298
|
|
181
|
12299 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
177
|
12300 Defining USE_SYSTEM_MALLOC
|
|
|
12301 EOF
|
|
|
12302 cat >> confdefs.h <<\EOF
|
|
|
12303 #define USE_SYSTEM_MALLOC 1
|
|
|
12304 EOF
|
|
|
12305 }
|
|
|
12306
|
|
149
|
12307 fi
|
|
|
12308 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12309 Defining I18N3
|
|
|
12310 EOF
|
|
|
12311 cat >> confdefs.h <<\EOF
|
|
|
12312 #define I18N3 1
|
|
|
12313 EOF
|
|
|
12314 }
|
|
|
12315
|
|
169
|
12316 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
149
|
12317 Defining USE_GCC
|
|
|
12318 EOF
|
|
|
12319 cat >> confdefs.h <<\EOF
|
|
|
12320 #define USE_GCC 1
|
|
|
12321 EOF
|
|
|
12322 }
|
|
|
12323
|
|
|
12324 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12325 Defining EXTERNAL_WIDGET
|
|
|
12326 EOF
|
|
|
12327 cat >> confdefs.h <<\EOF
|
|
|
12328 #define EXTERNAL_WIDGET 1
|
|
|
12329 EOF
|
|
|
12330 }
|
|
|
12331
|
|
|
12332 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12333 Defining USE_GNU_MAKE
|
|
|
12334 EOF
|
|
|
12335 cat >> confdefs.h <<\EOF
|
|
|
12336 #define USE_GNU_MAKE 1
|
|
|
12337 EOF
|
|
|
12338 }
|
|
|
12339
|
|
|
12340 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12341 Defining NO_DOC_FILE
|
|
|
12342 EOF
|
|
|
12343 cat >> confdefs.h <<\EOF
|
|
|
12344 #define NO_DOC_FILE 1
|
|
|
12345 EOF
|
|
|
12346 }
|
|
|
12347
|
|
|
12348 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12349 Defining QUANTIFY
|
|
|
12350 EOF
|
|
|
12351 cat >> confdefs.h <<\EOF
|
|
|
12352 #define QUANTIFY 1
|
|
|
12353 EOF
|
|
|
12354 }
|
|
|
12355
|
|
|
12356 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12357 Defining MAIL_USE_POP
|
|
|
12358 EOF
|
|
|
12359 cat >> confdefs.h <<\EOF
|
|
|
12360 #define MAIL_USE_POP 1
|
|
|
12361 EOF
|
|
|
12362 }
|
|
|
12363
|
|
|
12364 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12365 Defining KERBEROS
|
|
|
12366 EOF
|
|
|
12367 cat >> confdefs.h <<\EOF
|
|
|
12368 #define KERBEROS 1
|
|
|
12369 EOF
|
|
|
12370 }
|
|
|
12371
|
|
|
12372 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12373 Defining HESIOD
|
|
|
12374 EOF
|
|
|
12375 cat >> confdefs.h <<\EOF
|
|
|
12376 #define HESIOD 1
|
|
|
12377 EOF
|
|
|
12378 }
|
|
|
12379
|
|
272
|
12380 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
|
12381 Defining USE_UNION_TYPE
|
|
|
12382 EOF
|
|
|
12383 cat >> confdefs.h <<\EOF
|
|
|
12384 #define USE_UNION_TYPE 1
|
|
149
|
12385 EOF
|
|
0
|
12386 }
|
|
70
|
12387
|
|
|
12388
|
|
0
|
12389
|
|
118
|
12390 (
|
|
149
|
12391 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
|
12392 else
|
|
|
12393 echo "uname -a: `uname -a`"
|
|
|
12394 fi
|
|
|
12395 echo ""
|
|
|
12396 echo "$0 $quoted_arguments"
|
|
261
|
12397 ) > Installation
|
|
|
12398
|
|
|
12399 xemacs_betaname=""
|
|
|
12400 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
|
|
149
|
12401
|
|
116
|
12402 (
|
|
0
|
12403 echo "
|
|
|
12404
|
|
261
|
12405 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
|
|
149
|
12406
|
|
|
12407 Where should the build process find the source code? $srcdir
|
|
|
12408 What installation prefix should install use? $prefix
|
|
0
|
12409 What operating system and machine description files should XEmacs use?
|
|
149
|
12410 \`$opsysfile' and \`$machfile'
|
|
|
12411 What compiler should XEmacs be built with? $CC $CFLAGS
|
|
0
|
12412 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
|
149
|
12413 Should XEmacs use the relocating allocator for buffers? $rel_alloc
|
|
|
12414 What window system should XEmacs use? ${window_system}"
|
|
|
12415 if test "$with_x11" = "yes"; then
|
|
|
12416 echo " Where do we find X Windows header files? $x_includes"
|
|
|
12417 echo " Where do we find X Windows libraries? $x_libraries"
|
|
|
12418 fi
|
|
70
|
12419 if test -n "$site_includes"; then
|
|
149
|
12420 echo " Additional header files: $site_includes"
|
|
|
12421 fi
|
|
|
12422 if test -n "$site_libraries"; then
|
|
|
12423 echo " Additional libraries: $site_libraries"
|
|
|
12424 fi
|
|
209
|
12425 if test -n "$site_prefixes"; then
|
|
|
12426 echo " Additional prefixes: $site_prefixes"
|
|
|
12427 fi
|
|
149
|
12428 if test -n "$runpath"; then
|
|
|
12429 echo " Runtime library search path: $runpath"
|
|
0
|
12430 fi
|
|
136
|
12431 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
116
|
12432 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
|
12433 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
|
149
|
12434 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
116
|
12435 echo " No Xmu; substituting equivalent routines."
|
|
|
12436 fi
|
|
149
|
12437
|
|
153
|
12438 if test "$with_xpm" = yes; then
|
|
151
|
12439 echo " Compiling in support for XPM images."
|
|
175
|
12440 elif test "$with_x11" = yes; then
|
|
151
|
12441 echo " --------------------------------------------------------------------"
|
|
|
12442 echo " WARNING: Compiling without XPM support."
|
|
310
|
12443 if test "$xpm_problem" != ""; then
|
|
|
12444 echo " Reason: $xpm_problem"
|
|
|
12445 fi
|
|
308
|
12446 echo " WARNING: You should strongly consider installing XPM."
|
|
151
|
12447 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
|
310
|
12448 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
|
308
|
12449 echo " --------------------------------------------------------------------"
|
|
|
12450 fi
|
|
|
12451 if test "$with_png" = yes; then
|
|
|
12452 echo " Compiling in support for PNG image handling."
|
|
310
|
12453 elif test "$window_system" != "none"; then
|
|
308
|
12454 echo " --------------------------------------------------------------------"
|
|
|
12455 echo " WARNING: Compiling without PNG image support."
|
|
310
|
12456 if test "$png_problem" != ""; then
|
|
|
12457 echo " Reason: $png_problem"
|
|
|
12458 fi
|
|
308
|
12459 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
|
12460 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
310
|
12461 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
|
151
|
12462 echo " --------------------------------------------------------------------"
|
|
|
12463 fi
|
|
308
|
12464 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
|
|
|
12465 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
|
|
|
12466 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
|
|
310
|
12467 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
|
149
|
12468 case "$with_sound" in
|
|
|
12469 nas ) echo " Compiling in network sound (NAS) support." ;;
|
|
|
12470 native ) echo " Compiling in native sound support." ;;
|
|
|
12471 both ) echo " Compiling in both network and native sound support." ;;
|
|
|
12472 esac
|
|
|
12473 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
|
|
116
|
12474
|
|
|
12475 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
|
12476 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
|
259
|
12477 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
|
12478
|
|
|
12479 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
|
|
|
12480 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
|
|
|
12481 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
|
|
116
|
12482
|
|
149
|
12483 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
|
12484 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
116
|
12485
|
|
|
12486 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
|
259
|
12487 test "$with_file_coding" = yes && echo " Compiling in File coding support."
|
|
116
|
12488 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
|
12489 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
|
12490 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
|
177
|
12491 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
|
|
116
|
12492 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
|
120
|
12493 if test "$with_wnn" = yes; then
|
|
|
12494 echo " Compiling in support for the WNN input method on Mule."
|
|
151
|
12495 test "$with_wnn6" = yes && echo " Using WNN version 6."
|
|
120
|
12496 fi
|
|
116
|
12497 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
|
12498
|
|
|
12499 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
|
12500 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
|
12501 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
|
290
|
12502 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
|
|
149
|
12503 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
|
259
|
12504 test "$with_session" != no && echo " Compiling in support for proper session-management."
|
|
203
|
12505 case "$with_menubars" in
|
|
157
|
12506 lucid ) echo " Using Lucid menubars." ;;
|
|
|
12507 motif ) echo " Using Motif menubars."
|
|
|
12508 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
149
|
12509 echo " We recommend using the Lucid menubar instead."
|
|
|
12510 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
|
12511 esac
|
|
|
12512 case "$with_scrollbars" in
|
|
157
|
12513 lucid ) echo " Using Lucid scrollbars." ;;
|
|
|
12514 motif ) echo " Using Motif scrollbars." ;;
|
|
|
12515 athena ) echo " Using Athena scrollbars." ;;
|
|
|
12516 athena3d ) echo " Using Athena-3d scrollbars." ;;
|
|
149
|
12517 esac
|
|
|
12518 case "$with_dialogs" in
|
|
157
|
12519 motif ) echo " Using Motif dialog boxes." ;;
|
|
|
12520 athena ) echo " Using Athena dialog boxes." ;;
|
|
|
12521 athena3d ) echo " Using Athena-3d dialog boxes." ;;
|
|
149
|
12522 esac
|
|
261
|
12523 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
|
|
203
|
12524 test "$with_clash_detection" = yes && \
|
|
|
12525 echo " Clash detection will use \"$lockdir\" for locking files."
|
|
157
|
12526 echo " movemail will use \"$mail_locking\" for locking mail spool files."
|
|
126
|
12527 test "$with_pop" = yes && echo " Using POP for mail access"
|
|
|
12528 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
|
|
|
12529 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
|
|
272
|
12530 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
|
12531 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits."
|
|
|
12532 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation."
|
|
149
|
12533 test "$debug" = yes && echo " Compiling in extra code for debugging."
|
|
|
12534 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
|
12535 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
|
151
|
12536 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
|
|
|
12537 != "no no no no no"; then
|
|
|
12538 echo " WARNING: ---------------------------------------------------------"
|
|
|
12539 echo " WARNING: Compiling in support for runtime error checking."
|
|
|
12540 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
|
12541 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
|
12542 echo " WARNING: ---------------------------------------------------------"
|
|
|
12543 fi
|
|
118
|
12544 echo ""
|
|
116
|
12545 ) | tee -a Installation
|
|
118
|
12546 echo ""
|
|
|
12547
|
|
261
|
12548 echo '(setq Installation-string "' > Installation.el
|
|
|
12549 sed 's/"/\\"/g' Installation >> Installation.el
|
|
|
12550 echo '")' >> Installation.el
|
|
|
12551
|
|
70
|
12552
|
|
120
|
12553
|
|
0
|
12554 # Remove any trailing slashes in these variables.
|
|
149
|
12555 test -n "$prefix" &&
|
|
159
|
12556 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
12557 test -n "$exec_prefix" &&
|
|
159
|
12558 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
|
149
|
12559
|
|
|
12560
|
|
272
|
12561 for file in $internal_makefile_list; do
|
|
|
12562 test "$file" = src/Makefile.in && \
|
|
|
12563 file="src/Makefile.in:src/Makefile.in.in:src/depend"
|
|
|
12564 ac_output_files="${ac_output_files+$ac_output_files }$file"
|
|
|
12565 done
|
|
276
|
12566 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
|
|
272
|
12567
|
|
149
|
12568 trap '' 1 2 15
|
|
|
12569
|
|
|
12570 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
12571
|
|
|
12572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
12573 # Let make expand exec_prefix.
|
|
|
12574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
0
|
12575
|
|
|
12576 # Any assignment to VPATH causes Sun make to only execute
|
|
|
12577 # the first set of double-colon rules, so remove it if not needed.
|
|
|
12578 # If there is a colon in the path, we need to keep it.
|
|
|
12579 if test "x$srcdir" = x.; then
|
|
|
12580 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
|
12581 fi
|
|
|
12582
|
|
149
|
12583 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
12584
|
|
|
12585 DEFS=-DHAVE_CONFIG_H
|
|
|
12586
|
|
|
12587 # Without the "./", some shells look in PATH for config.status.
|
|
|
12588 : ${CONFIG_STATUS=./config.status}
|
|
|
12589
|
|
|
12590 echo creating $CONFIG_STATUS
|
|
|
12591 rm -f $CONFIG_STATUS
|
|
|
12592 cat > $CONFIG_STATUS <<EOF
|
|
|
12593 #! /bin/sh
|
|
0
|
12594 # Generated automatically by configure.
|
|
|
12595 # Run this file to recreate the current configuration.
|
|
|
12596 # This directory was configured as follows,
|
|
|
12597 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
12598 #
|
|
149
|
12599 # $0 $ac_configure_args
|
|
|
12600 #
|
|
|
12601 # Compiler output produced by configure, useful for debugging
|
|
|
12602 # configure, is in ./config.log if it exists.
|
|
|
12603
|
|
|
12604 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
0
|
12605 for ac_option
|
|
|
12606 do
|
|
|
12607 case "\$ac_option" in
|
|
|
12608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
149
|
12609 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
|
12610 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
0
|
12611 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
149
|
12612 echo "$CONFIG_STATUS generated by autoconf version 2.12"
|
|
0
|
12613 exit 0 ;;
|
|
|
12614 -help | --help | --hel | --he | --h)
|
|
|
12615 echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
12616 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
|
12617 esac
|
|
|
12618 done
|
|
|
12619
|
|
|
12620 ac_given_srcdir=$srcdir
|
|
149
|
12621 ac_given_INSTALL="$INSTALL"
|
|
|
12622
|
|
276
|
12623 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
149
|
12624 EOF
|
|
|
12625 cat >> $CONFIG_STATUS <<EOF
|
|
|
12626
|
|
|
12627 # Protect against being on the right side of a sed subst in config.status.
|
|
|
12628 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
|
12629 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
0
|
12630 $ac_vpsub
|
|
|
12631 $extrasub
|
|
149
|
12632 s%@CFLAGS@%$CFLAGS%g
|
|
|
12633 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
12634 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
|
12635 s%@DEFS@%$DEFS%g
|
|
|
12636 s%@LDFLAGS@%$LDFLAGS%g
|
|
|
12637 s%@LIBS@%$LIBS%g
|
|
|
12638 s%@exec_prefix@%$exec_prefix%g
|
|
|
12639 s%@prefix@%$prefix%g
|
|
|
12640 s%@program_transform_name@%$program_transform_name%g
|
|
|
12641 s%@bindir@%$bindir%g
|
|
|
12642 s%@sbindir@%$sbindir%g
|
|
|
12643 s%@libexecdir@%$libexecdir%g
|
|
|
12644 s%@datadir@%$datadir%g
|
|
|
12645 s%@sysconfdir@%$sysconfdir%g
|
|
|
12646 s%@sharedstatedir@%$sharedstatedir%g
|
|
|
12647 s%@localstatedir@%$localstatedir%g
|
|
|
12648 s%@libdir@%$libdir%g
|
|
|
12649 s%@includedir@%$includedir%g
|
|
|
12650 s%@oldincludedir@%$oldincludedir%g
|
|
|
12651 s%@infodir@%$infodir%g
|
|
|
12652 s%@mandir@%$mandir%g
|
|
0
|
12653 s%@LN_S@%$LN_S%g
|
|
181
|
12654 s%@blddir@%$blddir%g
|
|
0
|
12655 s%@CC@%$CC%g
|
|
|
12656 s%@CPP@%$CPP%g
|
|
207
|
12657 s%@start_flags@%$start_flags%g
|
|
163
|
12658 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
|
12659 s%@start_files@%$start_files%g
|
|
|
12660 s%@ld@%$ld%g
|
|
|
12661 s%@lib_gcc@%$lib_gcc%g
|
|
0
|
12662 s%@RANLIB@%$RANLIB%g
|
|
|
12663 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
|
12664 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
|
12665 s%@YACC@%$YACC%g
|
|
|
12666 s%@SET_MAKE@%$SET_MAKE%g
|
|
149
|
12667 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
|
12668 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
|
12669 s%@X_LIBS@%$X_LIBS%g
|
|
|
12670 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
|
276
|
12671 s%@install_pp@%$install_pp%g
|
|
159
|
12672 s%@libs_xauth@%$libs_xauth%g
|
|
274
|
12673 s%@dnd_objs@%$dnd_objs%g
|
|
157
|
12674 s%@lwlib_objs@%$lwlib_objs%g
|
|
0
|
12675 s%@ALLOCA@%$ALLOCA%g
|
|
265
|
12676 s%@dll_ld@%$dll_ld%g
|
|
|
12677 s%@dll_cflags@%$dll_cflags%g
|
|
|
12678 s%@dll_oflags@%$dll_oflags%g
|
|
|
12679 s%@dll_lflags@%$dll_lflags%g
|
|
151
|
12680 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
|
167
|
12681 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
|
149
|
12682 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
|
12683 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
|
280
|
12684 s%@PROGNAME@%$PROGNAME%g
|
|
0
|
12685 s%@version@%$version%g
|
|
|
12686 s%@configuration@%$configuration%g
|
|
|
12687 s%@canonical@%$canonical%g
|
|
|
12688 s%@srcdir@%$srcdir%g
|
|
155
|
12689 s%@pkgdir@%$pkgdir%g
|
|
0
|
12690 s%@statedir@%$statedir%g
|
|
278
|
12691 s%@PREFIX@%$PREFIX%g
|
|
|
12692 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
|
274
|
12693 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
|
12694 s%@INFODIR@%$INFODIR%g
|
|
203
|
12695 s%@infopath@%$infopath%g
|
|
274
|
12696 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
|
12697 s%@INFOPATH@%$INFOPATH%g
|
|
269
|
12698 s%@package_path@%$package_path%g
|
|
274
|
12699 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
|
12700 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
|
0
|
12701 s%@lispdir@%$lispdir%g
|
|
274
|
12702 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
|
12703 s%@LISPDIR@%$LISPDIR%g
|
|
0
|
12704 s%@etcdir@%$etcdir%g
|
|
274
|
12705 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
|
12706 s%@ETCDIR@%$ETCDIR%g
|
|
0
|
12707 s%@lockdir@%$lockdir%g
|
|
274
|
12708 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
|
|
|
12709 s%@LOCKDIR@%$LOCKDIR%g
|
|
0
|
12710 s%@archlibdir@%$archlibdir%g
|
|
274
|
12711 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
|
12712 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
|
0
|
12713 s%@docdir@%$docdir%g
|
|
|
12714 s%@bitmapdir@%$bitmapdir%g
|
|
149
|
12715 s%@extra_objs@%$extra_objs%g
|
|
263
|
12716 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
|
0
|
12717 s%@machfile@%$machfile%g
|
|
|
12718 s%@opsysfile@%$opsysfile%g
|
|
149
|
12719 s%@c_switch_general@%$c_switch_general%g
|
|
|
12720 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
|
12721 s%@c_switch_all@%$c_switch_all%g
|
|
|
12722 s%@ld_switch_general@%$ld_switch_general%g
|
|
|
12723 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
|
12724 s%@ld_switch_all@%$ld_switch_all%g
|
|
|
12725 s%@ld_libs_general@%$ld_libs_general%g
|
|
|
12726 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
|
12727 s%@ld_libs_all@%$ld_libs_all%g
|
|
173
|
12728 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
|
149
|
12729 s%@native_sound_lib@%$native_sound_lib%g
|
|
|
12730 s%@sound_cflags@%$sound_cflags%g
|
|
0
|
12731 s%@dynodump_arch@%$dynodump_arch%g
|
|
|
12732 s%@internal_makefile_list@%$internal_makefile_list%g
|
|
149
|
12733
|
|
|
12734 CEOF
|
|
|
12735 EOF
|
|
|
12736
|
|
|
12737 cat >> $CONFIG_STATUS <<\EOF
|
|
|
12738
|
|
|
12739 # Split the substitutions into bite-sized pieces for seds with
|
|
|
12740 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
|
12741 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
|
12742 ac_file=1 # Number of current file.
|
|
|
12743 ac_beg=1 # First line for current file.
|
|
|
12744 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
|
12745 ac_more_lines=:
|
|
|
12746 ac_sed_cmds=""
|
|
|
12747 while $ac_more_lines; do
|
|
|
12748 if test $ac_beg -gt 1; then
|
|
|
12749 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
12750 else
|
|
|
12751 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
12752 fi
|
|
|
12753 if test ! -s conftest.s$ac_file; then
|
|
|
12754 ac_more_lines=false
|
|
|
12755 rm -f conftest.s$ac_file
|
|
|
12756 else
|
|
|
12757 if test -z "$ac_sed_cmds"; then
|
|
|
12758 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
|
12759 else
|
|
|
12760 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
|
12761 fi
|
|
|
12762 ac_file=`expr $ac_file + 1`
|
|
|
12763 ac_beg=$ac_end
|
|
|
12764 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
|
12765 fi
|
|
|
12766 done
|
|
|
12767 if test -z "$ac_sed_cmds"; then
|
|
|
12768 ac_sed_cmds=cat
|
|
|
12769 fi
|
|
|
12770 EOF
|
|
|
12771
|
|
|
12772 cat >> $CONFIG_STATUS <<EOF
|
|
|
12773
|
|
272
|
12774 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
|
149
|
12775 EOF
|
|
|
12776 cat >> $CONFIG_STATUS <<\EOF
|
|
|
12777 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
12778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
12779 case "$ac_file" in
|
|
|
12780 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
12781 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
12782 *) ac_file_in="${ac_file}.in" ;;
|
|
|
12783 esac
|
|
|
12784
|
|
|
12785 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
12786
|
|
|
12787 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
12788 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
12789 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
12790 # The file is in a subdirectory.
|
|
|
12791 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
12792 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
|
12793 # A "../" for each directory in $ac_dir_suffix.
|
|
|
12794 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
|
12795 else
|
|
|
12796 ac_dir_suffix= ac_dots=
|
|
|
12797 fi
|
|
|
12798
|
|
|
12799 case "$ac_given_srcdir" in
|
|
|
12800 .) srcdir=.
|
|
|
12801 if test -z "$ac_dots"; then top_srcdir=.
|
|
|
12802 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
|
12803 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
|
12804 *) # Relative path.
|
|
|
12805 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
12806 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
|
12807 esac
|
|
|
12808
|
|
|
12809 case "$ac_given_INSTALL" in
|
|
|
12810 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
|
12811 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
|
12812 esac
|
|
|
12813
|
|
|
12814 echo creating "$ac_file"
|
|
|
12815 rm -f "$ac_file"
|
|
|
12816 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
|
12817 case "$ac_file" in
|
|
|
12818 *Makefile*) ac_comsub="1i\\
|
|
|
12819 # $configure_input" ;;
|
|
|
12820 *) ac_comsub= ;;
|
|
|
12821 esac
|
|
|
12822
|
|
|
12823 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
12824 sed -e "$ac_comsub
|
|
|
12825 s%@configure_input@%$configure_input%g
|
|
|
12826 s%@srcdir@%$srcdir%g
|
|
0
|
12827 s%@top_srcdir@%$top_srcdir%g
|
|
149
|
12828 s%@INSTALL@%$INSTALL%g
|
|
|
12829 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
0
|
12830 fi; done
|
|
149
|
12831 rm -f conftest.s*
|
|
|
12832
|
|
|
12833 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
|
12834 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
0
|
12835 #
|
|
|
12836 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
149
|
12837 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
|
12838 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
0
|
12839 ac_dC='\3'
|
|
149
|
12840 ac_dD='%g'
|
|
0
|
12841 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
149
|
12842 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
12843 ac_uB='\([ ]\)%\1#\2define\3'
|
|
0
|
12844 ac_uC=' '
|
|
149
|
12845 ac_uD='\4%g'
|
|
0
|
12846 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
149
|
12847 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
12848 ac_eB='$%\1#\2define\3'
|
|
0
|
12849 ac_eC=' '
|
|
149
|
12850 ac_eD='%g'
|
|
|
12851
|
|
|
12852 if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
12853 EOF
|
|
|
12854 cat >> $CONFIG_STATUS <<EOF
|
|
276
|
12855 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
|
149
|
12856 EOF
|
|
|
12857 cat >> $CONFIG_STATUS <<\EOF
|
|
|
12858 fi
|
|
|
12859 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
|
12860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
12861 case "$ac_file" in
|
|
|
12862 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
12863 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
12864 *) ac_file_in="${ac_file}.in" ;;
|
|
|
12865 esac
|
|
|
12866
|
|
|
12867 echo creating $ac_file
|
|
|
12868
|
|
|
12869 rm -f conftest.frag conftest.in conftest.out
|
|
|
12870 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
12871 cat $ac_file_inputs > conftest.in
|
|
|
12872
|
|
|
12873 EOF
|
|
|
12874
|
|
|
12875 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
|
12876 # the proper values into config.h.in to produce config.h. And first:
|
|
|
12877 # Protect against being on the right side of a sed subst in config.status.
|
|
|
12878 # Protect against being in an unquoted here document in config.status.
|
|
|
12879 rm -f conftest.vals
|
|
|
12880 cat > conftest.hdr <<\EOF
|
|
|
12881 s/[\\&%]/\\&/g
|
|
|
12882 s%[\\$`]%\\&%g
|
|
|
12883 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
|
12884 s%ac_d%ac_u%gp
|
|
|
12885 s%ac_u%ac_e%gp
|
|
|
12886 EOF
|
|
|
12887 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
|
12888 rm -f conftest.hdr
|
|
|
12889
|
|
|
12890 # This sed command replaces #undef with comments. This is necessary, for
|
|
|
12891 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
12892 # on some systems where configure will not decide to define it.
|
|
|
12893 cat >> conftest.vals <<\EOF
|
|
|
12894 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
|
12895 EOF
|
|
|
12896
|
|
|
12897 # Break up conftest.vals because some shells have a limit on
|
|
|
12898 # the size of here documents, and old seds have small limits too.
|
|
|
12899
|
|
|
12900 rm -f conftest.tail
|
|
0
|
12901 while :
|
|
|
12902 do
|
|
149
|
12903 ac_lines=`grep -c . conftest.vals`
|
|
|
12904 # grep -c gives empty output for an empty file on some AIX systems.
|
|
0
|
12905 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
149
|
12906 # Write a limited-size here document to conftest.frag.
|
|
|
12907 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
|
12908 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
|
12909 echo 'CEOF
|
|
|
12910 sed -f conftest.frag conftest.in > conftest.out
|
|
|
12911 rm -f conftest.in
|
|
|
12912 mv conftest.out conftest.in
|
|
|
12913 ' >> $CONFIG_STATUS
|
|
|
12914 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
|
12915 rm -f conftest.vals
|
|
|
12916 mv conftest.tail conftest.vals
|
|
0
|
12917 done
|
|
149
|
12918 rm -f conftest.vals
|
|
|
12919
|
|
|
12920 cat >> $CONFIG_STATUS <<\EOF
|
|
|
12921 rm -f conftest.frag conftest.h
|
|
0
|
12922 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
149
|
12923 cat conftest.in >> conftest.h
|
|
|
12924 rm -f conftest.in
|
|
0
|
12925 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
|
12926 echo "$ac_file is unchanged"
|
|
|
12927 rm -f conftest.h
|
|
|
12928 else
|
|
149
|
12929 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
12930 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
12931 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
12932 # The file is in a subdirectory.
|
|
|
12933 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
12934 fi
|
|
0
|
12935 rm -f $ac_file
|
|
|
12936 mv conftest.h $ac_file
|
|
|
12937 fi
|
|
|
12938 fi; done
|
|
149
|
12939
|
|
|
12940 EOF
|
|
|
12941 cat >> $CONFIG_STATUS <<EOF
|
|
|
12942 CPP="$CPP"
|
|
|
12943 CPPFLAGS="$CPPFLAGS"
|
|
|
12944 top_srcdir="$srcdir"
|
|
|
12945 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
|
12946
|
|
|
12947 EOF
|
|
|
12948 cat >> $CONFIG_STATUS <<\EOF
|
|
|
12949 for dir in $MAKE_SUBDIR; do
|
|
|
12950 echo creating $dir/Makefile
|
|
151
|
12951 (
|
|
149
|
12952 cd $dir
|
|
|
12953 rm -f junk.c
|
|
163
|
12954 < Makefile.in \
|
|
165
|
12955 sed -e '/^# Generated/d' \
|
|
163
|
12956 -e 's%/\*\*/#.*%%' \
|
|
165
|
12957 -e 's/^ *# */#/' \
|
|
163
|
12958 -e '/^##/d' \
|
|
|
12959 -e '/^#/ {
|
|
|
12960 p
|
|
|
12961 d
|
|
|
12962 }' -e '/./ {
|
|
|
12963 s/\([\"]\)/\\\1/g
|
|
|
12964 s/^/"/
|
|
|
12965 s/$/"/
|
|
|
12966 }' > junk.c;
|
|
149
|
12967 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
|
|
|
12968 < junk.cpp \
|
|
|
12969 sed -e 's/^#.*//' \
|
|
165
|
12970 -e 's/^[ ][ ]*$//' \
|
|
|
12971 -e 's/^ / /' \
|
|
149
|
12972 | sed -n -e '/^..*$/p' \
|
|
163
|
12973 | sed '/^"/ {
|
|
|
12974 s/\\\([\"]\)/\1/g
|
|
272
|
12975 s/^[ ]*"//
|
|
|
12976 s/"[ ]*$//
|
|
163
|
12977 }' > Makefile.new
|
|
149
|
12978 chmod 444 Makefile.new
|
|
|
12979 mv -f Makefile.new Makefile
|
|
|
12980 rm -f junk.c junk.cpp
|
|
165
|
12981 )
|
|
149
|
12982 done
|
|
0
|
12983
|
|
181
|
12984 sed < config.status >> lib-src/config.values \
|
|
|
12985 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
|
12986 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
|
12987 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
|
12988 -e 's/ 1$/ t/'
|
|
175
|
12989
|
|
|
12990
|
|
0
|
12991 exit 0
|
|
|
12992 EOF
|
|
149
|
12993 chmod +x $CONFIG_STATUS
|
|
|
12994 rm -fr confdefs* $ac_clean_files
|
|
|
12995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
12996
|