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 ;;
|
|
1037 *-*-aix4.2* ) opsys=aix4-2 ;;
|
|
1038 *-*-aix4.1* ) opsys=aix4-1 ;;
|
|
1039 *-*-aix4* ) opsys=aix4 ;;
|
|
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
|
149
|
1245 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1246 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1247 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1248 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1249 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1250 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1251 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1252 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1253 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1254
|
|
1255 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1256 *-sony-news* ) opsys=newsos5 ;;
|
|
1257
|
|
1258 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1259
|
|
1260 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1261 case "$canonical" in
|
0
|
1262 m68*-sunos1* ) machine=sun1 ;;
|
|
1263 m68*-sunos2* ) machine=sun2 ;;
|
|
1264 m68* ) machine=sun3 ;;
|
163
|
1265 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1266 i*86-*-* ) machine=intel386 ;;
|
0
|
1267 rs6000* ) machine=rs6000 ;;
|
|
1268 esac
|
149
|
1269
|
|
1270 case "$canonical" in *-sunos5*)
|
163
|
1271 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1272 esac
|
|
1273
|
149
|
1274 case "$canonical" in
|
0
|
1275 *-sunos4* )
|
157
|
1276 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1277 : ;;
|
70
|
1278 *-solaris2* )
|
157
|
1279 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1280 RANLIB=':' ;;
|
151
|
1281 esac
|
149
|
1282
|
|
1283 case "$canonical" in
|
163
|
1284 *-solaris* )
|
|
1285 opsys=sol2
|
|
1286 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
1287 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1288 Defining OS_RELEASE = $os_release
|
|
1289 EOF
|
|
1290 cat >> confdefs.h <<EOF
|
|
1291 #define OS_RELEASE $os_release
|
|
1292 EOF
|
|
1293 }
|
|
1294 ;;
|
|
1295
|
|
1296 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1297 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1298 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1299 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1300 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1301 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1302 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1303 * ) opsys=bsd4-2 ;;
|
0
|
1304 esac
|
70
|
1305
|
149
|
1306 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1307
|
163
|
1308 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1309 ;;
|
70
|
1310
|
149
|
1311 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1312
|
|
1313 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1314 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1315
|
149
|
1316 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1317
|
|
1318 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1319
|
|
1320 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1321 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1322
|
|
1323 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1324
|
|
1325 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1326
|
|
1327 vax-dec-* )
|
|
1328 case "$canonical" in
|
|
1329 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1330 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1331 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1332 esac
|
|
1333 ;;
|
|
1334
|
149
|
1335 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1336
|
|
1337 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1338
|
|
1339 i[3-9]86-*-* )
|
0
|
1340 machine=intel386
|
149
|
1341 case "$canonical" in
|
120
|
1342 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1343 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1344 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1345 *-isc4.* ) opsys=isc4-1
|
|
1346 GCC_TEST_OPTIONS=-posix
|
|
1347 NON_GCC_TEST_OPTIONS=-Xp
|
|
1348 ;;
|
|
1349 *-isc* ) opsys=isc3-0 ;;
|
149
|
1350 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1351 *-esix* ) opsys=esix ;;
|
|
1352 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1353 *-xenix* ) opsys=xenix ;;
|
149
|
1354 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1355 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
110
|
1356 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1357 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1358 *-bsdi2* ) opsys=bsdos2 ;;
|
149
|
1359 *-sco3.2v5* ) opsys=sco5 ;
|
|
1360 if test "$dynamic" = "yes" ; then
|
70
|
1361 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
|
|
1362 else
|
|
1363 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
|
|
1364 fi ;;
|
|
1365 *-386bsd* ) opsys=386bsd ;;
|
|
1366 *-freebsd* ) opsys=freebsd ;;
|
0
|
1367 *-nextstep* ) opsys=nextstep ;;
|
231
|
1368 *-pc-cygwin32 ) opsys=cygwin32 ;;
|
149
|
1369 esac
|
0
|
1370 ;;
|
|
1371
|
149
|
1372 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1373
|
0
|
1374 esac
|
|
1375
|
149
|
1376 if test -z "$machine" -o -z "$opsys"; then
|
|
1377 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems."
|
|
1378 echo "$progname: Check \`etc/MACHINES' for recognized configuration names."
|
0
|
1379 ) >&2
|
|
1380 exit 1
|
|
1381 fi
|
|
1382
|
173
|
1383 if test -z "$dynamic"; then
|
|
1384 case "$opsys" in
|
|
1385 hpux* | sunos4* | sco5 ) dynamic=no ;;
|
|
1386 *) dynamic=yes ;;
|
|
1387 esac
|
|
1388 fi
|
|
1389 if test "$dynamic" = "yes"; then
|
149
|
1390 case "$opsys" in
|
72
|
1391 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1392 decosf* ) ld_call_shared="-call_shared" ;;
|
0
|
1393 esac
|
173
|
1394 else case "$opsys" in
|
187
|
1395 sol2 )
|
173
|
1396 echo "Static linking is not supported on Solaris 2."
|
|
1397 echo "Rerun configure without specifying --dynamic=no."
|
|
1398 exit 1 ;;
|
|
1399 linux ) ld_call_shared="-Bstatic" ;;
|
|
1400 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1401 esac
|
|
1402 fi
|
|
1403
|
207
|
1404 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
1405
|
280
|
1406 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1407 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1408 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1409 EOF
|
|
1410 cat >> confdefs.h <<EOF
|
177
|
1411 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1412 EOF
|
|
1413 }
|
|
1414
|
|
1415
|
0
|
1416 machfile="m/${machine}.h"
|
|
1417 opsysfile="s/${opsys}.h"
|
|
1418
|
|
1419
|
151
|
1420 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1421 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1422 (echo "$progname: Usage error:"
|
|
1423 echo " " "--with-workshop requires --with-tooltalk"
|
|
1424 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1425 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1426 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1427 fi
|
|
1428
|
151
|
1429 if test "$with_workshop" = "yes"; then
|
|
1430 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1431 Defining SUNPRO
|
|
1432 EOF
|
|
1433 cat >> confdefs.h <<\EOF
|
|
1434 #define SUNPRO 1
|
|
1435 EOF
|
|
1436 }
|
|
1437
|
|
1438 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
|
|
1439 echo " xemacs will be linked with \"sunpro.o\""
|
|
1440 fi
|
|
1441 fi
|
|
1442
|
175
|
1443 if test "$with_clash_detection" = "yes"; then
|
|
1444 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1445 Defining CLASH_DETECTION
|
|
1446 EOF
|
|
1447 cat >> confdefs.h <<\EOF
|
|
1448 #define CLASH_DETECTION 1
|
|
1449 EOF
|
|
1450 }
|
|
1451
|
|
1452 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
|
|
1453 echo " xemacs will be linked with \"filelock.o\""
|
|
1454 fi
|
|
1455 fi
|
|
1456
|
169
|
1457 test -n "$compiler" && CC="$compiler"
|
|
1458 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1459 fi
|
149
|
1460
|
272
|
1461 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1462 if test "${CFLAGS-unset}" != unset
|
|
1463 then cflags_specified=yes;
|
|
1464 else cflags_specified=no;
|
|
1465 fi
|
|
1466
|
157
|
1467 xe_save_CFLAGS="$CFLAGS"
|
|
1468
|
149
|
1469 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1470 set dummy gcc; ac_word=$2
|
|
1471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1472 echo "configure:1473: checking for $ac_word" >&5
|
149
|
1473
|
|
1474 if test -n "$CC"; then
|
|
1475 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1476 else
|
|
1477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1478 for ac_dir in $PATH; do
|
|
1479 test -z "$ac_dir" && ac_dir=.
|
|
1480 if test -f $ac_dir/$ac_word; then
|
|
1481 ac_cv_prog_CC="gcc"
|
|
1482 break
|
|
1483 fi
|
|
1484 done
|
|
1485 IFS="$ac_save_ifs"
|
|
1486 fi
|
|
1487 CC="$ac_cv_prog_CC"
|
|
1488 if test -n "$CC"; then
|
|
1489 echo "$ac_t""$CC" 1>&6
|
|
1490 else
|
|
1491 echo "$ac_t""no" 1>&6
|
|
1492 fi
|
|
1493
|
|
1494 if test -z "$CC"; then
|
|
1495 # Extract the first word of "cc", so it can be a program name with args.
|
|
1496 set dummy cc; ac_word=$2
|
|
1497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1498 echo "configure:1499: checking for $ac_word" >&5
|
149
|
1499
|
|
1500 if test -n "$CC"; then
|
|
1501 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1502 else
|
|
1503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1504 ac_prog_rejected=no
|
|
1505 for ac_dir in $PATH; do
|
|
1506 test -z "$ac_dir" && ac_dir=.
|
|
1507 if test -f $ac_dir/$ac_word; then
|
|
1508 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1509 ac_prog_rejected=yes
|
|
1510 continue
|
|
1511 fi
|
|
1512 ac_cv_prog_CC="cc"
|
|
1513 break
|
|
1514 fi
|
|
1515 done
|
|
1516 IFS="$ac_save_ifs"
|
|
1517 if test $ac_prog_rejected = yes; then
|
|
1518 # We found a bogon in the path, so make sure we never use it.
|
|
1519 set dummy $ac_cv_prog_CC
|
|
1520 shift
|
|
1521 if test $# -gt 0; then
|
|
1522 # We chose a different compiler from the bogus one.
|
|
1523 # However, it has the same basename, so the bogon will be chosen
|
|
1524 # first if we set CC to just the basename; use the full file name.
|
|
1525 shift
|
|
1526 set dummy "$ac_dir/$ac_word" "$@"
|
|
1527 shift
|
|
1528 ac_cv_prog_CC="$@"
|
|
1529 fi
|
|
1530 fi
|
|
1531 fi
|
|
1532 CC="$ac_cv_prog_CC"
|
|
1533 if test -n "$CC"; then
|
|
1534 echo "$ac_t""$CC" 1>&6
|
|
1535 else
|
|
1536 echo "$ac_t""no" 1>&6
|
|
1537 fi
|
|
1538
|
|
1539 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1540 fi
|
|
1541
|
|
1542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
286
|
1543 echo "configure:1544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1544
|
0
|
1545 ac_ext=c
|
151
|
1546 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1547 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
173
|
1548 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
1549 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1550 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1551 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1552 cross_compiling=no
|
|
1553
|
|
1554 cat > conftest.$ac_ext <<EOF
|
286
|
1555 #line 1556 "configure"
|
149
|
1556 #include "confdefs.h"
|
|
1557 main(){return(0);}
|
|
1558 EOF
|
286
|
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
1560 ac_cv_prog_cc_works=yes
|
|
1561 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1562 if (./conftest; exit) 2>/dev/null; then
|
|
1563 ac_cv_prog_cc_cross=no
|
|
1564 else
|
|
1565 ac_cv_prog_cc_cross=yes
|
0
|
1566 fi
|
149
|
1567 else
|
|
1568 echo "configure: failed program was:" >&5
|
|
1569 cat conftest.$ac_ext >&5
|
|
1570 ac_cv_prog_cc_works=no
|
|
1571 fi
|
|
1572 rm -fr conftest*
|
|
1573
|
|
1574 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1575 if test $ac_cv_prog_cc_works = no; then
|
|
1576 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1577 fi
|
|
1578 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
286
|
1579 echo "configure:1580: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1580 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1581 cross_compiling=$ac_cv_prog_cc_cross
|
|
1582
|
|
1583 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
286
|
1584 echo "configure:1585: checking whether we are using GNU C" >&5
|
149
|
1585
|
|
1586 cat > conftest.c <<EOF
|
|
1587 #ifdef __GNUC__
|
|
1588 yes;
|
|
1589 #endif
|
|
1590 EOF
|
286
|
1591 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1592 ac_cv_prog_gcc=yes
|
|
1593 else
|
|
1594 ac_cv_prog_gcc=no
|
|
1595 fi
|
|
1596
|
|
1597 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1598
|
|
1599 if test $ac_cv_prog_gcc = yes; then
|
|
1600 GCC=yes
|
|
1601 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1602 ac_save_CFLAGS="$CFLAGS"
|
|
1603 CFLAGS=
|
|
1604 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
286
|
1605 echo "configure:1606: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1606
|
|
1607 echo 'void f(){}' > conftest.c
|
|
1608 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1609 ac_cv_prog_cc_g=yes
|
|
1610 else
|
|
1611 ac_cv_prog_cc_g=no
|
|
1612 fi
|
|
1613 rm -f conftest*
|
|
1614
|
|
1615
|
|
1616 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
1617 if test "$ac_test_CFLAGS" = set; then
|
|
1618 CFLAGS="$ac_save_CFLAGS"
|
|
1619 elif test $ac_cv_prog_cc_g = yes; then
|
|
1620 CFLAGS="-g -O2"
|
0
|
1621 else
|
149
|
1622 CFLAGS="-O2"
|
0
|
1623 fi
|
149
|
1624 else
|
|
1625 GCC=
|
|
1626 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
1627 fi
|
169
|
1628
|
|
1629 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1630 CC=${NON_GNU_CC-cc}
|
|
1631 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1632 set dummy gcc; ac_word=$2
|
|
1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1634 echo "configure:1635: checking for $ac_word" >&5
|
149
|
1635
|
|
1636 if test -n "$CC"; then
|
|
1637 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1638 else
|
0
|
1639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1640 for ac_dir in $PATH; do
|
|
1641 test -z "$ac_dir" && ac_dir=.
|
|
1642 if test -f $ac_dir/$ac_word; then
|
149
|
1643 ac_cv_prog_CC="gcc"
|
|
1644 break
|
|
1645 fi
|
|
1646 done
|
|
1647 IFS="$ac_save_ifs"
|
|
1648 fi
|
|
1649 CC="$ac_cv_prog_CC"
|
|
1650 if test -n "$CC"; then
|
|
1651 echo "$ac_t""$CC" 1>&6
|
|
1652 else
|
|
1653 echo "$ac_t""no" 1>&6
|
|
1654 fi
|
|
1655
|
|
1656 if test -z "$CC"; then
|
|
1657 # Extract the first word of "cc", so it can be a program name with args.
|
|
1658 set dummy cc; ac_word=$2
|
|
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1660 echo "configure:1661: checking for $ac_word" >&5
|
157
|
1661
|
|
1662 if test -n "$CC"; then
|
|
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1664 else
|
|
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1666 ac_prog_rejected=no
|
|
1667 for ac_dir in $PATH; do
|
|
1668 test -z "$ac_dir" && ac_dir=.
|
|
1669 if test -f $ac_dir/$ac_word; then
|
|
1670 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1671 ac_prog_rejected=yes
|
|
1672 continue
|
|
1673 fi
|
|
1674 ac_cv_prog_CC="cc"
|
|
1675 break
|
|
1676 fi
|
|
1677 done
|
|
1678 IFS="$ac_save_ifs"
|
|
1679 if test $ac_prog_rejected = yes; then
|
|
1680 # We found a bogon in the path, so make sure we never use it.
|
|
1681 set dummy $ac_cv_prog_CC
|
|
1682 shift
|
|
1683 if test $# -gt 0; then
|
|
1684 # We chose a different compiler from the bogus one.
|
|
1685 # However, it has the same basename, so the bogon will be chosen
|
|
1686 # first if we set CC to just the basename; use the full file name.
|
|
1687 shift
|
|
1688 set dummy "$ac_dir/$ac_word" "$@"
|
|
1689 shift
|
|
1690 ac_cv_prog_CC="$@"
|
|
1691 fi
|
|
1692 fi
|
|
1693 fi
|
|
1694 CC="$ac_cv_prog_CC"
|
|
1695 if test -n "$CC"; then
|
|
1696 echo "$ac_t""$CC" 1>&6
|
|
1697 else
|
|
1698 echo "$ac_t""no" 1>&6
|
|
1699 fi
|
|
1700
|
|
1701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1702 fi
|
|
1703
|
|
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
286
|
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
1706
|
|
1707 ac_ext=c
|
|
1708 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1709 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
173
|
1710 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
157
|
1711 ac_cpp='$CPP '"$xe_cppflags"
|
|
1712 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1713 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1714 cross_compiling=no
|
|
1715
|
|
1716 cat > conftest.$ac_ext <<EOF
|
286
|
1717 #line 1718 "configure"
|
157
|
1718 #include "confdefs.h"
|
|
1719 main(){return(0);}
|
|
1720 EOF
|
286
|
1721 if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
157
|
1722 ac_cv_prog_cc_works=yes
|
|
1723 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1724 if (./conftest; exit) 2>/dev/null; then
|
|
1725 ac_cv_prog_cc_cross=no
|
|
1726 else
|
|
1727 ac_cv_prog_cc_cross=yes
|
|
1728 fi
|
|
1729 else
|
|
1730 echo "configure: failed program was:" >&5
|
|
1731 cat conftest.$ac_ext >&5
|
|
1732 ac_cv_prog_cc_works=no
|
|
1733 fi
|
|
1734 rm -fr conftest*
|
|
1735
|
|
1736 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1737 if test $ac_cv_prog_cc_works = no; then
|
|
1738 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1739 fi
|
|
1740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
286
|
1741 echo "configure:1742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
1742 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1743 cross_compiling=$ac_cv_prog_cc_cross
|
|
1744
|
|
1745 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
286
|
1746 echo "configure:1747: checking whether we are using GNU C" >&5
|
157
|
1747
|
|
1748 cat > conftest.c <<EOF
|
|
1749 #ifdef __GNUC__
|
|
1750 yes;
|
|
1751 #endif
|
|
1752 EOF
|
286
|
1753 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
1754 ac_cv_prog_gcc=yes
|
|
1755 else
|
|
1756 ac_cv_prog_gcc=no
|
|
1757 fi
|
|
1758
|
|
1759 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1760
|
|
1761 if test $ac_cv_prog_gcc = yes; then
|
|
1762 GCC=yes
|
|
1763 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1764 ac_save_CFLAGS="$CFLAGS"
|
|
1765 CFLAGS=
|
|
1766 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
286
|
1767 echo "configure:1768: checking whether ${CC-cc} accepts -g" >&5
|
157
|
1768
|
|
1769 echo 'void f(){}' > conftest.c
|
|
1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1771 ac_cv_prog_cc_g=yes
|
|
1772 else
|
|
1773 ac_cv_prog_cc_g=no
|
|
1774 fi
|
|
1775 rm -f conftest*
|
|
1776
|
|
1777
|
|
1778 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
1779 if test "$ac_test_CFLAGS" = set; then
|
|
1780 CFLAGS="$ac_save_CFLAGS"
|
|
1781 elif test $ac_cv_prog_cc_g = yes; then
|
|
1782 CFLAGS="-g -O2"
|
|
1783 else
|
|
1784 CFLAGS="-O2"
|
|
1785 fi
|
|
1786 else
|
|
1787 GCC=
|
|
1788 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
1789 fi
|
|
1790
|
169
|
1791 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
1792 CC=gcc
|
|
1793 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1794 set dummy gcc; ac_word=$2
|
|
1795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1796 echo "configure:1797: checking for $ac_word" >&5
|
157
|
1797
|
|
1798 if test -n "$CC"; then
|
|
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1800 else
|
|
1801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1802 for ac_dir in $PATH; do
|
|
1803 test -z "$ac_dir" && ac_dir=.
|
|
1804 if test -f $ac_dir/$ac_word; then
|
|
1805 ac_cv_prog_CC="gcc"
|
|
1806 break
|
|
1807 fi
|
|
1808 done
|
|
1809 IFS="$ac_save_ifs"
|
|
1810 fi
|
|
1811 CC="$ac_cv_prog_CC"
|
|
1812 if test -n "$CC"; then
|
|
1813 echo "$ac_t""$CC" 1>&6
|
|
1814 else
|
|
1815 echo "$ac_t""no" 1>&6
|
|
1816 fi
|
|
1817
|
|
1818 if test -z "$CC"; then
|
|
1819 # Extract the first word of "cc", so it can be a program name with args.
|
|
1820 set dummy cc; ac_word=$2
|
|
1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
286
|
1822 echo "configure:1823: checking for $ac_word" >&5
|
149
|
1823
|
|
1824 if test -n "$CC"; then
|
|
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1826 else
|
|
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
1828 ac_prog_rejected=no
|
|
1829 for ac_dir in $PATH; do
|
|
1830 test -z "$ac_dir" && ac_dir=.
|
|
1831 if test -f $ac_dir/$ac_word; then
|
|
1832 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1833 ac_prog_rejected=yes
|
|
1834 continue
|
|
1835 fi
|
|
1836 ac_cv_prog_CC="cc"
|
|
1837 break
|
|
1838 fi
|
|
1839 done
|
|
1840 IFS="$ac_save_ifs"
|
|
1841 if test $ac_prog_rejected = yes; then
|
|
1842 # We found a bogon in the path, so make sure we never use it.
|
|
1843 set dummy $ac_cv_prog_CC
|
|
1844 shift
|
|
1845 if test $# -gt 0; then
|
|
1846 # We chose a different compiler from the bogus one.
|
|
1847 # However, it has the same basename, so the bogon will be chosen
|
|
1848 # first if we set CC to just the basename; use the full file name.
|
|
1849 shift
|
|
1850 set dummy "$ac_dir/$ac_word" "$@"
|
|
1851 shift
|
|
1852 ac_cv_prog_CC="$@"
|
|
1853 fi
|
|
1854 fi
|
|
1855 fi
|
|
1856 CC="$ac_cv_prog_CC"
|
|
1857 if test -n "$CC"; then
|
|
1858 echo "$ac_t""$CC" 1>&6
|
|
1859 else
|
|
1860 echo "$ac_t""no" 1>&6
|
|
1861 fi
|
|
1862
|
|
1863 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1864 fi
|
|
1865
|
|
1866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
286
|
1867 echo "configure:1868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
1868
|
|
1869 ac_ext=c
|
151
|
1870 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1871 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
173
|
1872 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
1873 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1874 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1875 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1876 cross_compiling=no
|
|
1877
|
|
1878 cat > conftest.$ac_ext <<EOF
|
286
|
1879 #line 1880 "configure"
|
149
|
1880 #include "confdefs.h"
|
|
1881 main(){return(0);}
|
|
1882 EOF
|
286
|
1883 if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
1884 ac_cv_prog_cc_works=yes
|
|
1885 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1886 if (./conftest; exit) 2>/dev/null; then
|
|
1887 ac_cv_prog_cc_cross=no
|
|
1888 else
|
|
1889 ac_cv_prog_cc_cross=yes
|
|
1890 fi
|
|
1891 else
|
|
1892 echo "configure: failed program was:" >&5
|
|
1893 cat conftest.$ac_ext >&5
|
|
1894 ac_cv_prog_cc_works=no
|
|
1895 fi
|
|
1896 rm -fr conftest*
|
|
1897
|
|
1898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1899 if test $ac_cv_prog_cc_works = no; then
|
|
1900 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1901 fi
|
|
1902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
286
|
1903 echo "configure:1904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1905 cross_compiling=$ac_cv_prog_cc_cross
|
|
1906
|
|
1907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
286
|
1908 echo "configure:1909: checking whether we are using GNU C" >&5
|
149
|
1909
|
|
1910 cat > conftest.c <<EOF
|
|
1911 #ifdef __GNUC__
|
|
1912 yes;
|
|
1913 #endif
|
|
1914 EOF
|
286
|
1915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1916 ac_cv_prog_gcc=yes
|
|
1917 else
|
|
1918 ac_cv_prog_gcc=no
|
|
1919 fi
|
|
1920
|
|
1921 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1922
|
|
1923 if test $ac_cv_prog_gcc = yes; then
|
|
1924 GCC=yes
|
|
1925 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1926 ac_save_CFLAGS="$CFLAGS"
|
|
1927 CFLAGS=
|
|
1928 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
286
|
1929 echo "configure:1930: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1930
|
|
1931 echo 'void f(){}' > conftest.c
|
|
1932 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1933 ac_cv_prog_cc_g=yes
|
|
1934 else
|
|
1935 ac_cv_prog_cc_g=no
|
|
1936 fi
|
|
1937 rm -f conftest*
|
|
1938
|
|
1939
|
|
1940 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
1941 if test "$ac_test_CFLAGS" = set; then
|
|
1942 CFLAGS="$ac_save_CFLAGS"
|
|
1943 elif test $ac_cv_prog_cc_g = yes; then
|
|
1944 CFLAGS="-g -O2"
|
|
1945 else
|
|
1946 CFLAGS="-O2"
|
|
1947 fi
|
|
1948 else
|
|
1949 GCC=
|
|
1950 test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|
1951 fi
|
|
1952
|
157
|
1953 fi
|
|
1954 CFLAGS="$xe_save_CFLAGS"
|
149
|
1955
|
171
|
1956
|
|
1957 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
1958
|
169
|
1959 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
1960
|
|
1961 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
286
|
1962 echo "configure:1963: checking how to run the C preprocessor" >&5
|
149
|
1963 # On Suns, sometimes $CPP names a directory.
|
|
1964 if test -n "$CPP" && test -d "$CPP"; then
|
|
1965 CPP=
|
|
1966 fi
|
0
|
1967 if test -z "$CPP"; then
|
149
|
1968
|
0
|
1969 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
1970 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
1971 CPP="${CC-cc} -E"
|
149
|
1972 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
1973 # not just through cpp.
|
|
1974 cat > conftest.$ac_ext <<EOF
|
286
|
1975 #line 1976 "configure"
|
149
|
1976 #include "confdefs.h"
|
|
1977 #include <assert.h>
|
0
|
1978 Syntax Error
|
|
1979 EOF
|
149
|
1980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
286
|
1981 { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
1982 ac_err=`grep -v '^ *+' conftest.out`
|
|
1983 if test -z "$ac_err"; then
|
|
1984 :
|
|
1985 else
|
|
1986 echo "$ac_err" >&5
|
|
1987 echo "configure: failed program was:" >&5
|
|
1988 cat conftest.$ac_ext >&5
|
|
1989 rm -rf conftest*
|
|
1990 CPP="${CC-cc} -E -traditional-cpp"
|
|
1991 cat > conftest.$ac_ext <<EOF
|
286
|
1992 #line 1993 "configure"
|
149
|
1993 #include "confdefs.h"
|
|
1994 #include <assert.h>
|
|
1995 Syntax Error
|
|
1996 EOF
|
|
1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
286
|
1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
1999 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
2000 if test -z "$ac_err"; then
|
|
2001 :
|
|
2002 else
|
149
|
2003 echo "$ac_err" >&5
|
|
2004 echo "configure: failed program was:" >&5
|
|
2005 cat conftest.$ac_ext >&5
|
0
|
2006 rm -rf conftest*
|
|
2007 CPP=/lib/cpp
|
|
2008 fi
|
|
2009 rm -f conftest*
|
|
2010 fi
|
|
2011 rm -f conftest*
|
149
|
2012 ac_cv_prog_CPP="$CPP"
|
|
2013 CPP="$ac_cv_prog_CPP"
|
|
2014 else
|
|
2015 ac_cv_prog_CPP="$CPP"
|
|
2016 fi
|
|
2017 echo "$ac_t""$CPP" 1>&6
|
|
2018
|
|
2019
|
157
|
2020 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
286
|
2021 echo "configure:2022: checking for AIX" >&5
|
|
2022 cat > conftest.$ac_ext <<EOF
|
|
2023 #line 2024 "configure"
|
157
|
2024 #include "confdefs.h"
|
|
2025 #ifdef _AIX
|
|
2026 yes
|
|
2027 #endif
|
|
2028
|
|
2029 EOF
|
|
2030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2031 egrep "yes" >/dev/null 2>&1; then
|
|
2032 rm -rf conftest*
|
|
2033 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2034 Defining _ALL_SOURCE
|
|
2035 EOF
|
|
2036 cat >> confdefs.h <<\EOF
|
|
2037 #define _ALL_SOURCE 1
|
|
2038 EOF
|
|
2039 }
|
|
2040
|
|
2041 else
|
|
2042 rm -rf conftest*
|
|
2043 echo "$ac_t""no" 1>&6
|
|
2044 fi
|
|
2045 rm -f conftest*
|
|
2046
|
|
2047
|
|
2048
|
243
|
2049 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
286
|
2050 echo "configure:2051: checking for GNU libc" >&5
|
|
2051 cat > conftest.$ac_ext <<EOF
|
|
2052 #line 2053 "configure"
|
243
|
2053 #include "confdefs.h"
|
|
2054 #include <features.h>
|
|
2055 int main() {
|
|
2056
|
|
2057 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2058 #error Not a GNU libc system :-(
|
|
2059 ******* ======= ******** &&&&&&&&
|
|
2060 #endif
|
|
2061
|
|
2062 ; return 0; }
|
|
2063 EOF
|
286
|
2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2065 rm -rf conftest*
|
|
2066 have_glibc=yes
|
|
2067 else
|
|
2068 echo "configure: failed program was:" >&5
|
|
2069 cat conftest.$ac_ext >&5
|
|
2070 rm -rf conftest*
|
|
2071 have_glibc=no
|
|
2072 fi
|
|
2073 rm -f conftest*
|
|
2074 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2075 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2076 Defining _GNU_SOURCE
|
|
2077 EOF
|
|
2078 cat >> confdefs.h <<\EOF
|
|
2079 #define _GNU_SOURCE 1
|
|
2080 EOF
|
|
2081 }
|
|
2082
|
243
|
2083
|
306
|
2084
|
|
2085 cat > conftest.$ac_ext <<EOF
|
|
2086 #line 2087 "configure"
|
|
2087 #include "confdefs.h"
|
|
2088 int main () {
|
|
2089 #if defined __SUNPRO_C
|
|
2090 return 11;
|
|
2091 #elif defined __DECC
|
|
2092 return 12;
|
|
2093 #else
|
|
2094 return 0;
|
157
|
2095 #endif
|
306
|
2096 }
|
|
2097 EOF
|
|
2098 if { (eval echo configure:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
|
2099 then
|
|
2100 :
|
|
2101 else
|
|
2102 conftest_rc="$?"
|
|
2103 echo "configure: failed program was:" >&5
|
|
2104 cat conftest.$ac_ext >&5
|
|
2105 rm -fr conftest*
|
|
2106 case "$conftest_rc" in
|
|
2107 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
2108 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
|
2109 esac
|
|
2110 fi
|
|
2111 rm -fr conftest*
|
|
2112
|
157
|
2113
|
0
|
2114
|
149
|
2115
|
|
2116 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2117
|
|
2118 tempcname="conftest.c"
|
|
2119
|
|
2120
|
|
2121
|
284
|
2122 cat > $tempcname <<EOF
|
149
|
2123 #define NOT_C_CODE
|
|
2124 #define C_SWITCH_SITE
|
|
2125 #define C_SWITCH_X_SITE
|
|
2126 #define LD_SWITCH_SITE
|
|
2127 #define LD_SWITCH_X_SITE
|
|
2128 #define LD_SWITCH_X_SITE_AUX
|
284
|
2129 #define OS_RELEASE $os_release
|
|
2130 #include "$srcdir/src/$opsysfile"
|
|
2131 #include "$srcdir/src/$machfile"
|
149
|
2132
|
|
2133 #ifndef LIBS_MACHINE
|
151
|
2134 #define LIBS_MACHINE
|
149
|
2135 #endif
|
|
2136 configure___ libs_machine=LIBS_MACHINE
|
|
2137
|
|
2138 #ifndef LIBS_SYSTEM
|
151
|
2139 #define LIBS_SYSTEM
|
149
|
2140 #endif
|
|
2141 configure___ libs_system=LIBS_SYSTEM
|
|
2142
|
|
2143 #ifndef LIBS_TERMCAP
|
151
|
2144 #define LIBS_TERMCAP
|
149
|
2145 #endif
|
|
2146 configure___ libs_termcap=LIBS_TERMCAP
|
|
2147
|
|
2148 #ifndef LIB_STANDARD
|
151
|
2149 #define LIB_STANDARD
|
149
|
2150 #endif
|
|
2151 configure___ libs_standard=LIB_STANDARD
|
|
2152
|
|
2153
|
163
|
2154 #ifndef OBJECTS_MACHINE
|
|
2155 #define OBJECTS_MACHINE
|
|
2156 #endif
|
|
2157 configure___ objects_machine=OBJECTS_MACHINE
|
|
2158
|
|
2159 #ifndef OBJECTS_SYSTEM
|
|
2160 #define OBJECTS_SYSTEM
|
|
2161 #endif
|
|
2162 configure___ objects_system=OBJECTS_SYSTEM
|
|
2163
|
|
2164
|
149
|
2165 #ifndef C_SWITCH_MACHINE
|
151
|
2166 #define C_SWITCH_MACHINE
|
149
|
2167 #endif
|
|
2168 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2169
|
157
|
2170 #ifndef C_SWITCH_SYSTEM
|
|
2171 #define C_SWITCH_SYSTEM
|
|
2172 #endif
|
|
2173 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2174
|
|
2175
|
|
2176 #ifndef LD_SWITCH_MACHINE
|
|
2177 #define LD_SWITCH_MACHINE
|
|
2178 #endif
|
|
2179 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2180
|
|
2181 #ifndef LD_SWITCH_SYSTEM
|
|
2182 #define LD_SWITCH_SYSTEM
|
|
2183 #endif
|
|
2184 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2185
|
149
|
2186
|
|
2187 #ifndef UNEXEC
|
157
|
2188 #define UNEXEC "unexec.o"
|
149
|
2189 #endif
|
|
2190 configure___ unexec=UNEXEC
|
|
2191
|
|
2192
|
163
|
2193 #ifndef LD_SWITCH_SHARED
|
|
2194 #define LD_SWITCH_SHARED "-c"
|
|
2195 #endif
|
|
2196 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2197
|
|
2198
|
|
2199 #ifdef ORDINARY_LINK
|
284
|
2200 #define LD "\$(CC) \$(CFLAGS)"
|
163
|
2201 #else /* no ORDINARY LINK */
|
|
2202 #ifdef COFF_ENCAPSULATE
|
284
|
2203 #define LD "\$(CC) -nostdlib"
|
163
|
2204 #else /* not COFF_ENCAPSULATE */
|
|
2205 #ifdef LINKER
|
|
2206 #define LD LINKER
|
|
2207 #else /* ! defined (LINKER) */
|
|
2208 #define LD "ld"
|
|
2209 #endif /* ! defined (LINKER) */
|
|
2210 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2211 #endif /* not ORDINARY_LINK */
|
|
2212 configure___ ld=LD
|
|
2213
|
|
2214 #ifndef LIB_GCC
|
|
2215 #define LIB_GCC
|
|
2216 #endif
|
|
2217 configure___ lib_gcc=LIB_GCC
|
|
2218
|
|
2219 #ifndef LD_TEXT_START_ADDR
|
|
2220 #define LD_TEXT_START_ADDR
|
|
2221 #endif
|
|
2222 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2223
|
|
2224
|
|
2225 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2226 #ifdef NO_REMAP
|
|
2227 #ifdef COFF_ENCAPSULATE
|
|
2228 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2229 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2230 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2231 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2232 #else /* ! defined (NO_REMAP) */
|
|
2233 #define START_FILES "ecrt0.o"
|
|
2234 #endif /* ! defined (NO_REMAP) */
|
|
2235 #endif /* no ORDINARY_LINK */
|
|
2236 #ifndef START_FILES
|
|
2237 #define START_FILES
|
|
2238 #endif
|
|
2239 configure___ start_files=START_FILES
|
|
2240
|
153
|
2241 #ifdef ORDINARY_LINK
|
|
2242 configure___ ordinary_link=yes
|
|
2243 #else
|
|
2244 configure___ ordinary_link=no
|
|
2245 #endif
|
|
2246
|
149
|
2247 #ifdef SYSTEM_MALLOC
|
|
2248 configure___ system_malloc=yes
|
|
2249 #else
|
|
2250 configure___ system_malloc=no
|
|
2251 #endif
|
|
2252
|
|
2253 #ifdef TERMINFO
|
|
2254 configure___ have_terminfo=yes
|
|
2255 #else
|
|
2256 configure___ have_terminfo=no
|
|
2257 #endif
|
|
2258
|
|
2259 #ifdef MAIL_USE_FLOCK
|
|
2260 configure___ mail_use_flock=yes
|
|
2261 #else
|
|
2262 configure___ mail_use_flock=no
|
|
2263 #endif
|
|
2264
|
|
2265 #ifdef MAIL_USE_LOCKF
|
|
2266 configure___ mail_use_lockf=yes
|
|
2267 #else
|
|
2268 configure___ mail_use_lockf=no
|
|
2269 #endif
|
|
2270
|
284
|
2271 EOF
|
|
2272
|
149
|
2273 CPP=`eval "echo $CPP"`
|
|
2274 eval `$CPP -Isrc $tempcname \
|
165
|
2275 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2276
|
149
|
2277 rm $tempcname
|
|
2278
|
163
|
2279 test "$extra_verbose" = "yes" && \
|
201
|
2280 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
|
2281
|
153
|
2282 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2283
|
306
|
2284 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
|
|
2285
|
272
|
2286 if test "$cflags_specified" = "no"; then
|
157
|
2287 if test "$GCC" = "yes"; then
|
286
|
2288 CFLAGS="-g -O3 -Wall -Wno-switch"
|
288
|
2289 test "$opsys $machine" = "cygwin32 intel386" && \
|
|
2290 CFLAGS="-g -O2 -Wall -Wno-switch"
|
306
|
2291 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2292 case "$opsys" in
|
163
|
2293 sol2 ) CFLAGS="-v -xO4" ;;
|
|
2294 sunos4* ) CFLAGS="-xO2";;
|
157
|
2295 esac
|
306
|
2296 elif test "$__DECC" = "yes"; then
|
|
2297 CFLAGS="-O3"
|
207
|
2298 elif test "$CC" = "xlc"; then
|
|
2299 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
306
|
2300 else
|
|
2301 CFLAGS="-O" ; fi
|
272
|
2302 fi
|
|
2303
|
|
2304
|
|
2305 if test "$GCC" = "yes"; then
|
|
2306 set x $ld_switch_system; shift; ld_switch_system=""
|
|
2307 while test -n "$1"; do
|
|
2308 case $1 in
|
|
2309 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
2310 -L* | -l* | -u* | -Wl* ) ld_switch_system="$ld_switch_system $1" ;;
|
|
2311 -Xlinker* ) ;;
|
|
2312 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
2313 esac
|
|
2314 shift
|
|
2315 done
|
157
|
2316 fi
|
151
|
2317
|
163
|
2318 if test "$GCC" = "yes"; then
|
272
|
2319 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
2320 while test -n "$1"; do
|
|
2321 case $1 in
|
|
2322 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
2323 -L* | -l* | -u* | -Wl* ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
2324 -Xlinker* ) ;;
|
272
|
2325 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
2326 esac
|
272
|
2327 shift
|
163
|
2328 done
|
272
|
2329 fi
|
|
2330
|
|
2331 if test "$GCC" = "yes"; then
|
|
2332 set x $LDFLAGS; shift; LDFLAGS=""
|
|
2333 while test -n "$1"; do
|
|
2334 case $1 in
|
|
2335 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
2336 -L* | -l* | -u* | -Wl* ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
2337 -Xlinker* ) ;;
|
272
|
2338 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
2339 esac
|
272
|
2340 shift
|
163
|
2341 done
|
272
|
2342 fi
|
|
2343
|
|
2344 if test "$GCC" = "yes"; then
|
|
2345 set x $ld_call_shared; shift; ld_call_shared=""
|
|
2346 while test -n "$1"; do
|
|
2347 case $1 in
|
|
2348 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
2349 -L* | -l* | -u* | -Wl* ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
2350 -Xlinker* ) ;;
|
272
|
2351 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
2352 esac
|
272
|
2353 shift
|
173
|
2354 done
|
163
|
2355 fi
|
|
2356
|
|
2357 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
2358 echo " xemacs will be linked with \"$objects_machine\""
|
|
2359 fi
|
|
2360 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
2361 echo " xemacs will be linked with \"$objects_system\""
|
|
2362 fi
|
|
2363 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
2364 echo " xemacs will be linked with \"$unexec\""
|
|
2365 fi
|
|
2366
|
163
|
2367 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
306
|
2368 echo "configure:2369: checking for dynodump" >&5
|
163
|
2369 if test "$unexec" != "unexsol2.o"; then
|
|
2370 echo "$ac_t""no" 1>&6
|
|
2371 else
|
|
2372 echo "$ac_t""yes" 1>&6
|
|
2373 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2374 Defining DYNODUMP
|
|
2375 EOF
|
|
2376 cat >> confdefs.h <<\EOF
|
|
2377 #define DYNODUMP 1
|
|
2378 EOF
|
|
2379 }
|
|
2380
|
|
2381 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
2382 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
2383 case "$machine" in
|
|
2384 sparc ) dynodump_arch=sparc ;;
|
|
2385 *86* ) dynodump_arch=i386 ;;
|
|
2386 powerpc ) dynodump_arch=ppc ;;
|
|
2387 esac
|
|
2388 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
|
|
2389 fi
|
|
2390
|
|
2391
|
274
|
2392 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
272
|
2393
|
207
|
2394 if test "$unexec" = "unexaix.o"; then
|
219
|
2395 if test "$dynamic" = "no"; then
|
207
|
2396 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
2397 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
2398 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
2399 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
2400 done
|
|
2401 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
2402 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
2403 done
|
294
|
2404
|
|
2405 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
306
|
2406 echo "configure:2407: checking for terminateAndUnload in -lC" >&5
|
294
|
2407 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
2408
|
|
2409 xe_check_libs=" -lC "
|
|
2410 cat > conftest.$ac_ext <<EOF
|
306
|
2411 #line 2412 "configure"
|
294
|
2412 #include "confdefs.h"
|
|
2413 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2414 /* We use char because int might match the return type of a gcc2
|
|
2415 builtin and then its argument prototype would still apply. */
|
|
2416 char terminateAndUnload();
|
|
2417
|
|
2418 int main() {
|
|
2419 terminateAndUnload()
|
|
2420 ; return 0; }
|
|
2421 EOF
|
306
|
2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
294
|
2423 rm -rf conftest*
|
|
2424 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
2425 else
|
|
2426 echo "configure: failed program was:" >&5
|
|
2427 cat conftest.$ac_ext >&5
|
|
2428 rm -rf conftest*
|
|
2429 eval "ac_cv_lib_$ac_lib_var=no"
|
|
2430 fi
|
|
2431 rm -f conftest*
|
|
2432 xe_check_libs=""
|
|
2433
|
|
2434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
2435 echo "$ac_t""yes" 1>&6
|
|
2436 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
2437 else
|
|
2438 echo "$ac_t""no" 1>&6
|
|
2439 fi
|
|
2440
|
|
2441
|
272
|
2442 fi
|
207
|
2443 elif test -n "$ld_text_start_addr"; then
|
|
2444 start_flags="-T $ld_text_start_addr -e __start"
|
|
2445 fi
|
|
2446
|
|
2447
|
|
2448
|
163
|
2449
|
|
2450 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
2451 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
2452 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
2453 fi
|
|
2454 test "$GCC" != "yes" && lib_gcc=
|
|
2455
|
|
2456
|
|
2457
|
151
|
2458
|
209
|
2459
|
|
2460 if test -n "$site_prefixes"; then
|
|
2461 for arg in $site_prefixes; do
|
272
|
2462 case "$arg" in
|
|
2463 -* ) ;;
|
|
2464 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;;
|
209
|
2465 esac
|
|
2466 c_switch_site="$c_switch_site $argi" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argi\" to \$c_switch_site"; fi
|
|
2467 ld_switch_site="$ld_switch_site $argl" && if test "$extra_verbose" = "yes"; then echo " Appending \"$argl\" to \$ld_switch_site"; fi
|
|
2468 done
|
|
2469 fi
|
|
2470
|
151
|
2471 if test -n "$site_libraries"; then
|
|
2472 for arg in $site_libraries; do
|
|
2473 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac
|
|
2474 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
2475 done
|
|
2476 fi
|
|
2477
|
272
|
2478 if test -n "$site_includes"; then
|
151
|
2479 for arg in $site_includes; do
|
|
2480 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac
|
|
2481 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
2482 done
|
|
2483 fi
|
|
2484
|
157
|
2485
|
151
|
2486 for dir in "/usr/ccs/lib"; do
|
|
2487 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
|
|
2488 done
|
|
2489
|
272
|
2490 if test -n "$site_runtime_libraries"; then
|
165
|
2491 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
2492 export LD_RUN_PATH
|
|
2493 fi
|
|
2494
|
|
2495
|
|
2496 if test "$dynamic" = "no"; then add_runtime_path=no
|
|
2497 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
2498 else case "$opsys" in
|
306
|
2499 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
2500 * ) add_runtime_path=no ;;
|
|
2501 esac
|
|
2502 fi
|
|
2503
|
|
2504 if test "$add_runtime_path" = "yes"; then
|
|
2505 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
306
|
2506 echo "configure:2507: checking "for runtime libraries flag"" >&5
|
|
2507 case "$opsys" in
|
|
2508 sol2 ) dash_r="-R" ;;
|
308
|
2509 decosf* | linux* ) dash_r="-rpath " ;;
|
306
|
2510 *)
|
|
2511 dash_r=""
|
|
2512 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
2513 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
2514
|
272
|
2515 if test "$GCC" = "yes"; then
|
|
2516 set x $xe_check_libs; shift; xe_check_libs=""
|
|
2517 while test -n "$1"; do
|
|
2518 case $1 in
|
|
2519 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
2520 -L* | -l* | -u* | -Wl* ) xe_check_libs="$xe_check_libs $1" ;;
|
|
2521 -Xlinker* ) ;;
|
|
2522 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
2523 esac
|
|
2524 shift
|
|
2525 done
|
|
2526 fi
|
306
|
2527 cat > conftest.$ac_ext <<EOF
|
|
2528 #line 2529 "configure"
|
|
2529 #include "confdefs.h"
|
|
2530
|
|
2531 int main() {
|
|
2532
|
|
2533 ; return 0; }
|
|
2534 EOF
|
|
2535 if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
2536 rm -rf conftest*
|
|
2537 dash_r="$try_dash_r"
|
|
2538 else
|
|
2539 echo "configure: failed program was:" >&5
|
|
2540 cat conftest.$ac_ext >&5
|
|
2541 fi
|
|
2542 rm -f conftest*
|
306
|
2543 xe_check_libs=""
|
|
2544 test -n "$dash_r" && break
|
|
2545 done ;;
|
|
2546 esac
|
151
|
2547 if test -n "$dash_r";
|
|
2548 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
2549 else echo "$ac_t""NONE" 1>&6
|
|
2550 fi
|
|
2551 fi
|
|
2552
|
163
|
2553 xe_add_unique_runpath_dir='
|
|
2554 xe_add_p=yes
|
|
2555 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
2556 done
|
|
2557 if test "$xe_add_p" = "yes"; then
|
|
2558 test -n "$runpath" && runpath="${runpath}:"
|
|
2559 runpath="${runpath}${xe_runpath_dir}"
|
|
2560 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
2561 fi'
|
|
2562
|
|
2563
|
151
|
2564
|
155
|
2565
|
151
|
2566 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
2567 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
2568 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
2569
|
163
|
2570 runpath="" runpath_dirs=""
|
155
|
2571 if test -n "$LD_RUN_PATH"; then
|
151
|
2572 runpath="$LD_RUN_PATH"
|
155
|
2573 elif test "$GCC" = "yes"; then
|
163
|
2574 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
2575 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
2576 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
2577 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
2578 case "$arg" in P,* | -L* | -R* )
|
159
|
2579 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
2580 {
|
155
|
2581 xe_runpath_dir="$dir"
|
163
|
2582 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
2583 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
2584 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
2585 eval "$xe_add_unique_runpath_dir"
|
|
2586 }
|
155
|
2587 done ;;
|
|
2588 esac
|
|
2589 done
|
163
|
2590 ld_switch_run="$ld_switch_run_save"
|
155
|
2591 rm -f conftest*
|
151
|
2592 else
|
155
|
2593 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
2594 case "$arg" in -L*) {
|
159
|
2595 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
2596 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
2597 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
2598 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
2599 eval "$xe_add_unique_runpath_dir"
|
|
2600 };; esac
|
151
|
2601 done
|
163
|
2602 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
2603 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
2604 eval "$xe_add_unique_runpath_dir";
|
|
2605 fi
|
155
|
2606 fi
|
151
|
2607 if test -n "$runpath"; then
|
|
2608 ld_switch_run="${dash_r}${runpath}"
|
272
|
2609
|
|
2610 if test "$GCC" = "yes"; then
|
|
2611 set x $ld_switch_run; shift; ld_switch_run=""
|
|
2612 while test -n "$1"; do
|
|
2613 case $1 in
|
|
2614 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
2615 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
2616 -Xlinker* ) ;;
|
|
2617 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
2618 esac
|
|
2619 shift
|
|
2620 done
|
|
2621 fi
|
151
|
2622 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
2623 fi
|
|
2624 fi
|
|
2625
|
|
2626
|
149
|
2627
|
|
2628 GNU_MALLOC=yes
|
261
|
2629 if test "$with_dlmalloc" != "no"; then
|
|
2630 doug_lea_malloc=yes
|
|
2631 else
|
|
2632 doug_lea_malloc=no
|
|
2633 fi
|
259
|
2634 after_morecore_hook_exists=yes
|
255
|
2635 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
|
306
|
2636 echo "configure:2637: checking for malloc_get_state" >&5
|
|
2637
|
|
2638 cat > conftest.$ac_ext <<EOF
|
|
2639 #line 2640 "configure"
|
255
|
2640 #include "confdefs.h"
|
|
2641 /* System header to define __stub macros and hopefully few prototypes,
|
|
2642 which can conflict with char malloc_get_state(); below. */
|
|
2643 #include <assert.h>
|
|
2644 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2645 /* We use char because int might match the return type of a gcc2
|
|
2646 builtin and then its argument prototype would still apply. */
|
|
2647 char malloc_get_state();
|
|
2648
|
|
2649 int main() {
|
|
2650
|
|
2651 /* The GNU C library defines this for functions which it implements
|
|
2652 to always fail with ENOSYS. Some functions are actually named
|
|
2653 something starting with __ and the normal name is an alias. */
|
|
2654 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
|
|
2655 choke me
|
|
2656 #else
|
|
2657 malloc_get_state();
|
|
2658 #endif
|
|
2659
|
|
2660 ; return 0; }
|
|
2661 EOF
|
306
|
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
255
|
2663 rm -rf conftest*
|
|
2664 eval "ac_cv_func_malloc_get_state=yes"
|
|
2665 else
|
|
2666 echo "configure: failed program was:" >&5
|
|
2667 cat conftest.$ac_ext >&5
|
|
2668 rm -rf conftest*
|
|
2669 eval "ac_cv_func_malloc_get_state=no"
|
|
2670 fi
|
|
2671 rm -f conftest*
|
|
2672
|
|
2673 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
|
|
2674 echo "$ac_t""yes" 1>&6
|
|
2675 :
|
|
2676 else
|
|
2677 echo "$ac_t""no" 1>&6
|
|
2678 doug_lea_malloc=no
|
|
2679 fi
|
|
2680
|
|
2681 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
306
|
2682 echo "configure:2683: checking for malloc_set_state" >&5
|
|
2683
|
|
2684 cat > conftest.$ac_ext <<EOF
|
|
2685 #line 2686 "configure"
|
255
|
2686 #include "confdefs.h"
|
|
2687 /* System header to define __stub macros and hopefully few prototypes,
|
|
2688 which can conflict with char malloc_set_state(); below. */
|
|
2689 #include <assert.h>
|
|
2690 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2691 /* We use char because int might match the return type of a gcc2
|
|
2692 builtin and then its argument prototype would still apply. */
|
|
2693 char malloc_set_state();
|
|
2694
|
|
2695 int main() {
|
|
2696
|
|
2697 /* The GNU C library defines this for functions which it implements
|
|
2698 to always fail with ENOSYS. Some functions are actually named
|
|
2699 something starting with __ and the normal name is an alias. */
|
|
2700 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
2701 choke me
|
|
2702 #else
|
|
2703 malloc_set_state();
|
|
2704 #endif
|
|
2705
|
|
2706 ; return 0; }
|
|
2707 EOF
|
306
|
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
255
|
2709 rm -rf conftest*
|
|
2710 eval "ac_cv_func_malloc_set_state=yes"
|
|
2711 else
|
|
2712 echo "configure: failed program was:" >&5
|
|
2713 cat conftest.$ac_ext >&5
|
|
2714 rm -rf conftest*
|
|
2715 eval "ac_cv_func_malloc_set_state=no"
|
|
2716 fi
|
|
2717 rm -f conftest*
|
|
2718
|
|
2719 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
2720 echo "$ac_t""yes" 1>&6
|
|
2721 :
|
|
2722 else
|
|
2723 echo "$ac_t""no" 1>&6
|
|
2724 doug_lea_malloc=no
|
|
2725 fi
|
|
2726
|
|
2727 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
306
|
2728 echo "configure:2729: checking whether __after_morecore_hook exists" >&5
|
|
2729 cat > conftest.$ac_ext <<EOF
|
|
2730 #line 2731 "configure"
|
255
|
2731 #include "confdefs.h"
|
|
2732 extern void (* __after_morecore_hook)();
|
|
2733 int main() {
|
|
2734 __after_morecore_hook = 0
|
|
2735 ; return 0; }
|
|
2736 EOF
|
306
|
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
259
|
2738 rm -rf conftest*
|
|
2739 echo "$ac_t""yes" 1>&6
|
|
2740 else
|
|
2741 echo "configure: failed program was:" >&5
|
|
2742 cat conftest.$ac_ext >&5
|
|
2743 rm -rf conftest*
|
|
2744 echo "$ac_t""no" 1>&6
|
|
2745 after_morecore_hook_exists=no
|
255
|
2746 fi
|
|
2747 rm -f conftest*
|
149
|
2748 if test "$system_malloc" = "yes" ; then
|
|
2749 GNU_MALLOC=no
|
|
2750 GNU_MALLOC_reason="
|
177
|
2751 (The GNU allocators don't work with this system configuration)."
|
181
|
2752 elif test "$with_system_malloc" = "yes" ; then
|
149
|
2753 GNU_MALLOC=no
|
|
2754 GNU_MALLOC_reason="
|
177
|
2755 (User chose not to use GNU allocators)."
|
181
|
2756 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
2757 GNU_MALLOC=no
|
|
2758 GNU_MALLOC_reason="
|
|
2759 (User chose to use Debugging Malloc)."
|
149
|
2760 fi
|
|
2761
|
255
|
2762 if test "$doug_lea_malloc" = "yes" ; then
|
|
2763 if test "$GNU_MALLOC" = yes ; then
|
|
2764 GNU_MALLOC_reason="
|
259
|
2765 (Using Doug Lea's new malloc from the GNU C Library.)"
|
255
|
2766 fi
|
|
2767 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2768 Defining DOUG_LEA_MALLOC
|
|
2769 EOF
|
|
2770 cat >> confdefs.h <<\EOF
|
|
2771 #define DOUG_LEA_MALLOC 1
|
|
2772 EOF
|
|
2773 }
|
|
2774
|
259
|
2775 if test "$after_morecore_hook_exists" = "no" ; then
|
|
2776 GNU_MALLOC_reason="
|
|
2777 (Using Doug Lea's new malloc from the Linux C Library.)"
|
|
2778 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2779 Defining _NO_MALLOC_WARNING_
|
|
2780 EOF
|
|
2781 cat >> confdefs.h <<\EOF
|
|
2782 #define _NO_MALLOC_WARNING_ 1
|
|
2783 EOF
|
|
2784 }
|
|
2785
|
|
2786 fi
|
272
|
2787 use_minimal_tagbits=yes
|
255
|
2788 fi
|
|
2789
|
149
|
2790
|
267
|
2791
|
|
2792
|
149
|
2793 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
2794 set dummy ranlib; ac_word=$2
|
|
2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
306
|
2796 echo "configure:2797: checking for $ac_word" >&5
|
149
|
2797
|
|
2798 if test -n "$RANLIB"; then
|
|
2799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
2800 else
|
0
|
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
2802 for ac_dir in $PATH; do
|
|
2803 test -z "$ac_dir" && ac_dir=.
|
|
2804 if test -f $ac_dir/$ac_word; then
|
149
|
2805 ac_cv_prog_RANLIB="ranlib"
|
0
|
2806 break
|
|
2807 fi
|
|
2808 done
|
|
2809 IFS="$ac_save_ifs"
|
149
|
2810 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
2811 fi
|
|
2812 RANLIB="$ac_cv_prog_RANLIB"
|
|
2813 if test -n "$RANLIB"; then
|
|
2814 echo "$ac_t""$RANLIB" 1>&6
|
|
2815 else
|
|
2816 echo "$ac_t""no" 1>&6
|
|
2817 fi
|
|
2818
|
|
2819 ac_aux_dir=
|
|
2820 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
2821 if test -f $ac_dir/install-sh; then
|
|
2822 ac_aux_dir=$ac_dir
|
|
2823 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
2824 break
|
|
2825 elif test -f $ac_dir/install.sh; then
|
|
2826 ac_aux_dir=$ac_dir
|
|
2827 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
2828 break
|
|
2829 fi
|
|
2830 done
|
|
2831 if test -z "$ac_aux_dir"; then
|
|
2832 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
2833 fi
|
|
2834 ac_config_guess=$ac_aux_dir/config.guess
|
|
2835 ac_config_sub=$ac_aux_dir/config.sub
|
|
2836 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
2837
|
|
2838 # Find a good install program. We prefer a C program (faster),
|
|
2839 # so one script is as good as another. But avoid the broken or
|
|
2840 # incompatible versions:
|
|
2841 # SysV /etc/install, /usr/sbin/install
|
|
2842 # SunOS /usr/etc/install
|
|
2843 # IRIX /sbin/install
|
|
2844 # AIX /bin/install
|
|
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
2847 # ./install, which can be erroneously created by make from ./install.sh.
|
|
2848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
306
|
2849 echo "configure:2850: checking for a BSD compatible install" >&5
|
149
|
2850 if test -z "$INSTALL"; then
|
|
2851
|
|
2852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
0
|
2853 for ac_dir in $PATH; do
|
149
|
2854 # Account for people who put trailing slashes in PATH elements.
|
|
2855 case "$ac_dir/" in
|
|
2856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
2857 *)
|
|
2858 # OSF1 and SCO ODT 3.0 have their own names for install.
|
149
|
2859 for ac_prog in ginstall installbsd scoinst install; do
|
0
|
2860 if test -f $ac_dir/$ac_prog; then
|
|
2861 if test $ac_prog = install &&
|
|
2862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
2863 # AIX install. It has an incompatible calling convention.
|
|
2864 # OSF/1 installbsd also uses dspmsg, but is usable.
|
|
2865 :
|
|
2866 else
|
149
|
2867 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
2868 break 2
|
|
2869 fi
|
|
2870 fi
|
|
2871 done
|
|
2872 ;;
|
|
2873 esac
|
|
2874 done
|
149
|
2875 IFS="$ac_save_IFS"
|
|
2876
|
|
2877 if test "${ac_cv_path_install+set}" = set; then
|
|
2878 INSTALL="$ac_cv_path_install"
|
|
2879 else
|
|
2880 # As a last resort, use the slow shell script. We don't cache a
|
|
2881 # path for INSTALL within a source directory, because that will
|
|
2882 # break other packages using the cache if that directory is
|
|
2883 # removed, or if the path is relative.
|
|
2884 INSTALL="$ac_install_sh"
|
|
2885 fi
|
|
2886 fi
|
|
2887 echo "$ac_t""$INSTALL" 1>&6
|
|
2888
|
|
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
2890 # It thinks the first close brace ends the variable substitution.
|
|
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
2892
|
|
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
2894
|
|
2895 for ac_prog in 'bison -y' byacc
|
|
2896 do
|
149
|
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
2898 set dummy $ac_prog; ac_word=$2
|
|
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
306
|
2900 echo "configure:2901: checking for $ac_word" >&5
|
149
|
2901
|
|
2902 if test -n "$YACC"; then
|
|
2903 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
2904 else
|
0
|
2905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
2906 for ac_dir in $PATH; do
|
|
2907 test -z "$ac_dir" && ac_dir=.
|
|
2908 if test -f $ac_dir/$ac_word; then
|
149
|
2909 ac_cv_prog_YACC="$ac_prog"
|
0
|
2910 break
|
|
2911 fi
|
|
2912 done
|
|
2913 IFS="$ac_save_ifs"
|
|
2914 fi
|
149
|
2915 YACC="$ac_cv_prog_YACC"
|
|
2916 if test -n "$YACC"; then
|
|
2917 echo "$ac_t""$YACC" 1>&6
|
|
2918 else
|
|
2919 echo "$ac_t""no" 1>&6
|
|
2920 fi
|
0
|
2921
|
|
2922 test -n "$YACC" && break
|
|
2923 done
|
|
2924 test -n "$YACC" || YACC="yacc"
|
|
2925
|
|
2926
|
120
|
2927 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
|
|
2928 do
|
149
|
2929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
2930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
306
|
2931 echo "configure:2932: checking for $ac_hdr" >&5
|
|
2932
|
|
2933 cat > conftest.$ac_ext <<EOF
|
|
2934 #line 2935 "configure"
|
149
|
2935 #include "confdefs.h"
|
|
2936 #include <$ac_hdr>
|
|
2937 EOF
|
|
2938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
2939 { (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
2940 ac_err=`grep -v '^ *+' conftest.out`
|
120
|
2941 if test -z "$ac_err"; then
|
|
2942 rm -rf conftest*
|
149
|
2943 eval "ac_cv_header_$ac_safe=yes"
|
|
2944 else
|
|
2945 echo "$ac_err" >&5
|
|
2946 echo "configure: failed program was:" >&5
|
|
2947 cat conftest.$ac_ext >&5
|
|
2948 rm -rf conftest*
|
|
2949 eval "ac_cv_header_$ac_safe=no"
|
|
2950 fi
|
|
2951 rm -f conftest*
|
|
2952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
2953 echo "$ac_t""yes" 1>&6
|
|
2954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
2955 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2956 Defining $ac_tr_hdr
|
|
2957 EOF
|
|
2958 cat >> confdefs.h <<EOF
|
|
2959 #define $ac_tr_hdr 1
|
|
2960 EOF
|
|
2961 }
|
|
2962
|
|
2963 else
|
|
2964 echo "$ac_t""no" 1>&6
|
|
2965 fi
|
120
|
2966 done
|
|
2967
|
169
|
2968 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
|
120
|
2969 do
|
149
|
2970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
2971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
306
|
2972 echo "configure:2973: checking for $ac_hdr" >&5
|
|
2973
|
|
2974 cat > conftest.$ac_ext <<EOF
|
|
2975 #line 2976 "configure"
|
149
|
2976 #include "confdefs.h"
|
|
2977 #include <$ac_hdr>
|
|
2978 EOF
|
|
2979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
2980 { (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
2981 ac_err=`grep -v '^ *+' conftest.out`
|
120
|
2982 if test -z "$ac_err"; then
|
|
2983 rm -rf conftest*
|
149
|
2984 eval "ac_cv_header_$ac_safe=yes"
|
|
2985 else
|
|
2986 echo "$ac_err" >&5
|
|
2987 echo "configure: failed program was:" >&5
|
|
2988 cat conftest.$ac_ext >&5
|
|
2989 rm -rf conftest*
|
|
2990 eval "ac_cv_header_$ac_safe=no"
|
|
2991 fi
|
|
2992 rm -f conftest*
|
|
2993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
2994 echo "$ac_t""yes" 1>&6
|
|
2995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
2996 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2997 Defining $ac_tr_hdr
|
|
2998 EOF
|
|
2999 cat >> confdefs.h <<EOF
|
|
3000 #define $ac_tr_hdr 1
|
|
3001 EOF
|
|
3002 }
|
|
3003
|
|
3004 else
|
|
3005 echo "$ac_t""no" 1>&6
|
|
3006 fi
|
120
|
3007 done
|
|
3008
|
251
|
3009 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
|
0
|
3010 do
|
149
|
3011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
306
|
3013 echo "configure:3014: checking for $ac_hdr" >&5
|
|
3014
|
|
3015 cat > conftest.$ac_ext <<EOF
|
|
3016 #line 3017 "configure"
|
149
|
3017 #include "confdefs.h"
|
|
3018 #include <$ac_hdr>
|
|
3019 EOF
|
|
3020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
3021 { (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
3022 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
3023 if test -z "$ac_err"; then
|
|
3024 rm -rf conftest*
|
149
|
3025 eval "ac_cv_header_$ac_safe=yes"
|
|
3026 else
|
|
3027 echo "$ac_err" >&5
|
|
3028 echo "configure: failed program was:" >&5
|
|
3029 cat conftest.$ac_ext >&5
|
|
3030 rm -rf conftest*
|
|
3031 eval "ac_cv_header_$ac_safe=no"
|
|
3032 fi
|
|
3033 rm -f conftest*
|
|
3034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3035 echo "$ac_t""yes" 1>&6
|
|
3036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3037 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3038 Defining $ac_tr_hdr
|
|
3039 EOF
|
|
3040 cat >> confdefs.h <<EOF
|
|
3041 #define $ac_tr_hdr 1
|
|
3042 EOF
|
|
3043 }
|
|
3044
|
|
3045 else
|
|
3046 echo "$ac_t""no" 1>&6
|
|
3047 fi
|
0
|
3048 done
|
|
3049
|
155
|
3050 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
306
|
3051 echo "configure:3052: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3052
|
|
3053 cat > conftest.$ac_ext <<EOF
|
|
3054 #line 3055 "configure"
|
155
|
3055 #include "confdefs.h"
|
|
3056 #include <sys/types.h>
|
|
3057 #include <sys/wait.h>
|
|
3058 #ifndef WEXITSTATUS
|
|
3059 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3060 #endif
|
|
3061 #ifndef WIFEXITED
|
|
3062 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3063 #endif
|
|
3064 int main() {
|
|
3065 int s;
|
|
3066 wait (&s);
|
|
3067 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3068 ; return 0; }
|
|
3069 EOF
|
306
|
3070 if { (eval echo configure:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3071 rm -rf conftest*
|
|
3072 ac_cv_header_sys_wait_h=yes
|
|
3073 else
|
|
3074 echo "configure: failed program was:" >&5
|
|
3075 cat conftest.$ac_ext >&5
|
|
3076 rm -rf conftest*
|
|
3077 ac_cv_header_sys_wait_h=no
|
|
3078 fi
|
|
3079 rm -f conftest*
|
|
3080
|
|
3081 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3082 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3083 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3084 Defining HAVE_SYS_WAIT_H
|
|
3085 EOF
|
|
3086 cat >> confdefs.h <<\EOF
|
|
3087 #define HAVE_SYS_WAIT_H 1
|
|
3088 EOF
|
|
3089 }
|
|
3090
|
|
3091 fi
|
|
3092
|
149
|
3093 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
306
|
3094 echo "configure:3095: checking for ANSI C header files" >&5
|
|
3095
|
|
3096 cat > conftest.$ac_ext <<EOF
|
|
3097 #line 3098 "configure"
|
0
|
3098 #include "confdefs.h"
|
|
3099 #include <stdlib.h>
|
|
3100 #include <stdarg.h>
|
|
3101 #include <string.h>
|
|
3102 #include <float.h>
|
|
3103 EOF
|
149
|
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
3106 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
3107 if test -z "$ac_err"; then
|
|
3108 rm -rf conftest*
|
149
|
3109 ac_cv_header_stdc=yes
|
|
3110 else
|
|
3111 echo "$ac_err" >&5
|
|
3112 echo "configure: failed program was:" >&5
|
|
3113 cat conftest.$ac_ext >&5
|
|
3114 rm -rf conftest*
|
|
3115 ac_cv_header_stdc=no
|
|
3116 fi
|
|
3117 rm -f conftest*
|
|
3118
|
|
3119 if test $ac_cv_header_stdc = yes; then
|
0
|
3120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3121 cat > conftest.$ac_ext <<EOF
|
306
|
3122 #line 3123 "configure"
|
149
|
3123 #include "confdefs.h"
|
|
3124 #include <string.h>
|
|
3125 EOF
|
|
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3127 egrep "memchr" >/dev/null 2>&1; then
|
|
3128 :
|
|
3129 else
|
|
3130 rm -rf conftest*
|
|
3131 ac_cv_header_stdc=no
|
|
3132 fi
|
|
3133 rm -f conftest*
|
|
3134
|
|
3135 fi
|
|
3136
|
|
3137 if test $ac_cv_header_stdc = yes; then
|
|
3138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3139 cat > conftest.$ac_ext <<EOF
|
306
|
3140 #line 3141 "configure"
|
149
|
3141 #include "confdefs.h"
|
|
3142 #include <stdlib.h>
|
|
3143 EOF
|
|
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3145 egrep "free" >/dev/null 2>&1; then
|
|
3146 :
|
|
3147 else
|
|
3148 rm -rf conftest*
|
|
3149 ac_cv_header_stdc=no
|
|
3150 fi
|
|
3151 rm -f conftest*
|
|
3152
|
|
3153 fi
|
|
3154
|
|
3155 if test $ac_cv_header_stdc = yes; then
|
|
3156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3157 cat > conftest.$ac_ext <<EOF
|
306
|
3158 #line 3159 "configure"
|
0
|
3159 #include "confdefs.h"
|
|
3160 #include <ctype.h>
|
|
3161 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3162 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3164 int main () { int i; for (i = 0; i < 256; i++)
|
|
3165 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3166 exit (0); }
|
|
3167
|
|
3168 EOF
|
306
|
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3170 then
|
|
3171 :
|
|
3172 else
|
306
|
3173 conftest_rc="$?"
|
149
|
3174 echo "configure: failed program was:" >&5
|
|
3175 cat conftest.$ac_ext >&5
|
|
3176 rm -fr conftest*
|
|
3177 ac_cv_header_stdc=no
|
0
|
3178 fi
|
|
3179 rm -fr conftest*
|
149
|
3180 fi
|
|
3181
|
|
3182 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3183 if test $ac_cv_header_stdc = yes; then
|
|
3184 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3185 Defining STDC_HEADERS
|
|
3186 EOF
|
|
3187 cat >> confdefs.h <<\EOF
|
|
3188 #define STDC_HEADERS 1
|
|
3189 EOF
|
|
3190 }
|
|
3191
|
|
3192 fi
|
|
3193
|
|
3194 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
306
|
3195 echo "configure:3196: checking whether time.h and sys/time.h may both be included" >&5
|
|
3196
|
|
3197 cat > conftest.$ac_ext <<EOF
|
|
3198 #line 3199 "configure"
|
0
|
3199 #include "confdefs.h"
|
|
3200 #include <sys/types.h>
|
|
3201 #include <sys/time.h>
|
|
3202 #include <time.h>
|
149
|
3203 int main() {
|
|
3204 struct tm *tp;
|
|
3205 ; return 0; }
|
|
3206 EOF
|
306
|
3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3208 rm -rf conftest*
|
|
3209 ac_cv_header_time=yes
|
|
3210 else
|
|
3211 echo "configure: failed program was:" >&5
|
|
3212 cat conftest.$ac_ext >&5
|
|
3213 rm -rf conftest*
|
|
3214 ac_cv_header_time=no
|
|
3215 fi
|
|
3216 rm -f conftest*
|
|
3217
|
|
3218 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3219 if test $ac_cv_header_time = yes; then
|
|
3220 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3221 Defining TIME_WITH_SYS_TIME
|
|
3222 EOF
|
|
3223 cat >> confdefs.h <<\EOF
|
|
3224 #define TIME_WITH_SYS_TIME 1
|
|
3225 EOF
|
|
3226 }
|
|
3227
|
|
3228 fi
|
|
3229
|
|
3230 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
306
|
3231 echo "configure:3232: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3232
|
|
3233 cat > conftest.$ac_ext <<EOF
|
|
3234 #line 3235 "configure"
|
149
|
3235 #include "confdefs.h"
|
|
3236 #include <sys/types.h>
|
0
|
3237 #include <signal.h>
|
149
|
3238 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3239 #ifdef HAVE_UNISTD_H
|
|
3240 #include <unistd.h>
|
|
3241 #endif
|
149
|
3242 int main() {
|
|
3243 char *msg = *(sys_siglist + 1);
|
|
3244 ; return 0; }
|
|
3245 EOF
|
306
|
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3247 rm -rf conftest*
|
|
3248 ac_cv_decl_sys_siglist=yes
|
|
3249 else
|
|
3250 echo "configure: failed program was:" >&5
|
|
3251 cat conftest.$ac_ext >&5
|
|
3252 rm -rf conftest*
|
|
3253 ac_cv_decl_sys_siglist=no
|
|
3254 fi
|
|
3255 rm -f conftest*
|
|
3256
|
|
3257 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3258 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3259 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3260 Defining SYS_SIGLIST_DECLARED
|
|
3261 EOF
|
|
3262 cat >> confdefs.h <<\EOF
|
|
3263 #define SYS_SIGLIST_DECLARED 1
|
|
3264 EOF
|
|
3265 }
|
|
3266
|
|
3267 fi
|
|
3268
|
|
3269
|
|
3270 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
|
306
|
3271 echo "configure:3272: checking for struct utimbuf" >&5
|
|
3272 cat > conftest.$ac_ext <<EOF
|
|
3273 #line 3274 "configure"
|
0
|
3274 #include "confdefs.h"
|
|
3275 #ifdef TIME_WITH_SYS_TIME
|
|
3276 #include <sys/time.h>
|
|
3277 #include <time.h>
|
|
3278 #else
|
|
3279 #ifdef HAVE_SYS_TIME_H
|
|
3280 #include <sys/time.h>
|
|
3281 #else
|
|
3282 #include <time.h>
|
|
3283 #endif
|
|
3284 #endif
|
|
3285 #ifdef HAVE_UTIME_H
|
|
3286 #include <utime.h>
|
|
3287 #endif
|
149
|
3288 int main() {
|
|
3289 static struct utimbuf x; x.actime = x.modtime;
|
|
3290 ; return 0; }
|
|
3291 EOF
|
306
|
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3293 rm -rf conftest*
|
|
3294 echo "$ac_t""yes" 1>&6
|
|
3295 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3296 Defining HAVE_STRUCT_UTIMBUF
|
|
3297 EOF
|
|
3298 cat >> confdefs.h <<\EOF
|
|
3299 #define HAVE_STRUCT_UTIMBUF 1
|
|
3300 EOF
|
|
3301 }
|
|
3302
|
|
3303 else
|
|
3304 echo "configure: failed program was:" >&5
|
|
3305 cat conftest.$ac_ext >&5
|
|
3306 rm -rf conftest*
|
|
3307 echo "$ac_t""no" 1>&6
|
|
3308 fi
|
|
3309 rm -f conftest*
|
|
3310
|
|
3311 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
306
|
3312 echo "configure:3313: checking return type of signal handlers" >&5
|
|
3313
|
|
3314 cat > conftest.$ac_ext <<EOF
|
|
3315 #line 3316 "configure"
|
0
|
3316 #include "confdefs.h"
|
|
3317 #include <sys/types.h>
|
|
3318 #include <signal.h>
|
|
3319 #ifdef signal
|
|
3320 #undef signal
|
|
3321 #endif
|
149
|
3322 #ifdef __cplusplus
|
|
3323 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
3324 #else
|
|
3325 void (*signal ()) ();
|
|
3326 #endif
|
|
3327
|
|
3328 int main() {
|
|
3329 int i;
|
|
3330 ; return 0; }
|
|
3331 EOF
|
306
|
3332 if { (eval echo configure:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3333 rm -rf conftest*
|
|
3334 ac_cv_type_signal=void
|
|
3335 else
|
|
3336 echo "configure: failed program was:" >&5
|
|
3337 cat conftest.$ac_ext >&5
|
|
3338 rm -rf conftest*
|
|
3339 ac_cv_type_signal=int
|
|
3340 fi
|
|
3341 rm -f conftest*
|
|
3342
|
|
3343 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
3344 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3345 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
3346 EOF
|
|
3347 cat >> confdefs.h <<EOF
|
|
3348 #define RETSIGTYPE $ac_cv_type_signal
|
|
3349 EOF
|
|
3350 }
|
|
3351
|
|
3352
|
163
|
3353 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
306
|
3354 echo "configure:3355: checking for size_t" >&5
|
|
3355
|
|
3356 cat > conftest.$ac_ext <<EOF
|
|
3357 #line 3358 "configure"
|
163
|
3358 #include "confdefs.h"
|
|
3359 #include <sys/types.h>
|
|
3360 #if STDC_HEADERS
|
|
3361 #include <stdlib.h>
|
|
3362 #include <stddef.h>
|
|
3363 #endif
|
|
3364 EOF
|
|
3365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3366 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
3367 rm -rf conftest*
|
|
3368 ac_cv_type_size_t=yes
|
|
3369 else
|
|
3370 rm -rf conftest*
|
|
3371 ac_cv_type_size_t=no
|
|
3372 fi
|
|
3373 rm -f conftest*
|
|
3374
|
|
3375 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
3376 if test $ac_cv_type_size_t = no; then
|
|
3377 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3378 Defining size_t = unsigned
|
|
3379 EOF
|
|
3380 cat >> confdefs.h <<\EOF
|
|
3381 #define size_t unsigned
|
|
3382 EOF
|
|
3383 }
|
|
3384
|
|
3385 fi
|
|
3386
|
|
3387 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
306
|
3388 echo "configure:3389: checking for pid_t" >&5
|
|
3389
|
|
3390 cat > conftest.$ac_ext <<EOF
|
|
3391 #line 3392 "configure"
|
163
|
3392 #include "confdefs.h"
|
|
3393 #include <sys/types.h>
|
|
3394 #if STDC_HEADERS
|
|
3395 #include <stdlib.h>
|
|
3396 #include <stddef.h>
|
|
3397 #endif
|
|
3398 EOF
|
|
3399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3400 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
3401 rm -rf conftest*
|
|
3402 ac_cv_type_pid_t=yes
|
|
3403 else
|
|
3404 rm -rf conftest*
|
|
3405 ac_cv_type_pid_t=no
|
|
3406 fi
|
|
3407 rm -f conftest*
|
|
3408
|
|
3409 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
3410 if test $ac_cv_type_pid_t = no; then
|
|
3411 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3412 Defining pid_t = int
|
|
3413 EOF
|
|
3414 cat >> confdefs.h <<\EOF
|
|
3415 #define pid_t int
|
|
3416 EOF
|
|
3417 }
|
|
3418
|
|
3419 fi
|
|
3420
|
|
3421 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
306
|
3422 echo "configure:3423: checking for uid_t in sys/types.h" >&5
|
|
3423
|
|
3424 cat > conftest.$ac_ext <<EOF
|
|
3425 #line 3426 "configure"
|
163
|
3426 #include "confdefs.h"
|
|
3427 #include <sys/types.h>
|
|
3428 EOF
|
|
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3430 egrep "uid_t" >/dev/null 2>&1; then
|
|
3431 rm -rf conftest*
|
|
3432 ac_cv_type_uid_t=yes
|
|
3433 else
|
|
3434 rm -rf conftest*
|
|
3435 ac_cv_type_uid_t=no
|
|
3436 fi
|
|
3437 rm -f conftest*
|
|
3438
|
|
3439
|
|
3440 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
3441 if test $ac_cv_type_uid_t = no; then
|
|
3442 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3443 Defining uid_t = int
|
|
3444 EOF
|
|
3445 cat >> confdefs.h <<\EOF
|
|
3446 #define uid_t int
|
|
3447 EOF
|
|
3448 }
|
|
3449
|
|
3450 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3451 Defining gid_t = int
|
|
3452 EOF
|
|
3453 cat >> confdefs.h <<\EOF
|
|
3454 #define gid_t int
|
|
3455 EOF
|
|
3456 }
|
|
3457
|
|
3458 fi
|
|
3459
|
|
3460 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
306
|
3461 echo "configure:3462: checking for mode_t" >&5
|
|
3462
|
|
3463 cat > conftest.$ac_ext <<EOF
|
|
3464 #line 3465 "configure"
|
163
|
3465 #include "confdefs.h"
|
|
3466 #include <sys/types.h>
|
|
3467 #if STDC_HEADERS
|
|
3468 #include <stdlib.h>
|
|
3469 #include <stddef.h>
|
|
3470 #endif
|
|
3471 EOF
|
|
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3473 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
3474 rm -rf conftest*
|
|
3475 ac_cv_type_mode_t=yes
|
|
3476 else
|
|
3477 rm -rf conftest*
|
|
3478 ac_cv_type_mode_t=no
|
|
3479 fi
|
|
3480 rm -f conftest*
|
|
3481
|
|
3482 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
3483 if test $ac_cv_type_mode_t = no; then
|
|
3484 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3485 Defining mode_t = int
|
|
3486 EOF
|
|
3487 cat >> confdefs.h <<\EOF
|
|
3488 #define mode_t int
|
|
3489 EOF
|
|
3490 }
|
|
3491
|
|
3492 fi
|
|
3493
|
|
3494 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
306
|
3495 echo "configure:3496: checking for off_t" >&5
|
|
3496
|
|
3497 cat > conftest.$ac_ext <<EOF
|
|
3498 #line 3499 "configure"
|
163
|
3499 #include "confdefs.h"
|
|
3500 #include <sys/types.h>
|
|
3501 #if STDC_HEADERS
|
|
3502 #include <stdlib.h>
|
|
3503 #include <stddef.h>
|
|
3504 #endif
|
|
3505 EOF
|
|
3506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3507 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
3508 rm -rf conftest*
|
|
3509 ac_cv_type_off_t=yes
|
|
3510 else
|
|
3511 rm -rf conftest*
|
|
3512 ac_cv_type_off_t=no
|
|
3513 fi
|
|
3514 rm -f conftest*
|
|
3515
|
|
3516 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
3517 if test $ac_cv_type_off_t = no; then
|
|
3518 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3519 Defining off_t = long
|
|
3520 EOF
|
|
3521 cat >> confdefs.h <<\EOF
|
|
3522 #define off_t long
|
|
3523 EOF
|
|
3524 }
|
|
3525
|
|
3526 fi
|
|
3527
|
149
|
3528
|
|
3529 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
306
|
3530 echo "configure:3531: checking for struct timeval" >&5
|
|
3531 cat > conftest.$ac_ext <<EOF
|
|
3532 #line 3533 "configure"
|
0
|
3533 #include "confdefs.h"
|
|
3534 #ifdef TIME_WITH_SYS_TIME
|
|
3535 #include <sys/time.h>
|
|
3536 #include <time.h>
|
|
3537 #else
|
|
3538 #ifdef HAVE_SYS_TIME_H
|
|
3539 #include <sys/time.h>
|
|
3540 #else
|
|
3541 #include <time.h>
|
|
3542 #endif
|
|
3543 #endif
|
149
|
3544 int main() {
|
|
3545 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
3546 ; return 0; }
|
|
3547 EOF
|
306
|
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3549 rm -rf conftest*
|
|
3550 echo "$ac_t""yes" 1>&6
|
0
|
3551 HAVE_TIMEVAL=yes
|
149
|
3552 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3553 Defining HAVE_TIMEVAL
|
|
3554 EOF
|
|
3555 cat >> confdefs.h <<\EOF
|
|
3556 #define HAVE_TIMEVAL 1
|
|
3557 EOF
|
|
3558 }
|
|
3559
|
|
3560 else
|
|
3561 echo "configure: failed program was:" >&5
|
|
3562 cat conftest.$ac_ext >&5
|
|
3563 rm -rf conftest*
|
|
3564 echo "$ac_t""no" 1>&6
|
|
3565 HAVE_TIMEVAL=no
|
|
3566 fi
|
|
3567 rm -f conftest*
|
|
3568
|
|
3569 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
306
|
3570 echo "configure:3571: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
3571
|
|
3572 cat > conftest.$ac_ext <<EOF
|
|
3573 #line 3574 "configure"
|
0
|
3574 #include "confdefs.h"
|
|
3575 #include <sys/types.h>
|
|
3576 #include <time.h>
|
149
|
3577 int main() {
|
|
3578 struct tm *tp; tp->tm_sec;
|
|
3579 ; return 0; }
|
|
3580 EOF
|
306
|
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3582 rm -rf conftest*
|
|
3583 ac_cv_struct_tm=time.h
|
|
3584 else
|
|
3585 echo "configure: failed program was:" >&5
|
|
3586 cat conftest.$ac_ext >&5
|
|
3587 rm -rf conftest*
|
|
3588 ac_cv_struct_tm=sys/time.h
|
|
3589 fi
|
|
3590 rm -f conftest*
|
|
3591
|
|
3592 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
3593 if test $ac_cv_struct_tm = sys/time.h; then
|
|
3594 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3595 Defining TM_IN_SYS_TIME
|
|
3596 EOF
|
|
3597 cat >> confdefs.h <<\EOF
|
|
3598 #define TM_IN_SYS_TIME 1
|
|
3599 EOF
|
|
3600 }
|
|
3601
|
|
3602 fi
|
|
3603
|
|
3604 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
306
|
3605 echo "configure:3606: checking for tm_zone in struct tm" >&5
|
|
3606
|
|
3607 cat > conftest.$ac_ext <<EOF
|
|
3608 #line 3609 "configure"
|
149
|
3609 #include "confdefs.h"
|
|
3610 #include <sys/types.h>
|
|
3611 #include <$ac_cv_struct_tm>
|
|
3612 int main() {
|
|
3613 struct tm tm; tm.tm_zone;
|
|
3614 ; return 0; }
|
|
3615 EOF
|
306
|
3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3617 rm -rf conftest*
|
|
3618 ac_cv_struct_tm_zone=yes
|
|
3619 else
|
|
3620 echo "configure: failed program was:" >&5
|
|
3621 cat conftest.$ac_ext >&5
|
|
3622 rm -rf conftest*
|
|
3623 ac_cv_struct_tm_zone=no
|
|
3624 fi
|
|
3625 rm -f conftest*
|
|
3626
|
|
3627 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
3628 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
3629 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3630 Defining HAVE_TM_ZONE
|
|
3631 EOF
|
|
3632 cat >> confdefs.h <<\EOF
|
|
3633 #define HAVE_TM_ZONE 1
|
|
3634 EOF
|
|
3635 }
|
|
3636
|
|
3637 else
|
|
3638 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
306
|
3639 echo "configure:3640: checking for tzname" >&5
|
|
3640
|
|
3641 cat > conftest.$ac_ext <<EOF
|
|
3642 #line 3643 "configure"
|
0
|
3643 #include "confdefs.h"
|
|
3644 #include <time.h>
|
|
3645 #ifndef tzname /* For SGI. */
|
149
|
3646 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
3647 #endif
|
149
|
3648 int main() {
|
|
3649 atoi(*tzname);
|
|
3650 ; return 0; }
|
|
3651 EOF
|
306
|
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
3653 rm -rf conftest*
|
|
3654 ac_cv_var_tzname=yes
|
|
3655 else
|
|
3656 echo "configure: failed program was:" >&5
|
|
3657 cat conftest.$ac_ext >&5
|
|
3658 rm -rf conftest*
|
|
3659 ac_cv_var_tzname=no
|
|
3660 fi
|
|
3661 rm -f conftest*
|
|
3662
|
|
3663 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
3664 if test $ac_cv_var_tzname = yes; then
|
|
3665 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3666 Defining HAVE_TZNAME
|
|
3667 EOF
|
|
3668 cat >> confdefs.h <<\EOF
|
|
3669 #define HAVE_TZNAME 1
|
|
3670 EOF
|
|
3671 }
|
|
3672
|
|
3673 fi
|
|
3674 fi
|
|
3675
|
|
3676
|
|
3677 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
306
|
3678 echo "configure:3679: checking for working const" >&5
|
|
3679
|
|
3680 cat > conftest.$ac_ext <<EOF
|
|
3681 #line 3682 "configure"
|
149
|
3682 #include "confdefs.h"
|
|
3683
|
|
3684 int main() {
|
|
3685
|
|
3686 /* Ultrix mips cc rejects this. */
|
0
|
3687 typedef int charset[2]; const charset x;
|
|
3688 /* SunOS 4.1.1 cc rejects this. */
|
|
3689 char const *const *ccp;
|
|
3690 char **p;
|
149
|
3691 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
3692 struct point {int x, y;};
|
|
3693 static struct point const zero = {0,0};
|
0
|
3694 /* AIX XL C 1.02.0.0 rejects this.
|
|
3695 It does not let you subtract one const X* pointer from another in an arm
|
|
3696 of an if-expression whose if-part is not a constant expression */
|
|
3697 const char *g = "string";
|
|
3698 ccp = &g + (g ? g-g : 0);
|
|
3699 /* HPUX 7.0 cc rejects these. */
|
|
3700 ++ccp;
|
|
3701 p = (char**) ccp;
|
|
3702 ccp = (char const *const *) p;
|
|
3703 { /* SCO 3.2v4 cc rejects this. */
|
|
3704 char *t;
|
|
3705 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
3706
|
|
3707 *t++ = 0;
|
|
3708 }
|
|
3709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
3710 int x[] = {25, 17};
|
0
|
3711 const int *foo = &x[0];
|
|
3712 ++foo;
|
|
3713 }
|
|
3714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
3715 typedef const int *iptr;
|
|
3716 iptr p = 0;
|
|
3717 ++p;
|
|
3718 }
|
|
3719 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
3720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
3721 struct s { int j; const int *ap[3]; };
|
|
3722 struct s *b; b->j = 5;
|
|
3723 }
|
|
3724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
3725 const int foo = 10;
|
149
|
3726 }
|
|
3727
|
|
3728 ; return 0; }
|
|
3729 EOF
|
306
|
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3731 rm -rf conftest*
|
|
3732 ac_cv_c_const=yes
|
|
3733 else
|
|
3734 echo "configure: failed program was:" >&5
|
|
3735 cat conftest.$ac_ext >&5
|
|
3736 rm -rf conftest*
|
|
3737 ac_cv_c_const=no
|
|
3738 fi
|
|
3739 rm -f conftest*
|
|
3740
|
|
3741 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
3742 if test $ac_cv_c_const = no; then
|
|
3743 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3744 Defining const =
|
|
3745 EOF
|
|
3746 cat >> confdefs.h <<\EOF
|
|
3747 #define const
|
|
3748 EOF
|
|
3749 }
|
|
3750
|
|
3751 fi
|
|
3752
|
|
3753
|
|
3754 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
306
|
3755 echo "configure:3756: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
3756 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
3757
|
|
3758 cat > conftestmake <<\EOF
|
0
|
3759 all:
|
|
3760 @echo 'ac_maketemp="${MAKE}"'
|
|
3761 EOF
|
|
3762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
3763 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
3764 if test -n "$ac_maketemp"; then
|
|
3765 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
3766 else
|
|
3767 eval ac_cv_prog_make_${ac_make}_set=no
|
|
3768 fi
|
0
|
3769 rm -f conftestmake
|
149
|
3770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
3771 echo "$ac_t""yes" 1>&6
|
|
3772 SET_MAKE=
|
|
3773 else
|
|
3774 echo "$ac_t""no" 1>&6
|
|
3775 SET_MAKE="MAKE=${MAKE-make}"
|
|
3776 fi
|
|
3777
|
|
3778
|
|
3779 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
306
|
3780 echo "configure:3781: checking whether byte ordering is bigendian" >&5
|
149
|
3781
|
|
3782 ac_cv_c_bigendian=unknown
|
|
3783 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
3784 cat > conftest.$ac_ext <<EOF
|
306
|
3785 #line 3786 "configure"
|
149
|
3786 #include "confdefs.h"
|
|
3787 #include <sys/types.h>
|
|
3788 #include <sys/param.h>
|
|
3789 int main() {
|
|
3790
|
|
3791 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
3792 bogus endian macros
|
|
3793 #endif
|
|
3794 ; return 0; }
|
|
3795 EOF
|
306
|
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3797 rm -rf conftest*
|
|
3798 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
3799 cat > conftest.$ac_ext <<EOF
|
306
|
3800 #line 3801 "configure"
|
149
|
3801 #include "confdefs.h"
|
|
3802 #include <sys/types.h>
|
|
3803 #include <sys/param.h>
|
|
3804 int main() {
|
|
3805
|
|
3806 #if BYTE_ORDER != BIG_ENDIAN
|
|
3807 not big endian
|
|
3808 #endif
|
|
3809 ; return 0; }
|
|
3810 EOF
|
306
|
3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3812 rm -rf conftest*
|
|
3813 ac_cv_c_bigendian=yes
|
|
3814 else
|
|
3815 echo "configure: failed program was:" >&5
|
|
3816 cat conftest.$ac_ext >&5
|
|
3817 rm -rf conftest*
|
|
3818 ac_cv_c_bigendian=no
|
|
3819 fi
|
|
3820 rm -f conftest*
|
|
3821 else
|
|
3822 echo "configure: failed program was:" >&5
|
|
3823 cat conftest.$ac_ext >&5
|
|
3824 fi
|
|
3825 rm -f conftest*
|
|
3826 if test $ac_cv_c_bigendian = unknown; then
|
|
3827 cat > conftest.$ac_ext <<EOF
|
306
|
3828 #line 3829 "configure"
|
0
|
3829 #include "confdefs.h"
|
|
3830 main () {
|
|
3831 /* Are we little or big endian? From Harbison&Steele. */
|
|
3832 union
|
|
3833 {
|
|
3834 long l;
|
|
3835 char c[sizeof (long)];
|
|
3836 } u;
|
|
3837 u.l = 1;
|
|
3838 exit (u.c[sizeof (long) - 1] == 1);
|
|
3839 }
|
|
3840 EOF
|
306
|
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3842 then
|
|
3843 ac_cv_c_bigendian=no
|
|
3844 else
|
306
|
3845 conftest_rc="$?"
|
149
|
3846 echo "configure: failed program was:" >&5
|
|
3847 cat conftest.$ac_ext >&5
|
|
3848 rm -fr conftest*
|
|
3849 ac_cv_c_bigendian=yes
|
0
|
3850 fi
|
|
3851 rm -fr conftest*
|
149
|
3852 fi
|
|
3853
|
|
3854 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
3855 if test $ac_cv_c_bigendian = yes; then
|
|
3856 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3857 Defining WORDS_BIGENDIAN
|
|
3858 EOF
|
|
3859 cat >> confdefs.h <<\EOF
|
|
3860 #define WORDS_BIGENDIAN 1
|
|
3861 EOF
|
|
3862 }
|
|
3863
|
|
3864 fi
|
|
3865
|
|
3866
|
151
|
3867 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
306
|
3868 echo "configure:3869: checking size of short" >&5
|
|
3869
|
|
3870 cat > conftest.$ac_ext <<EOF
|
|
3871 #line 3872 "configure"
|
151
|
3872 #include "confdefs.h"
|
|
3873 #include <stdio.h>
|
|
3874 main()
|
|
3875 {
|
|
3876 FILE *f=fopen("conftestval", "w");
|
|
3877 if (!f) exit(1);
|
|
3878 fprintf(f, "%d\n", sizeof(short));
|
|
3879 exit(0);
|
|
3880 }
|
|
3881 EOF
|
306
|
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
3883 then
|
|
3884 ac_cv_sizeof_short=`cat conftestval`
|
|
3885 else
|
306
|
3886 conftest_rc="$?"
|
151
|
3887 echo "configure: failed program was:" >&5
|
|
3888 cat conftest.$ac_ext >&5
|
|
3889 rm -fr conftest*
|
|
3890 ac_cv_sizeof_short=0
|
|
3891 fi
|
|
3892 rm -fr conftest*
|
|
3893 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
3894 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3895 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
3896 EOF
|
|
3897 cat >> confdefs.h <<EOF
|
|
3898 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
3899 EOF
|
|
3900 }
|
|
3901
|
|
3902
|
163
|
3903 if test "$ac_cv_sizeof_short" = 0; then
|
|
3904 echo ""
|
|
3905 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
3906 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
3907 exit 1
|
|
3908 fi
|
151
|
3909 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
306
|
3910 echo "configure:3911: checking size of int" >&5
|
|
3911
|
|
3912 cat > conftest.$ac_ext <<EOF
|
|
3913 #line 3914 "configure"
|
151
|
3914 #include "confdefs.h"
|
|
3915 #include <stdio.h>
|
|
3916 main()
|
|
3917 {
|
|
3918 FILE *f=fopen("conftestval", "w");
|
|
3919 if (!f) exit(1);
|
|
3920 fprintf(f, "%d\n", sizeof(int));
|
|
3921 exit(0);
|
|
3922 }
|
|
3923 EOF
|
306
|
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
3925 then
|
|
3926 ac_cv_sizeof_int=`cat conftestval`
|
|
3927 else
|
306
|
3928 conftest_rc="$?"
|
151
|
3929 echo "configure: failed program was:" >&5
|
|
3930 cat conftest.$ac_ext >&5
|
|
3931 rm -fr conftest*
|
|
3932 ac_cv_sizeof_int=0
|
|
3933 fi
|
|
3934 rm -fr conftest*
|
|
3935 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
3936 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3937 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
3938 EOF
|
|
3939 cat >> confdefs.h <<EOF
|
|
3940 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
3941 EOF
|
|
3942 }
|
|
3943
|
|
3944
|
|
3945 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
306
|
3946 echo "configure:3947: checking size of long" >&5
|
|
3947
|
|
3948 cat > conftest.$ac_ext <<EOF
|
|
3949 #line 3950 "configure"
|
151
|
3950 #include "confdefs.h"
|
|
3951 #include <stdio.h>
|
|
3952 main()
|
|
3953 {
|
|
3954 FILE *f=fopen("conftestval", "w");
|
|
3955 if (!f) exit(1);
|
|
3956 fprintf(f, "%d\n", sizeof(long));
|
|
3957 exit(0);
|
|
3958 }
|
|
3959 EOF
|
306
|
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
3961 then
|
|
3962 ac_cv_sizeof_long=`cat conftestval`
|
|
3963 else
|
306
|
3964 conftest_rc="$?"
|
151
|
3965 echo "configure: failed program was:" >&5
|
|
3966 cat conftest.$ac_ext >&5
|
|
3967 rm -fr conftest*
|
|
3968 ac_cv_sizeof_long=0
|
|
3969 fi
|
|
3970 rm -fr conftest*
|
|
3971 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
3972 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3973 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
3974 EOF
|
|
3975 cat >> confdefs.h <<EOF
|
|
3976 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
3977 EOF
|
|
3978 }
|
|
3979
|
|
3980
|
163
|
3981 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
306
|
3982 echo "configure:3983: checking size of long long" >&5
|
|
3983
|
|
3984 cat > conftest.$ac_ext <<EOF
|
|
3985 #line 3986 "configure"
|
163
|
3986 #include "confdefs.h"
|
|
3987 #include <stdio.h>
|
|
3988 main()
|
|
3989 {
|
|
3990 FILE *f=fopen("conftestval", "w");
|
|
3991 if (!f) exit(1);
|
|
3992 fprintf(f, "%d\n", sizeof(long long));
|
|
3993 exit(0);
|
|
3994 }
|
|
3995 EOF
|
306
|
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
3997 then
|
|
3998 ac_cv_sizeof_long_long=`cat conftestval`
|
|
3999 else
|
306
|
4000 conftest_rc="$?"
|
163
|
4001 echo "configure: failed program was:" >&5
|
|
4002 cat conftest.$ac_ext >&5
|
|
4003 rm -fr conftest*
|
|
4004 ac_cv_sizeof_long_long=0
|
|
4005 fi
|
|
4006 rm -fr conftest*
|
|
4007 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4008 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4009 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4010 EOF
|
|
4011 cat >> confdefs.h <<EOF
|
|
4012 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4013 EOF
|
|
4014 }
|
|
4015
|
|
4016
|
|
4017 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
306
|
4018 echo "configure:4019: checking size of void *" >&5
|
|
4019
|
|
4020 cat > conftest.$ac_ext <<EOF
|
|
4021 #line 4022 "configure"
|
163
|
4022 #include "confdefs.h"
|
|
4023 #include <stdio.h>
|
|
4024 main()
|
|
4025 {
|
|
4026 FILE *f=fopen("conftestval", "w");
|
|
4027 if (!f) exit(1);
|
|
4028 fprintf(f, "%d\n", sizeof(void *));
|
|
4029 exit(0);
|
|
4030 }
|
|
4031 EOF
|
306
|
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4033 then
|
|
4034 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4035 else
|
306
|
4036 conftest_rc="$?"
|
163
|
4037 echo "configure: failed program was:" >&5
|
|
4038 cat conftest.$ac_ext >&5
|
|
4039 rm -fr conftest*
|
|
4040 ac_cv_sizeof_void_p=0
|
|
4041 fi
|
|
4042 rm -fr conftest*
|
|
4043 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4044 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4045 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4046 EOF
|
|
4047 cat >> confdefs.h <<EOF
|
|
4048 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4049 EOF
|
|
4050 }
|
|
4051
|
|
4052
|
151
|
4053
|
149
|
4054 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
306
|
4055 echo "configure:4056: checking for long file names" >&5
|
149
|
4056
|
|
4057 ac_cv_sys_long_file_names=yes
|
0
|
4058 # Test for long file names in all the places we know might matter:
|
|
4059 # . the current directory, where building will happen
|
149
|
4060 # $prefix/lib where we will be installing things
|
|
4061 # $exec_prefix/lib likewise
|
|
4062 # eval it to expand exec_prefix.
|
|
4063 # $TMPDIR if set, where it might want to write temporary files
|
|
4064 # if $TMPDIR is not set:
|
0
|
4065 # /tmp where it might want to write temporary files
|
|
4066 # /var/tmp likewise
|
|
4067 # /usr/tmp likewise
|
149
|
4068 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
4069 ac_tmpdirs="$TMPDIR"
|
|
4070 else
|
|
4071 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
4072 fi
|
|
4073 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
4074 test -d $ac_dir || continue
|
149
|
4075 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
4076 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
4077 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
4078 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
4079 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
4080 ac_cv_sys_long_file_names=no
|
|
4081 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4082 break
|
0
|
4083 fi
|
149
|
4084 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4085 done
|
|
4086
|
|
4087 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
4088 if test $ac_cv_sys_long_file_names = yes; then
|
|
4089 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4090 Defining HAVE_LONG_FILE_NAMES
|
|
4091 EOF
|
|
4092 cat >> confdefs.h <<\EOF
|
|
4093 #define HAVE_LONG_FILE_NAMES 1
|
|
4094 EOF
|
|
4095 }
|
|
4096
|
|
4097 fi
|
|
4098
|
|
4099
|
|
4100
|
207
|
4101 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
306
|
4102 echo "configure:4103: checking for sin in -lm" >&5
|
207
|
4103 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
4104
|
|
4105 xe_check_libs=" -lm "
|
|
4106 cat > conftest.$ac_ext <<EOF
|
306
|
4107 #line 4108 "configure"
|
149
|
4108 #include "confdefs.h"
|
|
4109 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4110 /* We use char because int might match the return type of a gcc2
|
|
4111 builtin and then its argument prototype would still apply. */
|
207
|
4112 char sin();
|
149
|
4113
|
|
4114 int main() {
|
207
|
4115 sin()
|
149
|
4116 ; return 0; }
|
|
4117 EOF
|
306
|
4118 if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4119 rm -rf conftest*
|
|
4120 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4121 else
|
|
4122 echo "configure: failed program was:" >&5
|
|
4123 cat conftest.$ac_ext >&5
|
|
4124 rm -rf conftest*
|
|
4125 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4126 fi
|
|
4127 rm -f conftest*
|
|
4128 xe_check_libs=""
|
|
4129
|
151
|
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4131 echo "$ac_t""yes" 1>&6
|
|
4132 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
4133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4134 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4135 Defining $ac_tr_lib
|
|
4136 EOF
|
|
4137 cat >> confdefs.h <<EOF
|
|
4138 #define $ac_tr_lib 1
|
|
4139 EOF
|
|
4140 }
|
|
4141
|
151
|
4142 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
4143
|
|
4144 else
|
|
4145 echo "$ac_t""no" 1>&6
|
|
4146 fi
|
|
4147
|
|
4148
|
|
4149
|
|
4150 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4151 Defining LISP_FLOAT_TYPE
|
|
4152 EOF
|
|
4153 cat >> confdefs.h <<\EOF
|
|
4154 #define LISP_FLOAT_TYPE 1
|
|
4155 EOF
|
|
4156 }
|
149
|
4157
|
|
4158
|
243
|
4159 cat > conftest.$ac_ext <<EOF
|
306
|
4160 #line 4161 "configure"
|
243
|
4161 #include "confdefs.h"
|
|
4162 #include <math.h>
|
|
4163 int main() {
|
|
4164 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
4165 ; return 0; }
|
|
4166 EOF
|
306
|
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
243
|
4168 rm -rf conftest*
|
|
4169 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4170 Defining HAVE_INVERSE_HYPERBOLIC
|
|
4171 EOF
|
|
4172 cat >> confdefs.h <<\EOF
|
|
4173 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
4174 EOF
|
|
4175 }
|
|
4176
|
|
4177 else
|
|
4178 echo "configure: failed program was:" >&5
|
|
4179 cat conftest.$ac_ext >&5
|
|
4180 fi
|
|
4181 rm -f conftest*
|
|
4182
|
149
|
4183 echo "checking type of mail spool file locking" 1>&6
|
306
|
4184 echo "configure:4185: checking type of mail spool file locking" >&5
|
149
|
4185 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
4186 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
|
4187 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4188 Defining REAL_MAIL_USE_LOCKF
|
|
4189 EOF
|
|
4190 cat >> confdefs.h <<\EOF
|
|
4191 #define REAL_MAIL_USE_LOCKF 1
|
|
4192 EOF
|
|
4193 }
|
|
4194
|
|
4195 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4196 Defining REAL_MAIL_USE_FLOCK
|
|
4197 EOF
|
|
4198 cat >> confdefs.h <<\EOF
|
|
4199 #define REAL_MAIL_USE_FLOCK 1
|
|
4200 EOF
|
|
4201 }
|
|
4202
|
157
|
4203 else mail_locking="dot-locking"
|
149
|
4204 fi
|
|
4205
|
151
|
4206
|
|
4207 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
306
|
4208 echo "configure:4209: checking for kstat_open in -lkstat" >&5
|
151
|
4209 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
4210
|
|
4211 xe_check_libs=" -lkstat "
|
|
4212 cat > conftest.$ac_ext <<EOF
|
306
|
4213 #line 4214 "configure"
|
151
|
4214 #include "confdefs.h"
|
|
4215 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4216 /* We use char because int might match the return type of a gcc2
|
|
4217 builtin and then its argument prototype would still apply. */
|
|
4218 char kstat_open();
|
|
4219
|
|
4220 int main() {
|
|
4221 kstat_open()
|
|
4222 ; return 0; }
|
|
4223 EOF
|
306
|
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
4225 rm -rf conftest*
|
|
4226 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4227 else
|
|
4228 echo "configure: failed program was:" >&5
|
|
4229 cat conftest.$ac_ext >&5
|
|
4230 rm -rf conftest*
|
|
4231 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4232 fi
|
|
4233 rm -f conftest*
|
|
4234 xe_check_libs=""
|
|
4235
|
|
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
4237 echo "$ac_t""yes" 1>&6
|
|
4238 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
4239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4240 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4241 Defining $ac_tr_lib
|
|
4242 EOF
|
|
4243 cat >> confdefs.h <<EOF
|
|
4244 #define $ac_tr_lib 1
|
|
4245 EOF
|
|
4246 }
|
|
4247
|
|
4248 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
4249
|
|
4250 else
|
|
4251 echo "$ac_t""no" 1>&6
|
|
4252 fi
|
|
4253
|
|
4254
|
|
4255
|
|
4256
|
|
4257 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
306
|
4258 echo "configure:4259: checking for kvm_read in -lkvm" >&5
|
151
|
4259 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
4260
|
|
4261 xe_check_libs=" -lkvm "
|
|
4262 cat > conftest.$ac_ext <<EOF
|
306
|
4263 #line 4264 "configure"
|
151
|
4264 #include "confdefs.h"
|
|
4265 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4266 /* We use char because int might match the return type of a gcc2
|
|
4267 builtin and then its argument prototype would still apply. */
|
|
4268 char kvm_read();
|
|
4269
|
|
4270 int main() {
|
|
4271 kvm_read()
|
|
4272 ; return 0; }
|
|
4273 EOF
|
306
|
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
4275 rm -rf conftest*
|
|
4276 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4277 else
|
|
4278 echo "configure: failed program was:" >&5
|
|
4279 cat conftest.$ac_ext >&5
|
|
4280 rm -rf conftest*
|
|
4281 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4282 fi
|
|
4283 rm -f conftest*
|
|
4284 xe_check_libs=""
|
|
4285
|
|
4286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
4287 echo "$ac_t""yes" 1>&6
|
|
4288 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
4289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4290 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4291 Defining $ac_tr_lib
|
|
4292 EOF
|
|
4293 cat >> confdefs.h <<EOF
|
|
4294 #define $ac_tr_lib 1
|
|
4295 EOF
|
|
4296 }
|
|
4297
|
|
4298 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
4299
|
|
4300 else
|
|
4301 echo "$ac_t""no" 1>&6
|
|
4302 fi
|
|
4303
|
|
4304
|
|
4305
|
278
|
4306 case "$opsys" in decosf*)
|
|
4307
|
151
|
4308 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
306
|
4309 echo "configure:4310: checking for cma_open in -lpthreads" >&5
|
151
|
4310 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
4311
|
|
4312 xe_check_libs=" -lpthreads "
|
|
4313 cat > conftest.$ac_ext <<EOF
|
306
|
4314 #line 4315 "configure"
|
151
|
4315 #include "confdefs.h"
|
|
4316 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4317 /* We use char because int might match the return type of a gcc2
|
|
4318 builtin and then its argument prototype would still apply. */
|
|
4319 char cma_open();
|
|
4320
|
|
4321 int main() {
|
|
4322 cma_open()
|
|
4323 ; return 0; }
|
|
4324 EOF
|
306
|
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
4326 rm -rf conftest*
|
|
4327 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4328 else
|
|
4329 echo "configure: failed program was:" >&5
|
|
4330 cat conftest.$ac_ext >&5
|
|
4331 rm -rf conftest*
|
|
4332 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4333 fi
|
|
4334 rm -f conftest*
|
|
4335 xe_check_libs=""
|
|
4336
|
|
4337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
4338 echo "$ac_t""yes" 1>&6
|
|
4339 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
4340 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4341 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4342 Defining $ac_tr_lib
|
|
4343 EOF
|
|
4344 cat >> confdefs.h <<EOF
|
|
4345 #define $ac_tr_lib 1
|
|
4346 EOF
|
|
4347 }
|
|
4348
|
|
4349 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
4350
|
|
4351 else
|
|
4352 echo "$ac_t""no" 1>&6
|
|
4353 fi
|
|
4354
|
|
4355
|
278
|
4356 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
4357 c_switch_site="$c_switch_site -threads" ;;
|
|
4358 esac
|
151
|
4359
|
|
4360 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
306
|
4361 echo "configure:4362: checking whether the -xildoff compiler flag is required" >&5
|
151
|
4362 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
4363 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
4364 then echo "$ac_t""no" 1>&6;
|
|
4365 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
|
|
4366 fi
|
|
4367 else echo "$ac_t""no" 1>&6
|
|
4368 fi
|
|
4369
|
165
|
4370 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
|
155
|
4371 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
306
|
4372 echo "configure:4373: checking for \"-z ignore\" linker flag" >&5
|
155
|
4373 case "`ld -h 2>&1`" in
|
|
4374 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
4375 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
4376 *) echo "$ac_t""no" 1>&6 ;;
|
163
|
4377 esac
|
|
4378 fi
|
155
|
4379
|
149
|
4380
|
|
4381 echo "checking "for specified window system"" 1>&6
|
306
|
4382 echo "configure:4383: checking "for specified window system"" >&5
|
149
|
4383
|
187
|
4384 if test "$with_x11" != "no"; then
|
|
4385 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
4386 window_system=x11 with_x11=yes
|
|
4387
|
272
|
4388
|
|
4389 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
4390 -a -n "$OPENWINHOME" \
|
|
4391 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
4392 -a -d "$OPENWINHOME"; then
|
187
|
4393 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
4394 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
4395 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
4396 fi
|
|
4397
|
|
4398 if test "$x_includes" = "NONE"; then
|
|
4399 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
4400 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
4401 done
|
|
4402 fi
|
|
4403
|
|
4404 if test "$x_libraries" = "NONE"; then
|
|
4405 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
4406 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
4407 done
|
149
|
4408 fi
|
187
|
4409
|
149
|
4410 # If we find X, set shell vars x_includes and x_libraries to the
|
|
4411 # paths, otherwise set no_x=yes.
|
|
4412 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
4413 # --without-x overrides everything else, but does not touch the cache.
|
|
4414 echo $ac_n "checking for X""... $ac_c" 1>&6
|
306
|
4415 echo "configure:4416: checking for X" >&5
|
149
|
4416
|
|
4417 # Check whether --with-x or --without-x was given.
|
|
4418 if test "${with_x+set}" = set; then
|
|
4419 withval="$with_x"
|
|
4420 :
|
|
4421 fi
|
|
4422
|
|
4423 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
4424 if test "x$with_x" = xno; then
|
|
4425 # The user explicitly disabled X.
|
|
4426 have_x=disabled
|
|
4427 else
|
|
4428 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
4429 # Both variables are already set.
|
|
4430 have_x=yes
|
|
4431 else
|
|
4432
|
|
4433 # One or both of the vars are not set, and there is no cached value.
|
|
4434 ac_x_includes=NO ac_x_libraries=NO
|
0
|
4435 rm -fr conftestdir
|
|
4436 if mkdir conftestdir; then
|
|
4437 cd conftestdir
|
|
4438 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
4439 cat > Imakefile <<'EOF'
|
|
4440 acfindx:
|
|
4441 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
4442 EOF
|
|
4443 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
4444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
4445 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
4446 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
4447 for ac_extension in a so sl; do
|
|
4448 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
4449 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
4450 ac_im_usrlibdir=$ac_im_libdir; break
|
|
4451 fi
|
|
4452 done
|
|
4453 # Screen out bogus values from the imake configuration. They are
|
|
4454 # bogus both because they are the default anyway, and because
|
|
4455 # using them would break gcc on systems where it needs fixed includes.
|
0
|
4456 case "$ac_im_incroot" in
|
|
4457 /usr/include) ;;
|
149
|
4458 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
4459 esac
|
|
4460 case "$ac_im_usrlibdir" in
|
|
4461 /usr/lib | /lib) ;;
|
149
|
4462 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
4463 esac
|
|
4464 fi
|
|
4465 cd ..
|
|
4466 rm -fr conftestdir
|
|
4467 fi
|
|
4468
|
149
|
4469 if test "$ac_x_includes" = NO; then
|
|
4470 # Guess where to find include files, by looking for this one X11 .h file.
|
|
4471 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
4472
|
|
4473 # First, try using that file with no special directory specified.
|
|
4474 cat > conftest.$ac_ext <<EOF
|
306
|
4475 #line 4476 "configure"
|
0
|
4476 #include "confdefs.h"
|
|
4477 #include <$x_direct_test_include>
|
|
4478 EOF
|
149
|
4479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
4480 { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
4481 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
4482 if test -z "$ac_err"; then
|
|
4483 rm -rf conftest*
|
149
|
4484 # We can compile using X headers with no special include directory.
|
|
4485 ac_x_includes=
|
|
4486 else
|
|
4487 echo "$ac_err" >&5
|
|
4488 echo "configure: failed program was:" >&5
|
|
4489 cat conftest.$ac_ext >&5
|
|
4490 rm -rf conftest*
|
|
4491 # Look for the header file in a standard set of common directories.
|
|
4492 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
4493 for ac_dir in \
|
149
|
4494 /usr/X11/include \
|
0
|
4495 /usr/X11R6/include \
|
|
4496 /usr/X11R5/include \
|
|
4497 /usr/X11R4/include \
|
|
4498 \
|
149
|
4499 /usr/include/X11 \
|
0
|
4500 /usr/include/X11R6 \
|
|
4501 /usr/include/X11R5 \
|
|
4502 /usr/include/X11R4 \
|
|
4503 \
|
149
|
4504 /usr/local/X11/include \
|
0
|
4505 /usr/local/X11R6/include \
|
|
4506 /usr/local/X11R5/include \
|
|
4507 /usr/local/X11R4/include \
|
|
4508 \
|
149
|
4509 /usr/local/include/X11 \
|
0
|
4510 /usr/local/include/X11R6 \
|
|
4511 /usr/local/include/X11R5 \
|
|
4512 /usr/local/include/X11R4 \
|
|
4513 \
|
|
4514 /usr/X386/include \
|
|
4515 /usr/x386/include \
|
|
4516 /usr/XFree86/include/X11 \
|
|
4517 \
|
|
4518 /usr/include \
|
|
4519 /usr/local/include \
|
|
4520 /usr/unsupported/include \
|
|
4521 /usr/athena/include \
|
|
4522 /usr/local/x11r5/include \
|
|
4523 /usr/lpp/Xamples/include \
|
|
4524 \
|
|
4525 /usr/openwin/include \
|
|
4526 /usr/openwin/share/include \
|
|
4527 ; \
|
|
4528 do
|
|
4529 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
4530 ac_x_includes=$ac_dir
|
0
|
4531 break
|
|
4532 fi
|
|
4533 done
|
|
4534 fi
|
|
4535 rm -f conftest*
|
149
|
4536 fi # $ac_x_includes = NO
|
|
4537
|
|
4538 if test "$ac_x_libraries" = NO; then
|
|
4539 # Check for the libraries.
|
|
4540
|
|
4541 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
4542 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
4543
|
|
4544 # See if we find them without any special options.
|
|
4545 # Don't add to $LIBS permanently.
|
|
4546 ac_save_LIBS="$LIBS"
|
|
4547 LIBS="-l$x_direct_test_library $LIBS"
|
|
4548 cat > conftest.$ac_ext <<EOF
|
306
|
4549 #line 4550 "configure"
|
149
|
4550 #include "confdefs.h"
|
|
4551
|
|
4552 int main() {
|
|
4553 ${x_direct_test_function}()
|
|
4554 ; return 0; }
|
|
4555 EOF
|
306
|
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4557 rm -rf conftest*
|
|
4558 LIBS="$ac_save_LIBS"
|
|
4559 # We can link X programs with no special library path.
|
|
4560 ac_x_libraries=
|
|
4561 else
|
|
4562 echo "configure: failed program was:" >&5
|
|
4563 cat conftest.$ac_ext >&5
|
|
4564 rm -rf conftest*
|
|
4565 LIBS="$ac_save_LIBS"
|
|
4566 # First see if replacing the include by lib works.
|
|
4567 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
4568 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
4569 /usr/X11/lib \
|
0
|
4570 /usr/X11R6/lib \
|
|
4571 /usr/X11R5/lib \
|
|
4572 /usr/X11R4/lib \
|
|
4573 \
|
149
|
4574 /usr/lib/X11 \
|
0
|
4575 /usr/lib/X11R6 \
|
|
4576 /usr/lib/X11R5 \
|
|
4577 /usr/lib/X11R4 \
|
|
4578 \
|
149
|
4579 /usr/local/X11/lib \
|
0
|
4580 /usr/local/X11R6/lib \
|
|
4581 /usr/local/X11R5/lib \
|
|
4582 /usr/local/X11R4/lib \
|
|
4583 \
|
149
|
4584 /usr/local/lib/X11 \
|
0
|
4585 /usr/local/lib/X11R6 \
|
|
4586 /usr/local/lib/X11R5 \
|
|
4587 /usr/local/lib/X11R4 \
|
|
4588 \
|
|
4589 /usr/X386/lib \
|
|
4590 /usr/x386/lib \
|
|
4591 /usr/XFree86/lib/X11 \
|
|
4592 \
|
|
4593 /usr/lib \
|
|
4594 /usr/local/lib \
|
|
4595 /usr/unsupported/lib \
|
|
4596 /usr/athena/lib \
|
|
4597 /usr/local/x11r5/lib \
|
|
4598 /usr/lpp/Xamples/lib \
|
149
|
4599 /lib/usr/lib/X11 \
|
0
|
4600 \
|
|
4601 /usr/openwin/lib \
|
|
4602 /usr/openwin/share/lib \
|
|
4603 ; \
|
|
4604 do
|
|
4605 for ac_extension in a so sl; do
|
|
4606 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
4607 ac_x_libraries=$ac_dir
|
0
|
4608 break 2
|
|
4609 fi
|
|
4610 done
|
|
4611 done
|
|
4612 fi
|
149
|
4613 rm -f conftest*
|
|
4614 fi # $ac_x_libraries = NO
|
|
4615
|
|
4616 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
4617 # Didn't find X anywhere. Cache the known absence of X.
|
|
4618 ac_cv_have_x="have_x=no"
|
|
4619 else
|
|
4620 # Record where we found X for the cache.
|
|
4621 ac_cv_have_x="have_x=yes \
|
|
4622 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
4623 fi
|
|
4624 fi
|
|
4625 eval "$ac_cv_have_x"
|
|
4626 fi # $with_x != no
|
|
4627
|
|
4628 if test "$have_x" != yes; then
|
|
4629 echo "$ac_t""$have_x" 1>&6
|
|
4630 no_x=yes
|
|
4631 else
|
|
4632 # If each of the values was on the command line, it overrides each guess.
|
|
4633 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
4634 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
4635 # Update the cache value to reflect the command line values.
|
|
4636 ac_cv_have_x="have_x=yes \
|
|
4637 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
4638 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
4639 fi
|
|
4640
|
|
4641 if test "$no_x" = yes; then
|
|
4642 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
4643 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4644 Defining X_DISPLAY_MISSING
|
|
4645 EOF
|
|
4646 cat >> confdefs.h <<\EOF
|
|
4647 #define X_DISPLAY_MISSING 1
|
|
4648 EOF
|
|
4649 }
|
|
4650
|
|
4651 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
4652 else
|
|
4653 if test -n "$x_includes"; then
|
|
4654 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
4655 fi
|
|
4656
|
|
4657 # It would also be nice to do this for all -L options, not just this one.
|
|
4658 if test -n "$x_libraries"; then
|
|
4659 X_LIBS="$X_LIBS -L$x_libraries"
|
|
4660 # For Solaris; some versions of Sun CC require a space after -R and
|
|
4661 # others require no space. Words are not sufficient . . . .
|
|
4662 case "`(uname -sr) 2>/dev/null`" in
|
|
4663 "SunOS 5"*)
|
|
4664 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
306
|
4665 echo "configure:4666: checking whether -R must be followed by a space" >&5
|
149
|
4666 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
4667 cat > conftest.$ac_ext <<EOF
|
306
|
4668 #line 4669 "configure"
|
|
4669 #include "confdefs.h"
|
|
4670
|
|
4671 int main() {
|
|
4672
|
|
4673 ; return 0; }
|
|
4674 EOF
|
|
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4676 rm -rf conftest*
|
|
4677 ac_R_nospace=yes
|
|
4678 else
|
|
4679 echo "configure: failed program was:" >&5
|
|
4680 cat conftest.$ac_ext >&5
|
|
4681 rm -rf conftest*
|
|
4682 ac_R_nospace=no
|
|
4683 fi
|
|
4684 rm -f conftest*
|
|
4685 if test $ac_R_nospace = yes; then
|
|
4686 echo "$ac_t""no" 1>&6
|
|
4687 X_LIBS="$X_LIBS -R$x_libraries"
|
|
4688 else
|
|
4689 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
4690 cat > conftest.$ac_ext <<EOF
|
306
|
4691 #line 4692 "configure"
|
|
4692 #include "confdefs.h"
|
|
4693
|
|
4694 int main() {
|
|
4695
|
|
4696 ; return 0; }
|
|
4697 EOF
|
|
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4699 rm -rf conftest*
|
|
4700 ac_R_space=yes
|
|
4701 else
|
|
4702 echo "configure: failed program was:" >&5
|
|
4703 cat conftest.$ac_ext >&5
|
|
4704 rm -rf conftest*
|
|
4705 ac_R_space=no
|
|
4706 fi
|
|
4707 rm -f conftest*
|
|
4708 if test $ac_R_space = yes; then
|
|
4709 echo "$ac_t""yes" 1>&6
|
|
4710 X_LIBS="$X_LIBS -R $x_libraries"
|
|
4711 else
|
|
4712 echo "$ac_t""neither works" 1>&6
|
|
4713 fi
|
|
4714 fi
|
|
4715 LIBS="$ac_xsave_LIBS"
|
|
4716 esac
|
|
4717 fi
|
|
4718
|
|
4719 # Check for system-dependent libraries X programs must link with.
|
|
4720 # Do this before checking for the system-independent R6 libraries
|
|
4721 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
4722
|
|
4723 if test "$ISC" = yes; then
|
|
4724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
4725 else
|
|
4726 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
4727 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
4728 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
4729 if test "$with_dnet" = "no" ; then
|
149
|
4730 ac_cv_lib_dnet_dnet_ntoa=no
|
|
4731 else
|
|
4732
|
|
4733 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
306
|
4734 echo "configure:4735: checking for dnet_ntoa in -ldnet" >&5
|
149
|
4735 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
4736
|
|
4737 xe_check_libs=" -ldnet "
|
|
4738 cat > conftest.$ac_ext <<EOF
|
306
|
4739 #line 4740 "configure"
|
149
|
4740 #include "confdefs.h"
|
|
4741 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4742 /* We use char because int might match the return type of a gcc2
|
|
4743 builtin and then its argument prototype would still apply. */
|
|
4744 char dnet_ntoa();
|
|
4745
|
|
4746 int main() {
|
|
4747 dnet_ntoa()
|
|
4748 ; return 0; }
|
|
4749 EOF
|
306
|
4750 if { (eval echo configure:4751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4751 rm -rf conftest*
|
|
4752 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4753 else
|
|
4754 echo "configure: failed program was:" >&5
|
|
4755 cat conftest.$ac_ext >&5
|
|
4756 rm -rf conftest*
|
|
4757 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4758 fi
|
|
4759 rm -f conftest*
|
|
4760 xe_check_libs=""
|
|
4761
|
151
|
4762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4763 echo "$ac_t""yes" 1>&6
|
|
4764 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
4765 else
|
|
4766 echo "$ac_t""no" 1>&6
|
|
4767 fi
|
|
4768
|
|
4769 fi
|
|
4770
|
|
4771 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
4772
|
|
4773 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
306
|
4774 echo "configure:4775: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
4775 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
4776
|
|
4777 xe_check_libs=" -ldnet_stub "
|
|
4778 cat > conftest.$ac_ext <<EOF
|
306
|
4779 #line 4780 "configure"
|
149
|
4780 #include "confdefs.h"
|
|
4781 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4782 /* We use char because int might match the return type of a gcc2
|
|
4783 builtin and then its argument prototype would still apply. */
|
|
4784 char dnet_ntoa();
|
|
4785
|
|
4786 int main() {
|
|
4787 dnet_ntoa()
|
|
4788 ; return 0; }
|
|
4789 EOF
|
306
|
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4791 rm -rf conftest*
|
|
4792 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4793 else
|
|
4794 echo "configure: failed program was:" >&5
|
|
4795 cat conftest.$ac_ext >&5
|
|
4796 rm -rf conftest*
|
|
4797 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4798 fi
|
|
4799 rm -f conftest*
|
|
4800 xe_check_libs=""
|
|
4801
|
151
|
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4803 echo "$ac_t""yes" 1>&6
|
|
4804 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
4805 else
|
|
4806 echo "$ac_t""no" 1>&6
|
|
4807 fi
|
|
4808
|
|
4809
|
|
4810 fi
|
|
4811
|
|
4812 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
4813 # to get the SysV transport functions.
|
|
4814 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
4815 # needs -lnsl.
|
|
4816 # The nsl library prevents programs from opening the X display
|
|
4817 # on Irix 5.2, according to dickey@clark.net.
|
|
4818 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
306
|
4819 echo "configure:4820: checking for gethostbyname" >&5
|
|
4820
|
|
4821 cat > conftest.$ac_ext <<EOF
|
|
4822 #line 4823 "configure"
|
149
|
4823 #include "confdefs.h"
|
|
4824 /* System header to define __stub macros and hopefully few prototypes,
|
|
4825 which can conflict with char gethostbyname(); below. */
|
|
4826 #include <assert.h>
|
|
4827 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4828 /* We use char because int might match the return type of a gcc2
|
|
4829 builtin and then its argument prototype would still apply. */
|
|
4830 char gethostbyname();
|
|
4831
|
|
4832 int main() {
|
|
4833
|
|
4834 /* The GNU C library defines this for functions which it implements
|
|
4835 to always fail with ENOSYS. Some functions are actually named
|
|
4836 something starting with __ and the normal name is an alias. */
|
|
4837 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
4838 choke me
|
|
4839 #else
|
|
4840 gethostbyname();
|
|
4841 #endif
|
|
4842
|
|
4843 ; return 0; }
|
|
4844 EOF
|
306
|
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4846 rm -rf conftest*
|
|
4847 eval "ac_cv_func_gethostbyname=yes"
|
|
4848 else
|
|
4849 echo "configure: failed program was:" >&5
|
|
4850 cat conftest.$ac_ext >&5
|
|
4851 rm -rf conftest*
|
|
4852 eval "ac_cv_func_gethostbyname=no"
|
|
4853 fi
|
|
4854 rm -f conftest*
|
|
4855
|
|
4856 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
4857 echo "$ac_t""yes" 1>&6
|
|
4858 :
|
|
4859 else
|
|
4860 echo "$ac_t""no" 1>&6
|
|
4861 fi
|
|
4862
|
|
4863 if test $ac_cv_func_gethostbyname = no; then
|
|
4864
|
|
4865 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
306
|
4866 echo "configure:4867: checking for gethostbyname in -lnsl" >&5
|
149
|
4867 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
4868
|
|
4869 xe_check_libs=" -lnsl "
|
|
4870 cat > conftest.$ac_ext <<EOF
|
306
|
4871 #line 4872 "configure"
|
149
|
4872 #include "confdefs.h"
|
|
4873 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4874 /* We use char because int might match the return type of a gcc2
|
|
4875 builtin and then its argument prototype would still apply. */
|
|
4876 char gethostbyname();
|
|
4877
|
|
4878 int main() {
|
|
4879 gethostbyname()
|
|
4880 ; return 0; }
|
|
4881 EOF
|
306
|
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4883 rm -rf conftest*
|
|
4884 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4885 else
|
|
4886 echo "configure: failed program was:" >&5
|
|
4887 cat conftest.$ac_ext >&5
|
|
4888 rm -rf conftest*
|
|
4889 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4890 fi
|
|
4891 rm -f conftest*
|
|
4892 xe_check_libs=""
|
|
4893
|
151
|
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4895 echo "$ac_t""yes" 1>&6
|
|
4896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
4897 else
|
|
4898 echo "$ac_t""no" 1>&6
|
|
4899 fi
|
|
4900
|
|
4901
|
|
4902 fi
|
|
4903
|
|
4904 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
4905 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
4906 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
4907 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
4908 # gethostby* variants that don't use the nameserver (or something).
|
|
4909 # -lsocket must be given before -lnsl if both are needed.
|
|
4910 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
4911 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
306
|
4912 echo "configure:4913: checking for connect" >&5
|
|
4913
|
|
4914 cat > conftest.$ac_ext <<EOF
|
|
4915 #line 4916 "configure"
|
149
|
4916 #include "confdefs.h"
|
|
4917 /* System header to define __stub macros and hopefully few prototypes,
|
|
4918 which can conflict with char connect(); below. */
|
|
4919 #include <assert.h>
|
|
4920 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4921 /* We use char because int might match the return type of a gcc2
|
|
4922 builtin and then its argument prototype would still apply. */
|
|
4923 char connect();
|
|
4924
|
|
4925 int main() {
|
|
4926
|
|
4927 /* The GNU C library defines this for functions which it implements
|
|
4928 to always fail with ENOSYS. Some functions are actually named
|
|
4929 something starting with __ and the normal name is an alias. */
|
|
4930 #if defined (__stub_connect) || defined (__stub___connect)
|
|
4931 choke me
|
|
4932 #else
|
|
4933 connect();
|
|
4934 #endif
|
|
4935
|
|
4936 ; return 0; }
|
|
4937 EOF
|
306
|
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4939 rm -rf conftest*
|
|
4940 eval "ac_cv_func_connect=yes"
|
|
4941 else
|
|
4942 echo "configure: failed program was:" >&5
|
|
4943 cat conftest.$ac_ext >&5
|
|
4944 rm -rf conftest*
|
|
4945 eval "ac_cv_func_connect=no"
|
|
4946 fi
|
|
4947 rm -f conftest*
|
|
4948
|
|
4949 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
4950 echo "$ac_t""yes" 1>&6
|
|
4951 :
|
|
4952 else
|
|
4953 echo "$ac_t""no" 1>&6
|
|
4954 fi
|
|
4955
|
|
4956 if test $ac_cv_func_connect = no; then
|
|
4957
|
|
4958 xe_msg_checking="for connect in -lsocket"
|
|
4959 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
4960 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
306
|
4961 echo "configure:4962: checking "$xe_msg_checking"" >&5
|
149
|
4962 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
4963
|
|
4964 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
4965 cat > conftest.$ac_ext <<EOF
|
306
|
4966 #line 4967 "configure"
|
149
|
4967 #include "confdefs.h"
|
|
4968 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4969 /* We use char because int might match the return type of a gcc2
|
|
4970 builtin and then its argument prototype would still apply. */
|
|
4971 char connect();
|
|
4972
|
|
4973 int main() {
|
|
4974 connect()
|
|
4975 ; return 0; }
|
|
4976 EOF
|
306
|
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
4978 rm -rf conftest*
|
|
4979 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4980 else
|
|
4981 echo "configure: failed program was:" >&5
|
|
4982 cat conftest.$ac_ext >&5
|
|
4983 rm -rf conftest*
|
|
4984 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4985 fi
|
|
4986 rm -f conftest*
|
|
4987 xe_check_libs=""
|
|
4988
|
151
|
4989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4990 echo "$ac_t""yes" 1>&6
|
|
4991 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
4992 else
|
|
4993 echo "$ac_t""no" 1>&6
|
|
4994 fi
|
|
4995
|
|
4996
|
|
4997 fi
|
|
4998
|
|
4999 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
5000 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
306
|
5001 echo "configure:5002: checking for remove" >&5
|
|
5002
|
|
5003 cat > conftest.$ac_ext <<EOF
|
|
5004 #line 5005 "configure"
|
149
|
5005 #include "confdefs.h"
|
|
5006 /* System header to define __stub macros and hopefully few prototypes,
|
|
5007 which can conflict with char remove(); below. */
|
|
5008 #include <assert.h>
|
|
5009 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5010 /* We use char because int might match the return type of a gcc2
|
|
5011 builtin and then its argument prototype would still apply. */
|
|
5012 char remove();
|
|
5013
|
|
5014 int main() {
|
|
5015
|
|
5016 /* The GNU C library defines this for functions which it implements
|
|
5017 to always fail with ENOSYS. Some functions are actually named
|
|
5018 something starting with __ and the normal name is an alias. */
|
|
5019 #if defined (__stub_remove) || defined (__stub___remove)
|
|
5020 choke me
|
|
5021 #else
|
|
5022 remove();
|
|
5023 #endif
|
|
5024
|
|
5025 ; return 0; }
|
|
5026 EOF
|
306
|
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5028 rm -rf conftest*
|
|
5029 eval "ac_cv_func_remove=yes"
|
|
5030 else
|
|
5031 echo "configure: failed program was:" >&5
|
|
5032 cat conftest.$ac_ext >&5
|
|
5033 rm -rf conftest*
|
|
5034 eval "ac_cv_func_remove=no"
|
|
5035 fi
|
|
5036 rm -f conftest*
|
|
5037
|
|
5038 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
5039 echo "$ac_t""yes" 1>&6
|
|
5040 :
|
|
5041 else
|
|
5042 echo "$ac_t""no" 1>&6
|
|
5043 fi
|
|
5044
|
|
5045 if test $ac_cv_func_remove = no; then
|
|
5046
|
|
5047 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
306
|
5048 echo "configure:5049: checking for remove in -lposix" >&5
|
149
|
5049 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
5050
|
|
5051 xe_check_libs=" -lposix "
|
|
5052 cat > conftest.$ac_ext <<EOF
|
306
|
5053 #line 5054 "configure"
|
149
|
5054 #include "confdefs.h"
|
|
5055 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5056 /* We use char because int might match the return type of a gcc2
|
|
5057 builtin and then its argument prototype would still apply. */
|
|
5058 char remove();
|
|
5059
|
|
5060 int main() {
|
|
5061 remove()
|
|
5062 ; return 0; }
|
|
5063 EOF
|
306
|
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5065 rm -rf conftest*
|
|
5066 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5067 else
|
|
5068 echo "configure: failed program was:" >&5
|
|
5069 cat conftest.$ac_ext >&5
|
|
5070 rm -rf conftest*
|
|
5071 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5072 fi
|
|
5073 rm -f conftest*
|
|
5074 xe_check_libs=""
|
|
5075
|
151
|
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5077 echo "$ac_t""yes" 1>&6
|
|
5078 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
5079 else
|
|
5080 echo "$ac_t""no" 1>&6
|
|
5081 fi
|
|
5082
|
|
5083
|
|
5084 fi
|
|
5085
|
|
5086 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
5087 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
306
|
5088 echo "configure:5089: checking for shmat" >&5
|
|
5089
|
|
5090 cat > conftest.$ac_ext <<EOF
|
|
5091 #line 5092 "configure"
|
149
|
5092 #include "confdefs.h"
|
|
5093 /* System header to define __stub macros and hopefully few prototypes,
|
|
5094 which can conflict with char shmat(); below. */
|
|
5095 #include <assert.h>
|
|
5096 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5097 /* We use char because int might match the return type of a gcc2
|
|
5098 builtin and then its argument prototype would still apply. */
|
|
5099 char shmat();
|
|
5100
|
|
5101 int main() {
|
|
5102
|
|
5103 /* The GNU C library defines this for functions which it implements
|
|
5104 to always fail with ENOSYS. Some functions are actually named
|
|
5105 something starting with __ and the normal name is an alias. */
|
|
5106 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
5107 choke me
|
|
5108 #else
|
|
5109 shmat();
|
|
5110 #endif
|
|
5111
|
|
5112 ; return 0; }
|
|
5113 EOF
|
306
|
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5115 rm -rf conftest*
|
|
5116 eval "ac_cv_func_shmat=yes"
|
|
5117 else
|
|
5118 echo "configure: failed program was:" >&5
|
|
5119 cat conftest.$ac_ext >&5
|
|
5120 rm -rf conftest*
|
|
5121 eval "ac_cv_func_shmat=no"
|
|
5122 fi
|
|
5123 rm -f conftest*
|
|
5124
|
|
5125 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
5126 echo "$ac_t""yes" 1>&6
|
|
5127 :
|
|
5128 else
|
|
5129 echo "$ac_t""no" 1>&6
|
|
5130 fi
|
|
5131
|
|
5132 if test $ac_cv_func_shmat = no; then
|
|
5133
|
|
5134 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
306
|
5135 echo "configure:5136: checking for shmat in -lipc" >&5
|
149
|
5136 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
5137
|
|
5138 xe_check_libs=" -lipc "
|
|
5139 cat > conftest.$ac_ext <<EOF
|
306
|
5140 #line 5141 "configure"
|
149
|
5141 #include "confdefs.h"
|
|
5142 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5143 /* We use char because int might match the return type of a gcc2
|
|
5144 builtin and then its argument prototype would still apply. */
|
|
5145 char shmat();
|
|
5146
|
|
5147 int main() {
|
|
5148 shmat()
|
|
5149 ; return 0; }
|
|
5150 EOF
|
306
|
5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5152 rm -rf conftest*
|
|
5153 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5154 else
|
|
5155 echo "configure: failed program was:" >&5
|
|
5156 cat conftest.$ac_ext >&5
|
|
5157 rm -rf conftest*
|
|
5158 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5159 fi
|
|
5160 rm -f conftest*
|
|
5161 xe_check_libs=""
|
|
5162
|
151
|
5163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5164 echo "$ac_t""yes" 1>&6
|
|
5165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
5166 else
|
|
5167 echo "$ac_t""no" 1>&6
|
|
5168 fi
|
|
5169
|
0
|
5170
|
|
5171 fi
|
149
|
5172 fi
|
|
5173
|
|
5174 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
5175 ac_save_LDFLAGS="$LDFLAGS"
|
|
5176 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
5177 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
5178 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
5179 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
5180 # These have to be linked with before -lX11, unlike the other
|
|
5181 # libraries we check for below, so use a different variable.
|
|
5182 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
5183
|
|
5184 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
306
|
5185 echo "configure:5186: checking for IceConnectionNumber in -lICE" >&5
|
149
|
5186 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
5187
|
|
5188 xe_check_libs=" -lICE "
|
|
5189 cat > conftest.$ac_ext <<EOF
|
306
|
5190 #line 5191 "configure"
|
149
|
5191 #include "confdefs.h"
|
|
5192 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5193 /* We use char because int might match the return type of a gcc2
|
|
5194 builtin and then its argument prototype would still apply. */
|
|
5195 char IceConnectionNumber();
|
|
5196
|
|
5197 int main() {
|
|
5198 IceConnectionNumber()
|
|
5199 ; return 0; }
|
|
5200 EOF
|
306
|
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5202 rm -rf conftest*
|
|
5203 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5204 else
|
|
5205 echo "configure: failed program was:" >&5
|
|
5206 cat conftest.$ac_ext >&5
|
|
5207 rm -rf conftest*
|
|
5208 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5209 fi
|
|
5210 rm -f conftest*
|
|
5211 xe_check_libs=""
|
|
5212
|
151
|
5213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5214 echo "$ac_t""yes" 1>&6
|
|
5215 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
5216 else
|
|
5217 echo "$ac_t""no" 1>&6
|
|
5218 fi
|
|
5219
|
|
5220
|
|
5221 LDFLAGS="$ac_save_LDFLAGS"
|
|
5222
|
|
5223 fi
|
|
5224 # Autoconf claims to find X library and include dirs for us.
|
|
5225 if test "$no_x" = "yes"
|
|
5226 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
5227 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
5228 fi
|
|
5229 fi
|
|
5230
|
|
5231 case "$with_x11" in
|
|
5232 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
|
|
5233 no ) window_system=none HAVE_X_WINDOWS=no ;;
|
0
|
5234 esac
|
|
5235
|
149
|
5236 if test "$with_x11" = "yes"; then
|
|
5237 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5238 Defining HAVE_X_WINDOWS
|
|
5239 EOF
|
|
5240 cat >> confdefs.h <<\EOF
|
|
5241 #define HAVE_X_WINDOWS 1
|
|
5242 EOF
|
|
5243 }
|
|
5244
|
151
|
5245 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
5246 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
5247
|
278
|
5248 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
159
|
5249 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
149
|
5250 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
5251 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
5252 x_libraries="$lib_dir $x_libraries"
|
|
5253 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
149
|
5254 esac
|
151
|
5255 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
5256 x_includes="$inc_dir $x_includes"
|
|
5257 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
149
|
5258 esac
|
|
5259 break; fi
|
|
5260 done
|
|
5261
|
|
5262 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
5263 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
5264 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
5265 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
5266 x_libraries="$x_libraries $lib_dir"
|
|
5267 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
5268 esac
|
151
|
5269 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
5270 x_includes="$x_includes $inc_dir"
|
|
5271 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
5272 esac
|
|
5273 break; fi
|
|
5274 done
|
|
5275
|
306
|
5276 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
|
|
5277
|
149
|
5278 ld_switch_x_site="$X_LIBS"
|
|
5279
|
151
|
5280
|
|
5281 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
5282 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
5283 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
5284
|
163
|
5285 runpath="" runpath_dirs=""
|
155
|
5286 if test -n "$LD_RUN_PATH"; then
|
151
|
5287 runpath="$LD_RUN_PATH"
|
155
|
5288 elif test "$GCC" = "yes"; then
|
163
|
5289 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
5290 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
5291 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
5292 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
5293 case "$arg" in P,* | -L* | -R* )
|
159
|
5294 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
5295 {
|
155
|
5296 xe_runpath_dir="$dir"
|
163
|
5297 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
5298 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
5299 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
5300 eval "$xe_add_unique_runpath_dir"
|
|
5301 }
|
155
|
5302 done ;;
|
|
5303 esac
|
|
5304 done
|
163
|
5305 ld_switch_run="$ld_switch_run_save"
|
155
|
5306 rm -f conftest*
|
151
|
5307 else
|
155
|
5308 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
5309 case "$arg" in -L*) {
|
159
|
5310 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
5311 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
5312 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
5313 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
5314 eval "$xe_add_unique_runpath_dir"
|
|
5315 };; esac
|
151
|
5316 done
|
163
|
5317 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
5318 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
5319 eval "$xe_add_unique_runpath_dir";
|
|
5320 fi
|
155
|
5321 fi
|
151
|
5322 if test -n "$runpath"; then
|
|
5323 ld_switch_run="${dash_r}${runpath}"
|
272
|
5324
|
|
5325 if test "$GCC" = "yes"; then
|
|
5326 set x $ld_switch_run; shift; ld_switch_run=""
|
|
5327 while test -n "$1"; do
|
|
5328 case $1 in
|
|
5329 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
5330 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
5331 -Xlinker* ) ;;
|
|
5332 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
5333 esac
|
|
5334 shift
|
|
5335 done
|
|
5336 fi
|
151
|
5337 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
5338 fi
|
|
5339 fi
|
|
5340
|
|
5341
|
149
|
5342 if test "$extra_verbose" = "yes"; then
|
|
5343 echo; echo "X11 compilation variables:"
|
163
|
5344 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
5345 echo
|
|
5346 fi
|
|
5347
|
265
|
5348 bitmapdirs=
|
|
5349 if test "$x_includes" != NONE; then
|
|
5350 for i in $x_includes; do
|
|
5351 if test -d "$i/bitmaps"; then
|
|
5352 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
5353 fi
|
|
5354 if test -d "$i/X11/bitmaps"; then
|
|
5355 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
5356 fi
|
|
5357 done
|
|
5358 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
5359 fi
|
|
5360 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
5361 Defining BITMAPDIR = "$bitmapdirs"
|
|
5362 EOF
|
|
5363 cat >> confdefs.h <<EOF
|
|
5364 #define BITMAPDIR "$bitmapdirs"
|
|
5365 EOF
|
|
5366 }
|
|
5367
|
|
5368
|
163
|
5369 echo "checking for X defines extracted by xmkmf" 1>&6
|
306
|
5370 echo "configure:5371: checking for X defines extracted by xmkmf" >&5
|
163
|
5371 rm -fr conftestdir
|
|
5372 if mkdir conftestdir; then
|
|
5373 cd conftestdir
|
|
5374 cat > Imakefile <<'EOF'
|
|
5375 xetest:
|
|
5376 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
5377 EOF
|
|
5378 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
5380 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
5381 fi
|
|
5382 cd ..
|
|
5383 rm -fr conftestdir
|
|
5384 for word in $xmkmf_defines; do
|
|
5385 case "$word" in
|
|
5386 -D*=* ) ;;
|
|
5387 -D* ) word=`echo '' $word | sed -e 's:^ *-D::'`
|
|
5388 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5389 Defining $word
|
|
5390 EOF
|
|
5391 cat >> confdefs.h <<EOF
|
|
5392 #define $word 1
|
|
5393 EOF
|
|
5394 }
|
|
5395 ;;
|
|
5396 esac
|
|
5397 done
|
|
5398 fi
|
|
5399
|
149
|
5400 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
5401 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
306
|
5402 echo "configure:5403: checking for X11/Intrinsic.h" >&5
|
|
5403
|
|
5404 cat > conftest.$ac_ext <<EOF
|
|
5405 #line 5406 "configure"
|
149
|
5406 #include "confdefs.h"
|
|
5407 #include <X11/Intrinsic.h>
|
|
5408 EOF
|
|
5409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
5410 { (eval echo configure:5411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
5411 ac_err=`grep -v '^ *+' conftest.out`
|
|
5412 if test -z "$ac_err"; then
|
|
5413 rm -rf conftest*
|
|
5414 eval "ac_cv_header_$ac_safe=yes"
|
|
5415 else
|
|
5416 echo "$ac_err" >&5
|
|
5417 echo "configure: failed program was:" >&5
|
|
5418 cat conftest.$ac_ext >&5
|
|
5419 rm -rf conftest*
|
|
5420 eval "ac_cv_header_$ac_safe=no"
|
|
5421 fi
|
|
5422 rm -f conftest*
|
|
5423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5424 echo "$ac_t""yes" 1>&6
|
|
5425 :
|
|
5426 else
|
|
5427 echo "$ac_t""no" 1>&6
|
|
5428 { echo "configure: error: "Unable to find X11 header files."" 1>&2; exit 1; }
|
|
5429 fi
|
|
5430
|
|
5431
|
|
5432
|
|
5433 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
306
|
5434 echo "configure:5435: checking for XOpenDisplay in -lX11" >&5
|
149
|
5435 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
5436
|
|
5437 xe_check_libs=" -lX11 "
|
|
5438 cat > conftest.$ac_ext <<EOF
|
306
|
5439 #line 5440 "configure"
|
149
|
5440 #include "confdefs.h"
|
|
5441 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5442 /* We use char because int might match the return type of a gcc2
|
|
5443 builtin and then its argument prototype would still apply. */
|
|
5444 char XOpenDisplay();
|
|
5445
|
|
5446 int main() {
|
|
5447 XOpenDisplay()
|
|
5448 ; return 0; }
|
|
5449 EOF
|
306
|
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5451 rm -rf conftest*
|
|
5452 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5453 else
|
|
5454 echo "configure: failed program was:" >&5
|
|
5455 cat conftest.$ac_ext >&5
|
|
5456 rm -rf conftest*
|
|
5457 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5458 fi
|
|
5459 rm -f conftest*
|
|
5460 xe_check_libs=""
|
|
5461
|
151
|
5462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5463 echo "$ac_t""yes" 1>&6
|
|
5464 have_lib_x11=yes
|
|
5465 else
|
|
5466 echo "$ac_t""no" 1>&6
|
|
5467 fi
|
|
5468
|
|
5469
|
|
5470 if test "$have_lib_x11" != "yes"; then
|
|
5471
|
|
5472 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
5473 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
5474 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
306
|
5475 echo "configure:5476: checking "$xe_msg_checking"" >&5
|
149
|
5476 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
5477
|
|
5478 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
5479 cat > conftest.$ac_ext <<EOF
|
306
|
5480 #line 5481 "configure"
|
149
|
5481 #include "confdefs.h"
|
|
5482 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5483 /* We use char because int might match the return type of a gcc2
|
|
5484 builtin and then its argument prototype would still apply. */
|
|
5485 char XGetFontProperty();
|
|
5486
|
|
5487 int main() {
|
|
5488 XGetFontProperty()
|
|
5489 ; return 0; }
|
|
5490 EOF
|
306
|
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5492 rm -rf conftest*
|
|
5493 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5494 else
|
|
5495 echo "configure: failed program was:" >&5
|
|
5496 cat conftest.$ac_ext >&5
|
|
5497 rm -rf conftest*
|
|
5498 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5499 fi
|
|
5500 rm -f conftest*
|
|
5501 xe_check_libs=""
|
|
5502
|
151
|
5503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5504 echo "$ac_t""yes" 1>&6
|
|
5505 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
5506 else
|
|
5507 echo "$ac_t""no" 1>&6
|
|
5508 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
5509 fi
|
|
5510
|
|
5511
|
0
|
5512 fi
|
149
|
5513 libs_x="-lX11"
|
151
|
5514 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
5515
|
153
|
5516
|
|
5517 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
306
|
5518 echo "configure:5519: checking for XShapeSelectInput in -lXext" >&5
|
153
|
5519 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
5520
|
|
5521 xe_check_libs=" -lXext "
|
|
5522 cat > conftest.$ac_ext <<EOF
|
306
|
5523 #line 5524 "configure"
|
153
|
5524 #include "confdefs.h"
|
|
5525 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5526 /* We use char because int might match the return type of a gcc2
|
|
5527 builtin and then its argument prototype would still apply. */
|
|
5528 char XShapeSelectInput();
|
|
5529
|
|
5530 int main() {
|
|
5531 XShapeSelectInput()
|
|
5532 ; return 0; }
|
|
5533 EOF
|
306
|
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
153
|
5535 rm -rf conftest*
|
|
5536 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5537 else
|
|
5538 echo "configure: failed program was:" >&5
|
|
5539 cat conftest.$ac_ext >&5
|
|
5540 rm -rf conftest*
|
|
5541 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5542 fi
|
|
5543 rm -f conftest*
|
|
5544 xe_check_libs=""
|
|
5545
|
|
5546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5547 echo "$ac_t""yes" 1>&6
|
|
5548 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
5549 else
|
|
5550 echo "$ac_t""no" 1>&6
|
|
5551 fi
|
|
5552
|
|
5553
|
|
5554
|
169
|
5555
|
149
|
5556 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
306
|
5557 echo "configure:5558: checking for XtOpenDisplay in -lXt" >&5
|
149
|
5558 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
5559
|
|
5560 xe_check_libs=" -lXt "
|
|
5561 cat > conftest.$ac_ext <<EOF
|
306
|
5562 #line 5563 "configure"
|
149
|
5563 #include "confdefs.h"
|
|
5564 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5565 /* We use char because int might match the return type of a gcc2
|
|
5566 builtin and then its argument prototype would still apply. */
|
|
5567 char XtOpenDisplay();
|
|
5568
|
|
5569 int main() {
|
|
5570 XtOpenDisplay()
|
|
5571 ; return 0; }
|
|
5572 EOF
|
306
|
5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5574 rm -rf conftest*
|
|
5575 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5576 else
|
|
5577 echo "configure: failed program was:" >&5
|
|
5578 cat conftest.$ac_ext >&5
|
|
5579 rm -rf conftest*
|
|
5580 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5581 fi
|
|
5582 rm -f conftest*
|
|
5583 xe_check_libs=""
|
|
5584
|
151
|
5585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5586 echo "$ac_t""yes" 1>&6
|
|
5587 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
5588 else
|
|
5589 echo "$ac_t""no" 1>&6
|
|
5590 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; }
|
|
5591 fi
|
|
5592
|
169
|
5593
|
149
|
5594
|
|
5595 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
306
|
5596 echo "configure:5597: checking the version of X11 being used" >&5
|
149
|
5597 cat > conftest.$ac_ext <<EOF
|
306
|
5598 #line 5599 "configure"
|
149
|
5599 #include "confdefs.h"
|
|
5600 #include <X11/Intrinsic.h>
|
272
|
5601 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
5602 EOF
|
306
|
5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
5604 then
|
151
|
5605 ./conftest foobar; x11_release=$?
|
149
|
5606 else
|
306
|
5607 conftest_rc="$?"
|
149
|
5608 echo "configure: failed program was:" >&5
|
|
5609 cat conftest.$ac_ext >&5
|
|
5610 rm -fr conftest*
|
151
|
5611 x11_release=4
|
149
|
5612 fi
|
|
5613 rm -fr conftest*
|
151
|
5614 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
5615 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
5616 Defining THIS_IS_X11R${x11_release}
|
149
|
5617 EOF
|
|
5618 cat >> confdefs.h <<EOF
|
151
|
5619 #define THIS_IS_X11R${x11_release} 1
|
149
|
5620 EOF
|
|
5621 }
|
|
5622
|
|
5623
|
|
5624 for ac_hdr in X11/Xlocale.h
|
|
5625 do
|
|
5626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
306
|
5628 echo "configure:5629: checking for $ac_hdr" >&5
|
|
5629
|
|
5630 cat > conftest.$ac_ext <<EOF
|
|
5631 #line 5632 "configure"
|
149
|
5632 #include "confdefs.h"
|
|
5633 #include <$ac_hdr>
|
|
5634 EOF
|
|
5635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
5636 { (eval echo configure:5637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
5637 ac_err=`grep -v '^ *+' conftest.out`
|
|
5638 if test -z "$ac_err"; then
|
|
5639 rm -rf conftest*
|
|
5640 eval "ac_cv_header_$ac_safe=yes"
|
|
5641 else
|
|
5642 echo "$ac_err" >&5
|
|
5643 echo "configure: failed program was:" >&5
|
|
5644 cat conftest.$ac_ext >&5
|
|
5645 rm -rf conftest*
|
|
5646 eval "ac_cv_header_$ac_safe=no"
|
|
5647 fi
|
|
5648 rm -f conftest*
|
|
5649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5650 echo "$ac_t""yes" 1>&6
|
|
5651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5652 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5653 Defining $ac_tr_hdr
|
|
5654 EOF
|
|
5655 cat >> confdefs.h <<EOF
|
|
5656 #define $ac_tr_hdr 1
|
|
5657 EOF
|
|
5658 }
|
|
5659
|
|
5660 else
|
|
5661 echo "$ac_t""no" 1>&6
|
|
5662 fi
|
|
5663 done
|
|
5664
|
|
5665
|
|
5666 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
|
306
|
5667 echo "configure:5668: checking for XFree86" >&5
|
149
|
5668 if test -d "/usr/X386/include" -o \
|
169
|
5669 -f "/etc/XF86Config" -o \
|
149
|
5670 -f "/etc/X11/XF86Config" -o \
|
|
5671 -f "/usr/X11R6/lib/X11/XF86Config"; then
|
|
5672 echo "$ac_t""yes" 1>&6
|
|
5673 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5674 Defining HAVE_XFREE386
|
|
5675 EOF
|
|
5676 cat >> confdefs.h <<\EOF
|
|
5677 #define HAVE_XFREE386 1
|
|
5678 EOF
|
|
5679 }
|
|
5680
|
|
5681 else
|
|
5682 echo "$ac_t""no" 1>&6
|
|
5683 fi
|
|
5684
|
169
|
5685 test -z "$with_xmu" && {
|
|
5686 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
306
|
5687 echo "configure:5688: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
5688 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
5689
|
|
5690 xe_check_libs=" -lXmu "
|
|
5691 cat > conftest.$ac_ext <<EOF
|
306
|
5692 #line 5693 "configure"
|
149
|
5693 #include "confdefs.h"
|
|
5694 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5695 /* We use char because int might match the return type of a gcc2
|
|
5696 builtin and then its argument prototype would still apply. */
|
169
|
5697 char XmuReadBitmapDataFromFile();
|
149
|
5698
|
|
5699 int main() {
|
169
|
5700 XmuReadBitmapDataFromFile()
|
149
|
5701 ; return 0; }
|
|
5702 EOF
|
306
|
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5704 rm -rf conftest*
|
|
5705 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5706 else
|
|
5707 echo "configure: failed program was:" >&5
|
|
5708 cat conftest.$ac_ext >&5
|
|
5709 rm -rf conftest*
|
|
5710 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5711 fi
|
|
5712 rm -f conftest*
|
|
5713 xe_check_libs=""
|
|
5714
|
151
|
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5716 echo "$ac_t""yes" 1>&6
|
|
5717 with_xmu=yes
|
|
5718 else
|
|
5719 echo "$ac_t""no" 1>&6
|
|
5720 with_xmu=no
|
|
5721 fi
|
|
5722
|
169
|
5723 }
|
185
|
5724 if test "$with_xmu" = "no"; then
|
|
5725 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
5726 echo " xemacs will be linked with \"xmu.o\""
|
|
5727 fi
|
187
|
5728 else
|
185
|
5729 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
5730 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5731 Defining HAVE_XMU
|
|
5732 EOF
|
|
5733 cat >> confdefs.h <<\EOF
|
|
5734 #define HAVE_XMU 1
|
|
5735 EOF
|
|
5736 }
|
|
5737
|
169
|
5738 fi
|
151
|
5739
|
|
5740
|
|
5741 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
306
|
5742 echo "configure:5743: checking for main in -lXbsd" >&5
|
151
|
5743 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
5744
|
|
5745 xe_check_libs=" -lXbsd "
|
|
5746 cat > conftest.$ac_ext <<EOF
|
306
|
5747 #line 5748 "configure"
|
151
|
5748 #include "confdefs.h"
|
149
|
5749
|
|
5750 int main() {
|
151
|
5751 main()
|
149
|
5752 ; return 0; }
|
|
5753 EOF
|
306
|
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
5755 rm -rf conftest*
|
|
5756 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5757 else
|
|
5758 echo "configure: failed program was:" >&5
|
|
5759 cat conftest.$ac_ext >&5
|
|
5760 rm -rf conftest*
|
|
5761 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5762 fi
|
|
5763 rm -f conftest*
|
|
5764 xe_check_libs=""
|
|
5765
|
151
|
5766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5767 echo "$ac_t""yes" 1>&6
|
|
5768 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
5769 else
|
|
5770 echo "$ac_t""no" 1>&6
|
|
5771 fi
|
|
5772
|
149
|
5773
|
|
5774
|
243
|
5775 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
5776 if test "$GCC" = "yes"; then
|
|
5777 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
5778 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
5779 else
|
|
5780 case "$CC" in
|
|
5781 "xlc" ) CC="xlc_r" ;;
|
|
5782 "xlC" ) CC="xlC_r" ;;
|
|
5783 "cc" ) CC="cc_r" ;;
|
|
5784 esac
|
|
5785 fi
|
243
|
5786 fi
|
|
5787
|
149
|
5788 fi
|
265
|
5789 if test "$with_msw" != "no"; then
|
|
5790 echo "checking for MS-Windows" 1>&6
|
306
|
5791 echo "configure:5792: checking for MS-Windows" >&5
|
265
|
5792
|
|
5793 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
306
|
5794 echo "configure:5795: checking for main in -lgdi32" >&5
|
265
|
5795 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
5796
|
|
5797 xe_check_libs=" -lgdi32 "
|
|
5798 cat > conftest.$ac_ext <<EOF
|
306
|
5799 #line 5800 "configure"
|
265
|
5800 #include "confdefs.h"
|
|
5801
|
|
5802 int main() {
|
|
5803 main()
|
|
5804 ; return 0; }
|
|
5805 EOF
|
306
|
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
265
|
5807 rm -rf conftest*
|
|
5808 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5809 else
|
|
5810 echo "configure: failed program was:" >&5
|
|
5811 cat conftest.$ac_ext >&5
|
|
5812 rm -rf conftest*
|
|
5813 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5814 fi
|
|
5815 rm -f conftest*
|
|
5816 xe_check_libs=""
|
|
5817
|
|
5818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5819 echo "$ac_t""yes" 1>&6
|
|
5820 with_msw=yes
|
|
5821 else
|
|
5822 echo "$ac_t""no" 1>&6
|
|
5823 fi
|
|
5824
|
|
5825
|
|
5826 if test "$with_msw" = "yes"; then
|
|
5827 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5828 Defining HAVE_MS_WINDOWS
|
|
5829 EOF
|
|
5830 cat >> confdefs.h <<\EOF
|
|
5831 #define HAVE_MS_WINDOWS 1
|
|
5832 EOF
|
|
5833 }
|
|
5834
|
276
|
5835 install_pp="$blddir/lib-src/installexe.sh"
|
|
5836 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
|
265
|
5837 if test "$window_system" != x11; then
|
|
5838 window_system=msw
|
|
5839 test "$with_scrollbars" != "no" && with_scrollbars=msw \
|
|
5840 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5841 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
5842 fi
|
|
5843 test "$with_menubars" != "no" && with_menubars=msw \
|
|
5844 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5845 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
5846 fi
|
276
|
5847 test "$with_toolbars" != "no" && with_toolbars=msw \
|
|
5848 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5849 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
5850 fi
|
288
|
5851 test "$with_dialogs" != "no" && with_dialogs=msw \
|
|
5852 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5853 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
5854 fi
|
265
|
5855 else
|
|
5856 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5857 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
5858 fi
|
|
5859 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5860 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
5861 fi
|
276
|
5862 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5863 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
5864 fi
|
288
|
5865 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
5866 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
5867 fi
|
265
|
5868 fi
|
278
|
5869 cat > conftest.$ac_ext <<EOF
|
306
|
5870 #line 5871 "configure"
|
278
|
5871 #include "confdefs.h"
|
|
5872 #include <fcntl.h>
|
|
5873 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
5874 EOF
|
306
|
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
5876 then
|
|
5877 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5878 Defining HAVE_MSG_SELECT
|
|
5879 EOF
|
|
5880 cat >> confdefs.h <<\EOF
|
|
5881 #define HAVE_MSG_SELECT 1
|
|
5882 EOF
|
|
5883 }
|
|
5884
|
|
5885 else
|
306
|
5886 conftest_rc="$?"
|
278
|
5887 echo "configure: failed program was:" >&5
|
|
5888 cat conftest.$ac_ext >&5
|
|
5889 fi
|
|
5890 rm -fr conftest*
|
265
|
5891 const_is_losing=no
|
|
5892 with_file_coding=yes
|
278
|
5893 use_minimal_tagbits=yes
|
|
5894 use_indexed_lrecord_implementation=yes
|
267
|
5895 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
|
|
5896 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
|
5897 fi
|
|
5898 fi
|
|
5899 fi
|
|
5900
|
276
|
5901
|
|
5902
|
149
|
5903 test -z "$window_system" && window_system="none"
|
|
5904
|
272
|
5905 if test "$window_system" = "none"; then
|
282
|
5906 for feature in menubars scrollbars toolbars dialogs dragndrop
|
272
|
5907 do
|
|
5908 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
5909 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
5910 fi
|
|
5911 eval "with_${feature}=no"
|
|
5912 done
|
|
5913 else
|
|
5914 test -z "$with_toolbars" && with_toolbars=yes
|
|
5915 fi
|
|
5916
|
|
5917 if test "$with_msw" != "yes"; then
|
|
5918 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
5919 do
|
|
5920 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
5921 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
5922 fi
|
|
5923 eval "with_${feature}=no"
|
|
5924 done
|
|
5925 else
|
|
5926 :
|
|
5927 fi
|
|
5928
|
|
5929 if test "$with_x11" != "yes"; then
|
|
5930 for feature in tooltalk cde offix session xim xmu \
|
278
|
5931 xface
|
70
|
5932 do
|
149
|
5933 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
5934 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
5935 fi
|
149
|
5936 eval "with_${feature}=no"
|
70
|
5937 done
|
149
|
5938 fi
|
|
5939
|
0
|
5940 bitmapdir=
|
|
5941
|
149
|
5942 case "$window_system" in
|
70
|
5943 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
5944 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
70
|
5945 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
5946 esac
|
|
5947
|
149
|
5948 case "$x_libraries" in *X11R4* )
|
|
5949 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
5950 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
5951 esac
|
|
5952
|
179
|
5953 echo "checking for session-management option" 1>&6
|
306
|
5954 echo "configure:5955: checking for session-management option" >&5;
|
227
|
5955 if test "$with_session" != "no"; then
|
177
|
5956 { test "$extra_verbose" = "yes" && cat << \EOF
|
179
|
5957 Defining HAVE_SESSION
|
|
5958 EOF
|
|
5959 cat >> confdefs.h <<\EOF
|
|
5960 #define HAVE_SESSION 1
|
177
|
5961 EOF
|
|
5962 }
|
|
5963
|
|
5964 fi
|
|
5965
|
149
|
5966 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
5967 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
5968 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
306
|
5969 echo "configure:5970: checking for X11/Xauth.h" >&5
|
|
5970
|
|
5971 cat > conftest.$ac_ext <<EOF
|
|
5972 #line 5973 "configure"
|
149
|
5973 #include "confdefs.h"
|
|
5974 #include <X11/Xauth.h>
|
|
5975 EOF
|
|
5976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
5977 { (eval echo configure:5978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
5978 ac_err=`grep -v '^ *+' conftest.out`
|
|
5979 if test -z "$ac_err"; then
|
|
5980 rm -rf conftest*
|
|
5981 eval "ac_cv_header_$ac_safe=yes"
|
|
5982 else
|
|
5983 echo "$ac_err" >&5
|
|
5984 echo "configure: failed program was:" >&5
|
|
5985 cat conftest.$ac_ext >&5
|
|
5986 rm -rf conftest*
|
|
5987 eval "ac_cv_header_$ac_safe=no"
|
|
5988 fi
|
|
5989 rm -f conftest*
|
|
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5991 echo "$ac_t""yes" 1>&6
|
|
5992 :
|
|
5993 else
|
|
5994 echo "$ac_t""no" 1>&6
|
|
5995 with_xauth=no
|
|
5996 fi
|
|
5997 }
|
|
5998 test -z "$with_xauth" && {
|
|
5999 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
306
|
6000 echo "configure:6001: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
6001 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
6002
|
|
6003 xe_check_libs=" -lXau "
|
|
6004 cat > conftest.$ac_ext <<EOF
|
306
|
6005 #line 6006 "configure"
|
149
|
6006 #include "confdefs.h"
|
|
6007 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6008 /* We use char because int might match the return type of a gcc2
|
|
6009 builtin and then its argument prototype would still apply. */
|
|
6010 char XauGetAuthByAddr();
|
|
6011
|
|
6012 int main() {
|
|
6013 XauGetAuthByAddr()
|
|
6014 ; return 0; }
|
|
6015 EOF
|
306
|
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
6017 rm -rf conftest*
|
|
6018 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6019 else
|
|
6020 echo "configure: failed program was:" >&5
|
|
6021 cat conftest.$ac_ext >&5
|
|
6022 rm -rf conftest*
|
|
6023 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6024 fi
|
|
6025 rm -f conftest*
|
|
6026 xe_check_libs=""
|
|
6027
|
151
|
6028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6029 echo "$ac_t""yes" 1>&6
|
|
6030 :
|
|
6031 else
|
|
6032 echo "$ac_t""no" 1>&6
|
|
6033 with_xauth=no
|
|
6034 fi
|
|
6035
|
|
6036 }
|
|
6037 test -z "$with_xauth" && with_xauth=yes
|
|
6038 if test "$with_xauth" = "yes"; then
|
|
6039 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6040 Defining HAVE_XAUTH
|
|
6041 EOF
|
|
6042 cat >> confdefs.h <<\EOF
|
|
6043 #define HAVE_XAUTH 1
|
|
6044 EOF
|
|
6045 }
|
|
6046
|
159
|
6047
|
|
6048 T=""
|
|
6049 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
|
|
6050 libs_xauth="$T"
|
|
6051
|
|
6052 fi
|
|
6053
|
149
|
6054
|
274
|
6055
|
149
|
6056
|
|
6057 if test "$with_tooltalk" != "no" ; then
|
|
6058 for dir in "" "Tt/" "desktop/" ; do
|
|
6059 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
6060 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
306
|
6061 echo "configure:6062: checking for ${dir}tt_c.h" >&5
|
|
6062
|
|
6063 cat > conftest.$ac_ext <<EOF
|
|
6064 #line 6065 "configure"
|
149
|
6065 #include "confdefs.h"
|
|
6066 #include <${dir}tt_c.h>
|
|
6067 EOF
|
|
6068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
6069 { (eval echo configure:6070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
6070 ac_err=`grep -v '^ *+' conftest.out`
|
|
6071 if test -z "$ac_err"; then
|
|
6072 rm -rf conftest*
|
|
6073 eval "ac_cv_header_$ac_safe=yes"
|
|
6074 else
|
|
6075 echo "$ac_err" >&5
|
|
6076 echo "configure: failed program was:" >&5
|
|
6077 cat conftest.$ac_ext >&5
|
|
6078 rm -rf conftest*
|
|
6079 eval "ac_cv_header_$ac_safe=no"
|
|
6080 fi
|
|
6081 rm -f conftest*
|
|
6082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6083 echo "$ac_t""yes" 1>&6
|
284
|
6084 tt_c_h_path="${dir}tt_c.h"; break
|
149
|
6085 else
|
|
6086 echo "$ac_t""no" 1>&6
|
|
6087 fi
|
|
6088
|
|
6089 done
|
284
|
6090 if test -z "$tt_c_h_path"; then
|
|
6091 if test "$with_tooltalk" = "yes"; then
|
|
6092 (echo "$progname: Usage error:"
|
|
6093 echo " " "Unable to find required tooltalk header files."
|
|
6094 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
6095 fi
|
|
6096 with_tooltalk=no
|
|
6097 fi
|
149
|
6098 fi
|
|
6099 if test "$with_tooltalk" != "no" ; then
|
|
6100 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
6101
|
|
6102 xe_msg_checking="for tt_message_create in -ltt"
|
|
6103 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
6104 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
306
|
6105 echo "configure:6106: checking "$xe_msg_checking"" >&5
|
149
|
6106 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
6107
|
|
6108 xe_check_libs=" -ltt $extra_libs"
|
|
6109 cat > conftest.$ac_ext <<EOF
|
306
|
6110 #line 6111 "configure"
|
149
|
6111 #include "confdefs.h"
|
|
6112 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6113 /* We use char because int might match the return type of a gcc2
|
|
6114 builtin and then its argument prototype would still apply. */
|
|
6115 char tt_message_create();
|
|
6116
|
|
6117 int main() {
|
|
6118 tt_message_create()
|
|
6119 ; return 0; }
|
|
6120 EOF
|
306
|
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
6122 rm -rf conftest*
|
|
6123 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6124 else
|
|
6125 echo "configure: failed program was:" >&5
|
|
6126 cat conftest.$ac_ext >&5
|
|
6127 rm -rf conftest*
|
|
6128 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6129 fi
|
|
6130 rm -f conftest*
|
|
6131 xe_check_libs=""
|
|
6132
|
151
|
6133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6134 echo "$ac_t""yes" 1>&6
|
284
|
6135 tt_libs="-ltt $extra_libs"; break
|
149
|
6136 else
|
|
6137 echo "$ac_t""no" 1>&6
|
|
6138 :
|
|
6139 fi
|
|
6140
|
|
6141
|
|
6142 done
|
284
|
6143 if test -z "$tt_libs"; then
|
|
6144 if test "$with_tooltalk" = "yes"; then
|
|
6145 (echo "$progname: Usage error:"
|
|
6146 echo " " "Unable to find required tooltalk libraries."
|
|
6147 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
6148 fi
|
|
6149 with_tooltalk=no
|
|
6150 fi
|
|
6151 fi
|
|
6152 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
6153 if test "$with_tooltalk" = "yes"; then
|
|
6154 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6155 Defining TOOLTALK
|
|
6156 EOF
|
|
6157 cat >> confdefs.h <<\EOF
|
|
6158 #define TOOLTALK 1
|
|
6159 EOF
|
|
6160 }
|
|
6161
|
|
6162 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6163 Defining TT_C_H_PATH = "$tt_c_h_path"
|
|
6164 EOF
|
|
6165 cat >> confdefs.h <<EOF
|
|
6166 #define TT_C_H_PATH "$tt_c_h_path"
|
|
6167 EOF
|
|
6168 }
|
|
6169
|
151
|
6170 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
|
6171 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
|
|
6172 echo " xemacs will be linked with \"tooltalk.o\""
|
|
6173 fi
|
149
|
6174 fi
|
|
6175
|
|
6176 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
6177 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
306
|
6178 echo "configure:6179: checking for Dt/Dt.h" >&5
|
|
6179
|
|
6180 cat > conftest.$ac_ext <<EOF
|
|
6181 #line 6182 "configure"
|
149
|
6182 #include "confdefs.h"
|
|
6183 #include <Dt/Dt.h>
|
|
6184 EOF
|
|
6185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
6186 { (eval echo configure:6187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
6187 ac_err=`grep -v '^ *+' conftest.out`
|
|
6188 if test -z "$ac_err"; then
|
|
6189 rm -rf conftest*
|
|
6190 eval "ac_cv_header_$ac_safe=yes"
|
|
6191 else
|
|
6192 echo "$ac_err" >&5
|
|
6193 echo "configure: failed program was:" >&5
|
|
6194 cat conftest.$ac_ext >&5
|
|
6195 rm -rf conftest*
|
|
6196 eval "ac_cv_header_$ac_safe=no"
|
|
6197 fi
|
|
6198 rm -f conftest*
|
|
6199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6200 echo "$ac_t""yes" 1>&6
|
|
6201 :
|
|
6202 else
|
|
6203 echo "$ac_t""no" 1>&6
|
|
6204 with_cde=no
|
136
|
6205 fi
|
|
6206 }
|
149
|
6207 test -z "$with_cde" && {
|
|
6208 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
306
|
6209 echo "configure:6210: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
6210 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
6211
|
|
6212 xe_check_libs=" -lDtSvc "
|
|
6213 cat > conftest.$ac_ext <<EOF
|
306
|
6214 #line 6215 "configure"
|
149
|
6215 #include "confdefs.h"
|
|
6216 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6217 /* We use char because int might match the return type of a gcc2
|
|
6218 builtin and then its argument prototype would still apply. */
|
|
6219 char DtDndDragStart();
|
|
6220
|
|
6221 int main() {
|
|
6222 DtDndDragStart()
|
|
6223 ; return 0; }
|
|
6224 EOF
|
306
|
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
6226 rm -rf conftest*
|
|
6227 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6228 else
|
|
6229 echo "configure: failed program was:" >&5
|
|
6230 cat conftest.$ac_ext >&5
|
|
6231 rm -rf conftest*
|
|
6232 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6233 fi
|
|
6234 rm -f conftest*
|
|
6235 xe_check_libs=""
|
|
6236
|
151
|
6237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6238 echo "$ac_t""yes" 1>&6
|
|
6239 :
|
|
6240 else
|
|
6241 echo "$ac_t""no" 1>&6
|
|
6242 with_cde=no
|
|
6243 fi
|
|
6244
|
|
6245 }
|
|
6246 test -z "$with_cde" && with_cde=yes
|
282
|
6247 if test "$with_dragndrop" = no; then
|
|
6248 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
|
|
6249 with_cde=no
|
|
6250 fi
|
149
|
6251 if test "$with_cde" = "yes" ; then
|
|
6252 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6253 Defining HAVE_CDE
|
|
6254 EOF
|
|
6255 cat >> confdefs.h <<\EOF
|
|
6256 #define HAVE_CDE 1
|
|
6257 EOF
|
|
6258 }
|
|
6259
|
151
|
6260 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
6261 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
6262 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
6263 need_motif=yes # CDE requires Motif
|
149
|
6264 fi
|
|
6265
|
288
|
6266 test "$window_system" != "x11" && with_offix=no
|
|
6267 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
6268 echo "configure: warning: No OffiX without real Xmu support" 1>&2
|
|
6269 with_offix=no
|
|
6270 fi
|
|
6271 if test "$with_dragndrop" = no; then
|
|
6272 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
|
|
6273 with_offix=no
|
|
6274 fi
|
|
6275 if test "$with_cde" = yes; then
|
|
6276 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
|
|
6277 with_offix=no
|
|
6278 fi
|
300
|
6279 test -z "$with_offix" && with_offix=no
|
288
|
6280 if test "$with_offix" = "yes"; then
|
|
6281 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6282 Defining HAVE_OFFIX_DND
|
|
6283 EOF
|
|
6284 cat >> confdefs.h <<\EOF
|
|
6285 #define HAVE_OFFIX_DND 1
|
|
6286 EOF
|
|
6287 }
|
|
6288
|
|
6289 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
6290 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
6291 fi
|
|
6292
|
282
|
6293 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
306
|
6294 echo "configure:6295: checking if drag and drop API is needed" >&5
|
282
|
6295 if test "$with_dragndrop" != "no" ; then
|
|
6296 if test -n "$dragndrop_proto" ; then
|
|
6297 with_dragndrop=yes
|
|
6298 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
6299 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6300 Defining HAVE_DRAGNDROP
|
|
6301 EOF
|
|
6302 cat >> confdefs.h <<\EOF
|
|
6303 #define HAVE_DRAGNDROP 1
|
|
6304 EOF
|
|
6305 }
|
|
6306
|
|
6307 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
6308 else
|
|
6309 with_dragndrop=no
|
|
6310 echo "$ac_t""no" 1>&6
|
|
6311 fi
|
|
6312 fi
|
|
6313
|
259
|
6314 echo "checking for LDAP" 1>&6
|
306
|
6315 echo "configure:6316: checking for LDAP" >&5
|
259
|
6316 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
6317 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
306
|
6318 echo "configure:6319: checking for ldap.h" >&5
|
|
6319
|
|
6320 cat > conftest.$ac_ext <<EOF
|
|
6321 #line 6322 "configure"
|
259
|
6322 #include "confdefs.h"
|
|
6323 #include <ldap.h>
|
|
6324 EOF
|
|
6325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
6326 { (eval echo configure:6327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
259
|
6327 ac_err=`grep -v '^ *+' conftest.out`
|
|
6328 if test -z "$ac_err"; then
|
|
6329 rm -rf conftest*
|
|
6330 eval "ac_cv_header_$ac_safe=yes"
|
|
6331 else
|
|
6332 echo "$ac_err" >&5
|
|
6333 echo "configure: failed program was:" >&5
|
|
6334 cat conftest.$ac_ext >&5
|
|
6335 rm -rf conftest*
|
|
6336 eval "ac_cv_header_$ac_safe=no"
|
|
6337 fi
|
|
6338 rm -f conftest*
|
|
6339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6340 echo "$ac_t""yes" 1>&6
|
|
6341 :
|
|
6342 else
|
|
6343 echo "$ac_t""no" 1>&6
|
|
6344 with_ldap=no
|
|
6345 fi
|
|
6346 }
|
|
6347 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
6348 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
306
|
6349 echo "configure:6350: checking for lber.h" >&5
|
|
6350
|
|
6351 cat > conftest.$ac_ext <<EOF
|
|
6352 #line 6353 "configure"
|
259
|
6353 #include "confdefs.h"
|
|
6354 #include <lber.h>
|
|
6355 EOF
|
|
6356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
306
|
6357 { (eval echo configure:6358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
259
|
6358 ac_err=`grep -v '^ *+' conftest.out`
|
|
6359 if test -z "$ac_err"; then
|
|
6360 rm -rf conftest*
|
|
6361 eval "ac_cv_header_$ac_safe=yes"
|
|
6362 else
|
|
6363 echo "$ac_err" >&5
|
|
6364 echo "configure: failed program was:" >&5
|
|
6365 cat conftest.$ac_ext >&5
|
|
6366 rm -rf conftest*
|
|
6367 eval "ac_cv_header_$ac_safe=no"
|
|
6368 fi
|
|
6369 rm -f conftest*
|
|
6370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6371 echo "$ac_t""yes" 1>&6
|
|
6372 :
|
|
6373 else
|
|
6374 echo "$ac_t""no" 1>&6
|
|
6375 with_ldap=no
|
|
6376 fi
|
|
6377 }
|
272
|
6378 if test "$with_ldap" != "no"; then
|
|
6379 test -z "$with_umich_ldap" && {
|
259
|
6380 xe_msg_checking="for ldap_open in -lldap"
|
|
6381 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
6382 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
306
|
6383 echo "configure:6384: checking "$xe_msg_checking"" >&5
|
259
|
6384 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
6385
|
|
6386 xe_check_libs=" -lldap -llber"
|
|
6387 cat > conftest.$ac_ext <<EOF
|
306
|
6388 #line 6389 "configure"
|
259
|
6389 #include "confdefs.h"
|
|
6390 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6391 /* We use char because int might match the return type of a gcc2
|
|
6392 builtin and then its argument prototype would still apply. */
|
|
6393 char ldap_open();
|
|
6394
|
|
6395 int main() {
|
|
6396 ldap_open()
|
|
6397 ; return 0; }
|
|
6398 EOF
|
306
|
6399 if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
259
|
6400 rm -rf conftest*
|
|
6401 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6402 else
|
|
6403 echo "configure: failed program was:" >&5
|
|
6404 cat conftest.$ac_ext >&5
|
|
6405 rm -rf conftest*
|
|
6406 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6407 fi
|
|
6408 rm -f conftest*
|
|
6409 xe_check_libs=""
|
|
6410
|
|
6411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6412 echo "$ac_t""yes" 1>&6
|
|
6413 with_umich_ldap=yes
|
|
6414 else
|
|
6415 echo "$ac_t""no" 1>&6
|
|
6416 with_umich_ldap=no
|
|
6417 fi
|
|
6418
|
|
6419 }
|
272
|
6420 test "$with_umich_ldap" = "no" && {
|
259
|
6421 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
|
306
|
6422 echo "configure:6423: checking for ldap_set_option in -lldap10" >&5
|
259
|
6423 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
|
|
6424
|
|
6425 xe_check_libs=" -lldap10 "
|
|
6426 cat > conftest.$ac_ext <<EOF
|
306
|
6427 #line 6428 "configure"
|
259
|
6428 #include "confdefs.h"
|
|
6429 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6430 /* We use char because int might match the return type of a gcc2
|
|
6431 builtin and then its argument prototype would still apply. */
|
|
6432 char ldap_set_option();
|
|
6433
|
|
6434 int main() {
|
|
6435 ldap_set_option()
|
|
6436 ; return 0; }
|
|
6437 EOF
|
306
|
6438 if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
259
|
6439 rm -rf conftest*
|
|
6440 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6441 else
|
|
6442 echo "configure: failed program was:" >&5
|
|
6443 cat conftest.$ac_ext >&5
|
|
6444 rm -rf conftest*
|
|
6445 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6446 fi
|
|
6447 rm -f conftest*
|
|
6448 xe_check_libs=""
|
|
6449
|
|
6450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6451 echo "$ac_t""yes" 1>&6
|
|
6452 with_ns_ldap=yes
|
|
6453 else
|
|
6454 echo "$ac_t""no" 1>&6
|
|
6455 with_ns_ldap=no
|
|
6456 fi
|
|
6457
|
|
6458 }
|
272
|
6459 test -z "$with_ldap" -a \( "$with_umich_ldap" = "yes" -o "$with_ns_ldap" = "yes" \) && with_ldap=yes
|
|
6460 fi
|
|
6461 if test "$with_ldap" = "yes"; then
|
259
|
6462 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6463 Defining HAVE_LDAP
|
|
6464 EOF
|
|
6465 cat >> confdefs.h <<\EOF
|
|
6466 #define HAVE_LDAP 1
|
|
6467 EOF
|
|
6468 }
|
|
6469
|
272
|
6470 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
|
|
6471 echo " xemacs will be linked with \"eldap.o\""
|
|
6472 fi
|
|
6473 if test "$with_umich_ldap" = "yes" ; then
|
|
6474 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6475 Defining HAVE_UMICH_LDAP
|
|
6476 EOF
|
|
6477 cat >> confdefs.h <<\EOF
|
|
6478 #define HAVE_UMICH_LDAP 1
|
|
6479 EOF
|
|
6480 }
|
|
6481
|
|
6482 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
|
|
6483 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
6484 elif test "$with_ldap" = "yes" -a "$with_ns_ldap" = "yes" ; then
|
|
6485 { test "$extra_verbose" = "yes" && cat << \EOF
|
259
|
6486 Defining HAVE_NS_LDAP
|
|
6487 EOF
|
|
6488 cat >> confdefs.h <<\EOF
|
|
6489 #define HAVE_NS_LDAP 1
|
|
6490 EOF
|
|
6491 }
|
|
6492
|
272
|
6493 LIBS="-lldap10 $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap10\" to \$LIBS"; fi
|
|
6494 elif test "$with_ldap" = "yes" ; then
|
|
6495 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
6496 fi
|
259
|
6497 fi
|
|
6498
|
149
|
6499
|
278
|
6500 if test "$window_system" != "none"; then
|
|
6501 echo "checking for graphics libraries" 1>&6
|
306
|
6502 echo "configure:6503: checking for graphics libraries" >&5
|
272
|
6503
|
|
6504 if test -z "$with_xpm"; then
|
193
|
6505 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
306
|
6506 echo "configure:6507: checking for Xpm - no older than 3.4f" >&5
|
272
|
6507 xe_check_libs=-lXpm
|
|
6508 cat > conftest.$ac_ext <<EOF
|
306
|
6509 #line 6510 "configure"
|
149
|
6510 #include "confdefs.h"
|
|
6511 #include <X11/xpm.h>
|
272
|
6512 int main(int c, char **v) {
|
|
6513 return c == 1 ? 0 :
|
|
6514 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
6515 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
6516 EOF
|
306
|
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
6518 then
|
272
|
6519 ./conftest dummy_arg; xpm_status=$?;
|
|
6520 if test "$?" = "0"; then
|
|
6521 with_xpm=yes;
|
|
6522 else
|
|
6523 with_xpm=no;
|
|
6524 if test "$?" = "1"; then
|
|
6525 xpm_problem="Xpm library version and header file version don't match!"
|
|
6526 elif test "$?" = "2"; then
|
|
6527 xpm_problem="Xpm library version is too old!"
|
|
6528 else
|
|
6529 xpm_problem="Internal xpm detection logic error!"
|
|
6530 fi
|
|
6531 echo "
|
278
|
6532 *** WARNING *** $problem
|
|
6533 I'm not touching that with a 10-foot pole!
|
|
6534 If you really want to use the installed version of Xpm, rerun
|
|
6535 configure --with-xpm=yes, but don't blame me if XEmacs crashes!"
|
|
6536 fi
|
159
|
6537 else
|
306
|
6538 conftest_rc="$?"
|
159
|
6539 echo "configure: failed program was:" >&5
|
|
6540 cat conftest.$ac_ext >&5
|
|
6541 rm -fr conftest*
|
|
6542 with_xpm=no
|
|
6543 fi
|
|
6544 rm -fr conftest*
|
272
|
6545 xe_check_libs=
|
|
6546 echo "$ac_t""$with_xpm" 1>&6
|
193
|
6547 fi
|
|
6548 if test "$with_xpm" = "yes"; then
|
|
6549 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
6550 Defining HAVE_XPM
|
|
6551 EOF
|
|
6552 cat >> confdefs.h <<\EOF
|
|
6553 #define HAVE_XPM 1
|
|
6554 EOF
|
|
6555 }
|
|
6556
|
193
|
6557 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
278
|
6558 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
306
|
6559 echo "configure:6560: checking for \"FOR_MSW\" xpm" >&5
|
278
|
6560 xe_check_libs=-lXpm
|
|
6561 cat > conftest.$ac_ext <<EOF
|
306
|
6562 #line 6563 "configure"
|
278
|
6563 #include "confdefs.h"
|
|
6564
|
|
6565 int main() {
|
|
6566 XpmCreatePixmapFromData()
|
|
6567 ; return 0; }
|
|
6568 EOF
|
306
|
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
278
|
6570 rm -rf conftest*
|
|
6571 xpm_for_msw=no
|
|
6572 else
|
|
6573 echo "configure: failed program was:" >&5
|
|
6574 cat conftest.$ac_ext >&5
|
|
6575 rm -rf conftest*
|
|
6576 xpm_for_msw=yes
|
|
6577 fi
|
|
6578 rm -f conftest*
|
|
6579 xe_check_libs=
|
|
6580 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
6581 if test "$xpm_for_msw" = "yes"; then
|
|
6582 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6583 Defining FOR_MSW
|
|
6584 EOF
|
|
6585 cat >> confdefs.h <<\EOF
|
|
6586 #define FOR_MSW 1
|
|
6587 EOF
|
|
6588 }
|
|
6589
|
|
6590 fi
|
|
6591 fi
|
|
6592
|
308
|
6593 if test "$with_gif" != "no"; then
|
|
6594 with_gif="yes"
|
|
6595 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6596 Defining HAVE_GIF
|
|
6597 EOF
|
|
6598 cat >> confdefs.h <<\EOF
|
|
6599 #define HAVE_GIF 1
|
|
6600 EOF
|
|
6601 }
|
|
6602
|
|
6603 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
|
|
6604 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
|
|
6605 fi
|
|
6606 fi
|
|
6607
|
278
|
6608 if test "$with_png $with_tiff" != "no no"; then
|
|
6609
|
|
6610 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
308
|
6611 echo "configure:6612: checking for inflate in -lc" >&5
|
278
|
6612 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
6613
|
|
6614 xe_check_libs=" -lc "
|
|
6615 cat > conftest.$ac_ext <<EOF
|
308
|
6616 #line 6617 "configure"
|
149
|
6617 #include "confdefs.h"
|
|
6618 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6619 /* We use char because int might match the return type of a gcc2
|
|
6620 builtin and then its argument prototype would still apply. */
|
278
|
6621 char inflate();
|
|
6622
|
|
6623 int main() {
|
|
6624 inflate()
|
|
6625 ; return 0; }
|
|
6626 EOF
|
308
|
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
6628 rm -rf conftest*
|
|
6629 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6630 else
|
|
6631 echo "configure: failed program was:" >&5
|
|
6632 cat conftest.$ac_ext >&5
|
|
6633 rm -rf conftest*
|
|
6634 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6635 fi
|
|
6636 rm -f conftest*
|
|
6637 xe_check_libs=""
|
|
6638
|
151
|
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6640 echo "$ac_t""yes" 1>&6
|
278
|
6641 :
|
|
6642 else
|
|
6643 echo "$ac_t""no" 1>&6
|
|
6644
|
|
6645 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
308
|
6646 echo "configure:6647: checking for inflate in -lz" >&5
|
278
|
6647 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
6648
|
|
6649 xe_check_libs=" -lz "
|
|
6650 cat > conftest.$ac_ext <<EOF
|
308
|
6651 #line 6652 "configure"
|
278
|
6652 #include "confdefs.h"
|
|
6653 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6654 /* We use char because int might match the return type of a gcc2
|
|
6655 builtin and then its argument prototype would still apply. */
|
|
6656 char inflate();
|
|
6657
|
|
6658 int main() {
|
|
6659 inflate()
|
|
6660 ; return 0; }
|
|
6661 EOF
|
308
|
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
278
|
6663 rm -rf conftest*
|
|
6664 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6665 else
|
|
6666 echo "configure: failed program was:" >&5
|
|
6667 cat conftest.$ac_ext >&5
|
|
6668 rm -rf conftest*
|
|
6669 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6670 fi
|
|
6671 rm -f conftest*
|
|
6672 xe_check_libs=""
|
|
6673
|
|
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6675 echo "$ac_t""yes" 1>&6
|
|
6676 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
6677 else
|
|
6678 echo "$ac_t""no" 1>&6
|
|
6679
|
|
6680 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
308
|
6681 echo "configure:6682: checking for inflate in -lgz" >&5
|
278
|
6682 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
6683
|
|
6684 xe_check_libs=" -lgz "
|
|
6685 cat > conftest.$ac_ext <<EOF
|
308
|
6686 #line 6687 "configure"
|
278
|
6687 #include "confdefs.h"
|
|
6688 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6689 /* We use char because int might match the return type of a gcc2
|
|
6690 builtin and then its argument prototype would still apply. */
|
|
6691 char inflate();
|
|
6692
|
|
6693 int main() {
|
|
6694 inflate()
|
|
6695 ; return 0; }
|
|
6696 EOF
|
308
|
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
278
|
6698 rm -rf conftest*
|
|
6699 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6700 else
|
|
6701 echo "configure: failed program was:" >&5
|
|
6702 cat conftest.$ac_ext >&5
|
|
6703 rm -rf conftest*
|
|
6704 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6705 fi
|
|
6706 rm -f conftest*
|
|
6707 xe_check_libs=""
|
|
6708
|
|
6709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6710 echo "$ac_t""yes" 1>&6
|
|
6711 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
6712 else
|
|
6713 echo "$ac_t""no" 1>&6
|
|
6714 fi
|
|
6715
|
|
6716
|
|
6717 fi
|
|
6718
|
|
6719
|
|
6720 fi
|
|
6721
|
|
6722
|
193
|
6723 fi
|
|
6724
|
251
|
6725 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
6726 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
308
|
6727 echo "configure:6728: checking for jpeglib.h" >&5
|
|
6728
|
|
6729 cat > conftest.$ac_ext <<EOF
|
|
6730 #line 6731 "configure"
|
251
|
6731 #include "confdefs.h"
|
|
6732 #include <jpeglib.h>
|
0
|
6733 EOF
|
149
|
6734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
6735 { (eval echo configure:6736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
251
|
6736 ac_err=`grep -v '^ *+' conftest.out`
|
|
6737 if test -z "$ac_err"; then
|
|
6738 rm -rf conftest*
|
|
6739 eval "ac_cv_header_$ac_safe=yes"
|
|
6740 else
|
|
6741 echo "$ac_err" >&5
|
|
6742 echo "configure: failed program was:" >&5
|
|
6743 cat conftest.$ac_ext >&5
|
|
6744 rm -rf conftest*
|
|
6745 eval "ac_cv_header_$ac_safe=no"
|
|
6746 fi
|
|
6747 rm -f conftest*
|
|
6748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6749 echo "$ac_t""yes" 1>&6
|
|
6750 :
|
|
6751 else
|
|
6752 echo "$ac_t""no" 1>&6
|
|
6753 with_jpeg=no
|
|
6754 fi
|
|
6755 }
|
|
6756 test -z "$with_jpeg" && {
|
|
6757 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
308
|
6758 echo "configure:6759: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
6759 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
6760
|
|
6761 xe_check_libs=" -ljpeg "
|
|
6762 cat > conftest.$ac_ext <<EOF
|
308
|
6763 #line 6764 "configure"
|
251
|
6764 #include "confdefs.h"
|
|
6765 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6766 /* We use char because int might match the return type of a gcc2
|
|
6767 builtin and then its argument prototype would still apply. */
|
|
6768 char jpeg_destroy_decompress();
|
|
6769
|
|
6770 int main() {
|
|
6771 jpeg_destroy_decompress()
|
|
6772 ; return 0; }
|
|
6773 EOF
|
308
|
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
251
|
6775 rm -rf conftest*
|
|
6776 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6777 else
|
|
6778 echo "configure: failed program was:" >&5
|
|
6779 cat conftest.$ac_ext >&5
|
|
6780 rm -rf conftest*
|
|
6781 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6782 fi
|
|
6783 rm -f conftest*
|
|
6784 xe_check_libs=""
|
|
6785
|
|
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6787 echo "$ac_t""yes" 1>&6
|
|
6788 :
|
|
6789 else
|
|
6790 echo "$ac_t""no" 1>&6
|
|
6791 with_jpeg=no
|
|
6792 fi
|
|
6793
|
|
6794 }
|
|
6795 test -z "$with_jpeg" && with_jpeg=yes
|
|
6796 if test "$with_jpeg" = "yes"; then
|
|
6797 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6798 Defining HAVE_JPEG
|
|
6799 EOF
|
|
6800 cat >> confdefs.h <<\EOF
|
|
6801 #define HAVE_JPEG 1
|
|
6802 EOF
|
|
6803 }
|
|
6804
|
|
6805 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
6806 fi
|
|
6807
|
272
|
6808 if test -z "$with_png"; then
|
308
|
6809 echo $ac_n "checking for png.h - no older than 1.02""... $ac_c" 1>&6
|
|
6810 echo "configure:6811: checking for png.h - no older than 1.02" >&5
|
272
|
6811 cat > conftest.$ac_ext <<EOF
|
308
|
6812 #line 6813 "configure"
|
251
|
6813 #include "confdefs.h"
|
|
6814 #include <png.h>
|
308
|
6815 #if PNG_LIBPNG_VER >= 10002
|
272
|
6816 yes
|
|
6817 #endif
|
|
6818
|
|
6819 EOF
|
|
6820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
6821 egrep "yes" >/dev/null 2>&1; then
|
|
6822 rm -rf conftest*
|
|
6823 echo "$ac_t""yes" 1>&6
|
|
6824 else
|
|
6825 rm -rf conftest*
|
274
|
6826 echo "$ac_t""no" 1>&6; with_png=no
|
272
|
6827 fi
|
|
6828 rm -f conftest*
|
|
6829
|
|
6830 fi
|
251
|
6831 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
308
|
6832 echo "configure:6833: checking for pow" >&5
|
|
6833
|
|
6834 cat > conftest.$ac_ext <<EOF
|
|
6835 #line 6836 "configure"
|
251
|
6836 #include "confdefs.h"
|
|
6837 /* System header to define __stub macros and hopefully few prototypes,
|
|
6838 which can conflict with char pow(); below. */
|
|
6839 #include <assert.h>
|
243
|
6840 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6841 /* We use char because int might match the return type of a gcc2
|
|
6842 builtin and then its argument prototype would still apply. */
|
251
|
6843 char pow();
|
243
|
6844
|
|
6845 int main() {
|
251
|
6846
|
|
6847 /* The GNU C library defines this for functions which it implements
|
|
6848 to always fail with ENOSYS. Some functions are actually named
|
|
6849 something starting with __ and the normal name is an alias. */
|
|
6850 #if defined (__stub_pow) || defined (__stub___pow)
|
|
6851 choke me
|
|
6852 #else
|
|
6853 pow();
|
|
6854 #endif
|
|
6855
|
243
|
6856 ; return 0; }
|
|
6857 EOF
|
308
|
6858 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
251
|
6859 rm -rf conftest*
|
|
6860 eval "ac_cv_func_pow=yes"
|
|
6861 else
|
|
6862 echo "configure: failed program was:" >&5
|
|
6863 cat conftest.$ac_ext >&5
|
|
6864 rm -rf conftest*
|
|
6865 eval "ac_cv_func_pow=no"
|
|
6866 fi
|
|
6867 rm -f conftest*
|
|
6868
|
|
6869 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
6870 echo "$ac_t""yes" 1>&6
|
|
6871 :
|
|
6872 else
|
|
6873 echo "$ac_t""no" 1>&6
|
|
6874 with_png=no
|
|
6875 fi
|
|
6876 }
|
272
|
6877 test -z "$with_png" && {
|
|
6878 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
308
|
6879 echo "configure:6880: checking for png_read_image in -lpng" >&5
|
272
|
6880 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
6881
|
|
6882 xe_check_libs=" -lpng "
|
|
6883 cat > conftest.$ac_ext <<EOF
|
308
|
6884 #line 6885 "configure"
|
243
|
6885 #include "confdefs.h"
|
|
6886 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6887 /* We use char because int might match the return type of a gcc2
|
|
6888 builtin and then its argument prototype would still apply. */
|
272
|
6889 char png_read_image();
|
|
6890
|
|
6891 int main() {
|
|
6892 png_read_image()
|
|
6893 ; return 0; }
|
|
6894 EOF
|
308
|
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
217
|
6896 rm -rf conftest*
|
|
6897 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6898 else
|
|
6899 echo "configure: failed program was:" >&5
|
|
6900 cat conftest.$ac_ext >&5
|
|
6901 rm -rf conftest*
|
|
6902 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6903 fi
|
|
6904 rm -f conftest*
|
|
6905 xe_check_libs=""
|
|
6906
|
|
6907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6908 echo "$ac_t""yes" 1>&6
|
272
|
6909 :
|
|
6910 else
|
|
6911 echo "$ac_t""no" 1>&6
|
|
6912 with_png=no
|
|
6913 fi
|
|
6914
|
|
6915 }
|
|
6916 test -z "$with_png" && with_png=yes
|
251
|
6917 if test "$with_png" = "yes"; then
|
|
6918 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6919 Defining HAVE_PNG
|
|
6920 EOF
|
|
6921 cat >> confdefs.h <<\EOF
|
|
6922 #define HAVE_PNG 1
|
|
6923 EOF
|
|
6924 }
|
|
6925
|
272
|
6926 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
6927 fi
|
|
6928
|
272
|
6929 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
6930 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
308
|
6931 echo "configure:6932: checking for tiffio.h" >&5
|
|
6932
|
|
6933 cat > conftest.$ac_ext <<EOF
|
|
6934 #line 6935 "configure"
|
272
|
6935 #include "confdefs.h"
|
|
6936 #include <tiffio.h>
|
|
6937 EOF
|
|
6938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
6939 { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
272
|
6940 ac_err=`grep -v '^ *+' conftest.out`
|
|
6941 if test -z "$ac_err"; then
|
|
6942 rm -rf conftest*
|
|
6943 eval "ac_cv_header_$ac_safe=yes"
|
|
6944 else
|
|
6945 echo "$ac_err" >&5
|
|
6946 echo "configure: failed program was:" >&5
|
|
6947 cat conftest.$ac_ext >&5
|
|
6948 rm -rf conftest*
|
|
6949 eval "ac_cv_header_$ac_safe=no"
|
|
6950 fi
|
|
6951 rm -f conftest*
|
|
6952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6953 echo "$ac_t""yes" 1>&6
|
|
6954 :
|
|
6955 else
|
|
6956 echo "$ac_t""no" 1>&6
|
|
6957 with_tiff=no
|
|
6958 fi
|
|
6959 }
|
|
6960 test -z "$with_tiff" && {
|
286
|
6961 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
308
|
6962 echo "configure:6963: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
6963 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
6964
|
272
|
6965 xe_check_libs=" -ltiff "
|
|
6966 cat > conftest.$ac_ext <<EOF
|
308
|
6967 #line 6968 "configure"
|
217
|
6968 #include "confdefs.h"
|
|
6969 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6970 /* We use char because int might match the return type of a gcc2
|
|
6971 builtin and then its argument prototype would still apply. */
|
286
|
6972 char TIFFClientOpen();
|
|
6973
|
|
6974 int main() {
|
|
6975 TIFFClientOpen()
|
|
6976 ; return 0; }
|
|
6977 EOF
|
308
|
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
217
|
6979 rm -rf conftest*
|
|
6980 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6981 else
|
|
6982 echo "configure: failed program was:" >&5
|
|
6983 cat conftest.$ac_ext >&5
|
|
6984 rm -rf conftest*
|
|
6985 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6986 fi
|
|
6987 rm -f conftest*
|
|
6988 xe_check_libs=""
|
|
6989
|
|
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6991 echo "$ac_t""yes" 1>&6
|
272
|
6992 :
|
|
6993 else
|
|
6994 echo "$ac_t""no" 1>&6
|
|
6995 with_tiff=no
|
|
6996 fi
|
|
6997
|
|
6998 }
|
|
6999 test -z "$with_tiff" && with_tiff=yes
|
251
|
7000 if test "$with_tiff" = "yes"; then
|
|
7001 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7002 Defining HAVE_TIFF
|
|
7003 EOF
|
|
7004 cat >> confdefs.h <<\EOF
|
|
7005 #define HAVE_TIFF 1
|
|
7006 EOF
|
|
7007 }
|
|
7008
|
272
|
7009 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
7010 fi
|
278
|
7011 fi
|
|
7012
|
|
7013
|
|
7014 if test "$with_x11" = "yes"; then
|
|
7015
|
|
7016 echo "checking for X11 graphics libraries" 1>&6
|
308
|
7017 echo "configure:7018: checking for X11 graphics libraries" >&5
|
278
|
7018
|
|
7019 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
7020 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
308
|
7021 echo "configure:7022: checking for compface.h" >&5
|
|
7022
|
|
7023 cat > conftest.$ac_ext <<EOF
|
|
7024 #line 7025 "configure"
|
278
|
7025 #include "confdefs.h"
|
|
7026 #include <compface.h>
|
|
7027 EOF
|
|
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
278
|
7030 ac_err=`grep -v '^ *+' conftest.out`
|
|
7031 if test -z "$ac_err"; then
|
|
7032 rm -rf conftest*
|
|
7033 eval "ac_cv_header_$ac_safe=yes"
|
|
7034 else
|
|
7035 echo "$ac_err" >&5
|
|
7036 echo "configure: failed program was:" >&5
|
|
7037 cat conftest.$ac_ext >&5
|
|
7038 rm -rf conftest*
|
|
7039 eval "ac_cv_header_$ac_safe=no"
|
|
7040 fi
|
|
7041 rm -f conftest*
|
|
7042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7043 echo "$ac_t""yes" 1>&6
|
|
7044 :
|
|
7045 else
|
|
7046 echo "$ac_t""no" 1>&6
|
|
7047 with_xface=no
|
|
7048 fi
|
|
7049 }
|
|
7050 test -z "$with_xface" && {
|
|
7051 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
308
|
7052 echo "configure:7053: checking for UnGenFace in -lcompface" >&5
|
278
|
7053 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
7054
|
|
7055 xe_check_libs=" -lcompface "
|
|
7056 cat > conftest.$ac_ext <<EOF
|
308
|
7057 #line 7058 "configure"
|
278
|
7058 #include "confdefs.h"
|
|
7059 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7060 /* We use char because int might match the return type of a gcc2
|
|
7061 builtin and then its argument prototype would still apply. */
|
|
7062 char UnGenFace();
|
|
7063
|
|
7064 int main() {
|
|
7065 UnGenFace()
|
|
7066 ; return 0; }
|
|
7067 EOF
|
308
|
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
278
|
7069 rm -rf conftest*
|
|
7070 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7071 else
|
|
7072 echo "configure: failed program was:" >&5
|
|
7073 cat conftest.$ac_ext >&5
|
|
7074 rm -rf conftest*
|
|
7075 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7076 fi
|
|
7077 rm -f conftest*
|
|
7078 xe_check_libs=""
|
|
7079
|
|
7080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7081 echo "$ac_t""yes" 1>&6
|
|
7082 :
|
|
7083 else
|
|
7084 echo "$ac_t""no" 1>&6
|
|
7085 with_xface=no
|
|
7086 fi
|
|
7087
|
|
7088 }
|
|
7089 test -z "$with_xface" && with_xface=yes
|
|
7090 if test "$with_xface" = "yes"; then
|
|
7091 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7092 Defining HAVE_XFACE
|
|
7093 EOF
|
|
7094 cat >> confdefs.h <<\EOF
|
|
7095 #define HAVE_XFACE 1
|
|
7096 EOF
|
|
7097 }
|
|
7098
|
|
7099 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
7100 fi
|
272
|
7101
|
193
|
7102
|
|
7103 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
|
308
|
7104 echo "configure:7105: checking for XawScrollbarSetThumb in -lXaw" >&5
|
193
|
7105 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
7106
|
|
7107 xe_check_libs=" -lXaw "
|
|
7108 cat > conftest.$ac_ext <<EOF
|
308
|
7109 #line 7110 "configure"
|
193
|
7110 #include "confdefs.h"
|
|
7111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7112 /* We use char because int might match the return type of a gcc2
|
|
7113 builtin and then its argument prototype would still apply. */
|
|
7114 char XawScrollbarSetThumb();
|
|
7115
|
|
7116 int main() {
|
|
7117 XawScrollbarSetThumb()
|
|
7118 ; return 0; }
|
|
7119 EOF
|
308
|
7120 if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
193
|
7121 rm -rf conftest*
|
|
7122 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7123 else
|
|
7124 echo "configure: failed program was:" >&5
|
|
7125 cat conftest.$ac_ext >&5
|
|
7126 rm -rf conftest*
|
|
7127 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7128 fi
|
|
7129 rm -f conftest*
|
|
7130 xe_check_libs=""
|
|
7131
|
|
7132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7133 echo "$ac_t""yes" 1>&6
|
|
7134 have_xaw=yes
|
|
7135 else
|
|
7136 echo "$ac_t""no" 1>&6
|
|
7137 have_xaw=no
|
|
7138 fi
|
|
7139
|
|
7140
|
219
|
7141
|
193
|
7142 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
7143 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
308
|
7144 echo "configure:7145: checking for Xm/Xm.h" >&5
|
|
7145
|
|
7146 cat > conftest.$ac_ext <<EOF
|
|
7147 #line 7148 "configure"
|
151
|
7148 #include "confdefs.h"
|
|
7149 #include <Xm/Xm.h>
|
|
7150 EOF
|
|
7151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
7152 { (eval echo configure:7153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
151
|
7153 ac_err=`grep -v '^ *+' conftest.out`
|
|
7154 if test -z "$ac_err"; then
|
|
7155 rm -rf conftest*
|
|
7156 eval "ac_cv_header_$ac_safe=yes"
|
|
7157 else
|
|
7158 echo "$ac_err" >&5
|
|
7159 echo "configure: failed program was:" >&5
|
|
7160 cat conftest.$ac_ext >&5
|
|
7161 rm -rf conftest*
|
|
7162 eval "ac_cv_header_$ac_safe=no"
|
|
7163 fi
|
|
7164 rm -f conftest*
|
|
7165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7166 echo "$ac_t""yes" 1>&6
|
|
7167
|
|
7168 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
308
|
7169 echo "configure:7170: checking for XmStringFree in -lXm" >&5
|
151
|
7170 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
7171
|
|
7172 xe_check_libs=" -lXm "
|
|
7173 cat > conftest.$ac_ext <<EOF
|
308
|
7174 #line 7175 "configure"
|
151
|
7175 #include "confdefs.h"
|
|
7176 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7177 /* We use char because int might match the return type of a gcc2
|
|
7178 builtin and then its argument prototype would still apply. */
|
|
7179 char XmStringFree();
|
|
7180
|
|
7181 int main() {
|
|
7182 XmStringFree()
|
|
7183 ; return 0; }
|
|
7184 EOF
|
308
|
7185 if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
7186 rm -rf conftest*
|
|
7187 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7188 else
|
|
7189 echo "configure: failed program was:" >&5
|
|
7190 cat conftest.$ac_ext >&5
|
|
7191 rm -rf conftest*
|
|
7192 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7193 fi
|
|
7194 rm -f conftest*
|
|
7195 xe_check_libs=""
|
|
7196
|
|
7197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7198 echo "$ac_t""yes" 1>&6
|
|
7199 have_motif=yes
|
|
7200 else
|
|
7201 echo "$ac_t""no" 1>&6
|
|
7202 have_motif=no
|
|
7203 fi
|
|
7204
|
|
7205
|
|
7206 else
|
|
7207 echo "$ac_t""no" 1>&6
|
|
7208 have_motif=no
|
|
7209 fi
|
|
7210
|
149
|
7211
|
272
|
7212 if test "$have_motif" = "yes"; then
|
|
7213 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
308
|
7214 echo "configure:7215: checking for Lesstif" >&5
|
272
|
7215 cat > conftest.$ac_ext <<EOF
|
308
|
7216 #line 7217 "configure"
|
272
|
7217 #include "confdefs.h"
|
|
7218 #include <Xm/Xm.h>
|
|
7219 #ifdef LESSTIF_VERSION
|
|
7220 yes
|
|
7221 #endif
|
|
7222
|
|
7223 EOF
|
|
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
7225 egrep "yes" >/dev/null 2>&1; then
|
|
7226 rm -rf conftest*
|
|
7227 have_lesstif=yes
|
|
7228 else
|
|
7229 rm -rf conftest*
|
|
7230 have_lesstif=no
|
|
7231 fi
|
|
7232 rm -f conftest*
|
|
7233
|
|
7234 echo "$ac_t""$have_lesstif" 1>&6
|
|
7235 fi
|
|
7236
|
193
|
7237 fi
|
149
|
7238
|
243
|
7239 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
|
149
|
7240 with_menubars="lucid" ;;
|
|
7241 esac
|
243
|
7242 case "$with_dialogs" in "" | "yes" | "lucid" )
|
149
|
7243 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
7244 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
|
7245 else with_dialogs=no
|
|
7246 fi ;;
|
|
7247 esac
|
|
7248 case "$with_scrollbars" in "" | "yes" )
|
|
7249 with_scrollbars="lucid" ;;
|
|
7250 esac
|
|
7251
|
|
7252 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars"
|
|
7253
|
|
7254 case "$all_widgets" in *athena* )
|
|
7255 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7256 Defining LWLIB_USES_ATHENA
|
|
7257 EOF
|
|
7258 cat >> confdefs.h <<\EOF
|
|
7259 #define LWLIB_USES_ATHENA 1
|
|
7260 EOF
|
|
7261 }
|
|
7262
|
157
|
7263 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7264 Defining NEED_ATHENA
|
|
7265 EOF
|
|
7266 cat >> confdefs.h <<\EOF
|
|
7267 #define NEED_ATHENA 1
|
|
7268 EOF
|
|
7269 }
|
|
7270
|
|
7271 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
151
|
7272 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;;
|
149
|
7273 esac
|
|
7274
|
|
7275 case "$all_widgets" in *motif* )
|
|
7276 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7277 Defining LWLIB_USES_MOTIF
|
|
7278 EOF
|
|
7279 cat >> confdefs.h <<\EOF
|
|
7280 #define LWLIB_USES_MOTIF 1
|
|
7281 EOF
|
|
7282 }
|
|
7283
|
157
|
7284 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7285 Defining NEED_MOTIF
|
|
7286 EOF
|
|
7287 cat >> confdefs.h <<\EOF
|
|
7288 #define NEED_MOTIF 1
|
|
7289 EOF
|
|
7290 }
|
|
7291
|
|
7292 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
7293 need_motif=yes ;;
|
70
|
7294 esac
|
|
7295
|
157
|
7296 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
|
7297 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
|
7298 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
|
7299 case "$all_widgets" in *lucid* )
|
|
7300 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7301 Defining NEED_LUCID
|
|
7302 EOF
|
|
7303 cat >> confdefs.h <<\EOF
|
|
7304 #define NEED_LUCID 1
|
|
7305 EOF
|
|
7306 }
|
|
7307
|
|
7308 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
7309 esac
|
|
7310
|
|
7311
|
|
7312
|
149
|
7313 case "$with_scrollbars" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7314 Defining LWLIB_SCROLLBARS_ATHENA
|
|
7315 EOF
|
|
7316 cat >> confdefs.h <<\EOF
|
|
7317 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
7318 EOF
|
|
7319 }
|
|
7320 ;; esac
|
|
7321 case "$with_dialogs" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7322 Defining LWLIB_DIALOGS_ATHENA
|
|
7323 EOF
|
|
7324 cat >> confdefs.h <<\EOF
|
|
7325 #define LWLIB_DIALOGS_ATHENA 1
|
|
7326 EOF
|
|
7327 }
|
|
7328 ;; esac
|
|
7329 test "$with_scrollbars" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7330 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
7331 EOF
|
|
7332 cat >> confdefs.h <<\EOF
|
|
7333 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
7334 EOF
|
|
7335 }
|
|
7336
|
|
7337 test "$with_dialogs" = "athena3d" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7338 Defining LWLIB_DIALOGS_ATHENA3D
|
|
7339 EOF
|
|
7340 cat >> confdefs.h <<\EOF
|
|
7341 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
7342 EOF
|
|
7343 }
|
|
7344
|
|
7345
|
|
7346 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7347 Defining HAVE_MENUBARS
|
|
7348 EOF
|
|
7349 cat >> confdefs.h <<\EOF
|
|
7350 #define HAVE_MENUBARS 1
|
|
7351 EOF
|
|
7352 }
|
|
7353
|
|
7354 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7355 Defining HAVE_SCROLLBARS
|
|
7356 EOF
|
|
7357 cat >> confdefs.h <<\EOF
|
|
7358 #define HAVE_SCROLLBARS 1
|
|
7359 EOF
|
|
7360 }
|
|
7361
|
|
7362 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7363 Defining HAVE_DIALOGS
|
|
7364 EOF
|
|
7365 cat >> confdefs.h <<\EOF
|
|
7366 #define HAVE_DIALOGS 1
|
|
7367 EOF
|
|
7368 }
|
|
7369
|
|
7370 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7371 Defining HAVE_TOOLBARS
|
|
7372 EOF
|
|
7373 cat >> confdefs.h <<\EOF
|
|
7374 #define HAVE_TOOLBARS 1
|
|
7375 EOF
|
|
7376 }
|
|
7377
|
|
7378
|
|
7379 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7380 Defining LWLIB_MENUBARS_LUCID
|
|
7381 EOF
|
|
7382 cat >> confdefs.h <<\EOF
|
|
7383 #define LWLIB_MENUBARS_LUCID 1
|
|
7384 EOF
|
|
7385 }
|
|
7386
|
|
7387 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7388 Defining LWLIB_SCROLLBARS_LUCID
|
|
7389 EOF
|
|
7390 cat >> confdefs.h <<\EOF
|
|
7391 #define LWLIB_SCROLLBARS_LUCID 1
|
|
7392 EOF
|
|
7393 }
|
|
7394
|
|
7395
|
|
7396 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7397 Defining LWLIB_MENUBARS_MOTIF
|
|
7398 EOF
|
|
7399 cat >> confdefs.h <<\EOF
|
|
7400 #define LWLIB_MENUBARS_MOTIF 1
|
|
7401 EOF
|
|
7402 }
|
|
7403
|
|
7404 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7405 Defining LWLIB_SCROLLBARS_MOTIF
|
|
7406 EOF
|
|
7407 cat >> confdefs.h <<\EOF
|
|
7408 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
7409 EOF
|
|
7410 }
|
|
7411
|
|
7412 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7413 Defining LWLIB_DIALOGS_MOTIF
|
|
7414 EOF
|
|
7415 cat >> confdefs.h <<\EOF
|
|
7416 #define LWLIB_DIALOGS_MOTIF 1
|
|
7417 EOF
|
|
7418 }
|
|
7419
|
|
7420
|
151
|
7421 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
|
|
7422 echo " xemacs will be linked with \"menubar.o\""
|
|
7423 fi
|
|
7424 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
|
|
7425 echo " xemacs will be linked with \"scrollbar.o\""
|
|
7426 fi
|
|
7427 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
|
|
7428 echo " xemacs will be linked with \"dialog.o\""
|
|
7429 fi
|
|
7430 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
|
|
7431 echo " xemacs will be linked with \"toolbar.o\""
|
|
7432 fi
|
|
7433 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then
|
|
7434 echo " xemacs will be linked with \"gui.o\""
|
|
7435 fi
|
149
|
7436
|
|
7437 if test "$with_x11" = "yes"; then
|
151
|
7438 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7439 echo " xemacs will be linked with \"menubar-x.o\""
|
|
7440 fi
|
|
7441 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7442 echo " xemacs will be linked with \"scrollbar-x.o\""
|
|
7443 fi
|
|
7444 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7445 echo " xemacs will be linked with \"dialog-x.o\""
|
|
7446 fi
|
|
7447 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7448 echo " xemacs will be linked with \"toolbar-x.o\""
|
|
7449 fi
|
|
7450 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7451 echo " xemacs will be linked with \"gui-x.o\""
|
|
7452 fi
|
211
|
7453 else
|
|
7454 if test \( "$with_sound" = "nas" \) -o \( "$with_sound" = "both" \); then
|
|
7455 echo "Attempt to Build NAS sound without X"
|
|
7456 echo "Please remove NAS configuration or build with X"
|
|
7457 exit 1
|
|
7458 fi
|
149
|
7459 fi
|
|
7460
|
272
|
7461 test "$use_minimal_tagbits" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
257
|
7462 Defining USE_MINIMAL_TAGBITS
|
|
7463 EOF
|
|
7464 cat >> confdefs.h <<\EOF
|
|
7465 #define USE_MINIMAL_TAGBITS 1
|
|
7466 EOF
|
|
7467 }
|
|
7468
|
272
|
7469 test "$use_indexed_lrecord_implementation" = "yes" && \
|
|
7470 { test "$extra_verbose" = "yes" && cat << \EOF
|
257
|
7471 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
|
|
7472 EOF
|
|
7473 cat >> confdefs.h <<\EOF
|
|
7474 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
|
|
7475 EOF
|
|
7476 }
|
|
7477
|
272
|
7478
|
|
7479
|
|
7480 test -z "$with_mule" && with_mule=no
|
259
|
7481 test -z "$with_file_coding" && with_file_coding=no
|
|
7482
|
|
7483
|
|
7484 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
|
251
|
7485 { test "$extra_verbose" = "yes" && cat << \EOF
|
259
|
7486 Defining FILE_CODING
|
|
7487 EOF
|
|
7488 cat >> confdefs.h <<\EOF
|
|
7489 #define FILE_CODING 1
|
|
7490 EOF
|
|
7491 }
|
|
7492
|
|
7493 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
7494 echo " xemacs will be linked with \"file-coding.o\""
|
251
|
7495 fi
|
|
7496 fi
|
207
|
7497
|
149
|
7498 if test "$with_mule" = "yes" ; then
|
151
|
7499 echo "checking for Mule-related features" 1>&6
|
308
|
7500 echo "configure:7501: checking for Mule-related features" >&5
|
149
|
7501 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7502 Defining MULE
|
|
7503 EOF
|
|
7504 cat >> confdefs.h <<\EOF
|
|
7505 #define MULE 1
|
|
7506 EOF
|
|
7507 }
|
|
7508
|
251
|
7509 { test "$extra_verbose" = "yes" && cat << \EOF
|
259
|
7510 Defining FILE_CODING
|
|
7511 EOF
|
|
7512 cat >> confdefs.h <<\EOF
|
|
7513 #define FILE_CODING 1
|
|
7514 EOF
|
|
7515 }
|
|
7516
|
|
7517 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
7518 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o file-coding.o\""
|
151
|
7519 fi
|
149
|
7520
|
155
|
7521 for ac_hdr in libintl.h
|
|
7522 do
|
|
7523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
7524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
308
|
7525 echo "configure:7526: checking for $ac_hdr" >&5
|
|
7526
|
|
7527 cat > conftest.$ac_ext <<EOF
|
|
7528 #line 7529 "configure"
|
155
|
7529 #include "confdefs.h"
|
|
7530 #include <$ac_hdr>
|
|
7531 EOF
|
|
7532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
7533 { (eval echo configure:7534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
155
|
7534 ac_err=`grep -v '^ *+' conftest.out`
|
|
7535 if test -z "$ac_err"; then
|
|
7536 rm -rf conftest*
|
|
7537 eval "ac_cv_header_$ac_safe=yes"
|
|
7538 else
|
|
7539 echo "$ac_err" >&5
|
|
7540 echo "configure: failed program was:" >&5
|
|
7541 cat conftest.$ac_ext >&5
|
|
7542 rm -rf conftest*
|
|
7543 eval "ac_cv_header_$ac_safe=no"
|
|
7544 fi
|
|
7545 rm -f conftest*
|
|
7546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7547 echo "$ac_t""yes" 1>&6
|
|
7548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
7549 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7550 Defining $ac_tr_hdr
|
|
7551 EOF
|
|
7552 cat >> confdefs.h <<EOF
|
|
7553 #define $ac_tr_hdr 1
|
|
7554 EOF
|
|
7555 }
|
|
7556
|
|
7557 else
|
|
7558 echo "$ac_t""no" 1>&6
|
|
7559 fi
|
|
7560 done
|
|
7561
|
|
7562
|
149
|
7563 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
308
|
7564 echo "configure:7565: checking for strerror in -lintl" >&5
|
149
|
7565 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
7566
|
|
7567 xe_check_libs=" -lintl "
|
|
7568 cat > conftest.$ac_ext <<EOF
|
308
|
7569 #line 7570 "configure"
|
149
|
7570 #include "confdefs.h"
|
|
7571 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7572 /* We use char because int might match the return type of a gcc2
|
|
7573 builtin and then its argument prototype would still apply. */
|
|
7574 char strerror();
|
|
7575
|
|
7576 int main() {
|
|
7577 strerror()
|
|
7578 ; return 0; }
|
|
7579 EOF
|
308
|
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
7581 rm -rf conftest*
|
|
7582 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7583 else
|
|
7584 echo "configure: failed program was:" >&5
|
|
7585 cat conftest.$ac_ext >&5
|
|
7586 rm -rf conftest*
|
|
7587 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7588 fi
|
|
7589 rm -f conftest*
|
|
7590 xe_check_libs=""
|
|
7591
|
151
|
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7593 echo "$ac_t""yes" 1>&6
|
|
7594 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
7595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
7596 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7597 Defining $ac_tr_lib
|
|
7598 EOF
|
|
7599 cat >> confdefs.h <<EOF
|
|
7600 #define $ac_tr_lib 1
|
|
7601 EOF
|
|
7602 }
|
|
7603
|
151
|
7604 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
7605
|
|
7606 else
|
|
7607 echo "$ac_t""no" 1>&6
|
|
7608 fi
|
|
7609
|
|
7610
|
|
7611
|
|
7612 echo "checking for Mule input methods" 1>&6
|
308
|
7613 echo "configure:7614: checking for Mule input methods" >&5
|
272
|
7614 case "$with_xim" in "" | "yes" )
|
149
|
7615 echo "checking for XIM" 1>&6
|
308
|
7616 echo "configure:7617: checking for XIM" >&5
|
272
|
7617 if test "$have_lesstif" = "yes"; then with_xim=xlib
|
|
7618 else
|
149
|
7619 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
308
|
7620 echo "configure:7621: checking for XmImMbLookupString in -lXm" >&5
|
149
|
7621 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
7622
|
|
7623 xe_check_libs=" -lXm "
|
|
7624 cat > conftest.$ac_ext <<EOF
|
308
|
7625 #line 7626 "configure"
|
149
|
7626 #include "confdefs.h"
|
|
7627 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7628 /* We use char because int might match the return type of a gcc2
|
|
7629 builtin and then its argument prototype would still apply. */
|
|
7630 char XmImMbLookupString();
|
|
7631
|
|
7632 int main() {
|
|
7633 XmImMbLookupString()
|
|
7634 ; return 0; }
|
|
7635 EOF
|
308
|
7636 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
7637 rm -rf conftest*
|
|
7638 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7639 else
|
|
7640 echo "configure: failed program was:" >&5
|
|
7641 cat conftest.$ac_ext >&5
|
|
7642 rm -rf conftest*
|
|
7643 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7644 fi
|
|
7645 rm -f conftest*
|
|
7646 xe_check_libs=""
|
|
7647
|
151
|
7648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7649 echo "$ac_t""yes" 1>&6
|
|
7650 with_xim=motif
|
|
7651 else
|
|
7652 echo "$ac_t""no" 1>&6
|
|
7653 with_xim=xlib
|
|
7654 fi
|
|
7655
|
|
7656
|
272
|
7657 fi
|
149
|
7658 esac
|
272
|
7659 if test "$with_xim" != "no"; then
|
149
|
7660 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7661 Defining HAVE_XIM
|
|
7662 EOF
|
|
7663 cat >> confdefs.h <<\EOF
|
|
7664 #define HAVE_XIM 1
|
|
7665 EOF
|
|
7666 }
|
|
7667
|
|
7668 if test "$with_xim" = "xlib"; then
|
|
7669 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7670 Defining XIM_XLIB
|
|
7671 EOF
|
|
7672 cat >> confdefs.h <<\EOF
|
|
7673 #define XIM_XLIB 1
|
|
7674 EOF
|
|
7675 }
|
|
7676
|
151
|
7677 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
7678 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
7679 fi
|
|
7680 fi
|
149
|
7681 if test "$with_xim" = "motif"; then
|
|
7682 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7683 Defining XIM_MOTIF
|
|
7684 EOF
|
|
7685 cat >> confdefs.h <<\EOF
|
|
7686 #define XIM_MOTIF 1
|
|
7687 EOF
|
|
7688 }
|
|
7689
|
|
7690 need_motif=yes
|
151
|
7691 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
7692 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
7693 fi
|
149
|
7694 fi
|
215
|
7695 if test "$with_xim" = "motif"; then
|
177
|
7696 with_xfs=no
|
|
7697 fi
|
215
|
7698 fi
|
|
7699
|
|
7700 if test "$with_xfs" = "yes" ; then
|
|
7701 echo "checking for XFontSet" 1>&6
|
308
|
7702 echo "configure:7703: checking for XFontSet" >&5
|
215
|
7703
|
177
|
7704 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
308
|
7705 echo "configure:7706: checking for XmbDrawString in -lX11" >&5
|
177
|
7706 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
7707
|
|
7708 xe_check_libs=" -lX11 "
|
|
7709 cat > conftest.$ac_ext <<EOF
|
308
|
7710 #line 7711 "configure"
|
177
|
7711 #include "confdefs.h"
|
|
7712 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7713 /* We use char because int might match the return type of a gcc2
|
|
7714 builtin and then its argument prototype would still apply. */
|
|
7715 char XmbDrawString();
|
|
7716
|
|
7717 int main() {
|
|
7718 XmbDrawString()
|
|
7719 ; return 0; }
|
|
7720 EOF
|
308
|
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
177
|
7722 rm -rf conftest*
|
|
7723 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7724 else
|
|
7725 echo "configure: failed program was:" >&5
|
|
7726 cat conftest.$ac_ext >&5
|
|
7727 rm -rf conftest*
|
|
7728 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7729 fi
|
|
7730 rm -f conftest*
|
|
7731 xe_check_libs=""
|
|
7732
|
|
7733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7734 echo "$ac_t""yes" 1>&6
|
|
7735 :
|
|
7736 else
|
|
7737 echo "$ac_t""no" 1>&6
|
|
7738 with_xfs=no
|
|
7739 fi
|
|
7740
|
|
7741
|
|
7742 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
7743 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7744 Defining USE_XFONTSET
|
|
7745 EOF
|
|
7746 cat >> confdefs.h <<\EOF
|
|
7747 #define USE_XFONTSET 1
|
|
7748 EOF
|
|
7749 }
|
|
7750
|
215
|
7751 if test "$with_xim" = "no" ; then
|
|
7752 extra_objs="$extra_objs input-method-xfs.o" && if test "$extra_verbose" = "yes"; then
|
177
|
7753 echo " xemacs will be linked with \"input-method-xfs.o\""
|
|
7754 fi
|
215
|
7755 fi
|
177
|
7756 fi
|
151
|
7757 fi
|
149
|
7758 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
7759 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
7760 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
308
|
7761 echo "configure:7762: checking for wnn/jllib.h" >&5
|
|
7762
|
|
7763 cat > conftest.$ac_ext <<EOF
|
|
7764 #line 7765 "configure"
|
151
|
7765 #include "confdefs.h"
|
|
7766 #include <wnn/jllib.h>
|
149
|
7767 EOF
|
|
7768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
7769 { (eval echo configure:7770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
7770 ac_err=`grep -v '^ *+' conftest.out`
|
|
7771 if test -z "$ac_err"; then
|
|
7772 rm -rf conftest*
|
|
7773 eval "ac_cv_header_$ac_safe=yes"
|
|
7774 else
|
|
7775 echo "$ac_err" >&5
|
|
7776 echo "configure: failed program was:" >&5
|
|
7777 cat conftest.$ac_ext >&5
|
|
7778 rm -rf conftest*
|
|
7779 eval "ac_cv_header_$ac_safe=no"
|
|
7780 fi
|
|
7781 rm -f conftest*
|
|
7782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7783 echo "$ac_t""yes" 1>&6
|
|
7784 :
|
|
7785 else
|
|
7786 echo "$ac_t""no" 1>&6
|
|
7787 with_wnn=no
|
|
7788 fi
|
|
7789 }
|
167
|
7790 if test "$with_wnn" != "no"; then
|
|
7791 for ac_func in crypt
|
|
7792 do
|
|
7793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
7794 echo "configure:7795: checking for $ac_func" >&5
|
|
7795
|
|
7796 cat > conftest.$ac_ext <<EOF
|
|
7797 #line 7798 "configure"
|
167
|
7798 #include "confdefs.h"
|
|
7799 /* System header to define __stub macros and hopefully few prototypes,
|
|
7800 which can conflict with char $ac_func(); below. */
|
|
7801 #include <assert.h>
|
|
7802 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7803 /* We use char because int might match the return type of a gcc2
|
|
7804 builtin and then its argument prototype would still apply. */
|
|
7805 char $ac_func();
|
|
7806
|
|
7807 int main() {
|
|
7808
|
|
7809 /* The GNU C library defines this for functions which it implements
|
|
7810 to always fail with ENOSYS. Some functions are actually named
|
|
7811 something starting with __ and the normal name is an alias. */
|
|
7812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7813 choke me
|
|
7814 #else
|
|
7815 $ac_func();
|
|
7816 #endif
|
|
7817
|
|
7818 ; return 0; }
|
|
7819 EOF
|
308
|
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
167
|
7821 rm -rf conftest*
|
|
7822 eval "ac_cv_func_$ac_func=yes"
|
|
7823 else
|
|
7824 echo "configure: failed program was:" >&5
|
|
7825 cat conftest.$ac_ext >&5
|
|
7826 rm -rf conftest*
|
|
7827 eval "ac_cv_func_$ac_func=no"
|
|
7828 fi
|
|
7829 rm -f conftest*
|
|
7830
|
|
7831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7832 echo "$ac_t""yes" 1>&6
|
|
7833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7834 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7835 Defining $ac_tr_func
|
|
7836 EOF
|
|
7837 cat >> confdefs.h <<EOF
|
|
7838 #define $ac_tr_func 1
|
|
7839 EOF
|
|
7840 }
|
|
7841
|
|
7842 else
|
|
7843 echo "$ac_t""no" 1>&6
|
|
7844 fi
|
|
7845 done
|
|
7846
|
|
7847 test "$ac_cv_func_crypt" != "yes" && {
|
|
7848 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
308
|
7849 echo "configure:7850: checking for crypt in -lcrypt" >&5
|
167
|
7850 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
7851
|
|
7852 xe_check_libs=" -lcrypt "
|
|
7853 cat > conftest.$ac_ext <<EOF
|
308
|
7854 #line 7855 "configure"
|
167
|
7855 #include "confdefs.h"
|
|
7856 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7857 /* We use char because int might match the return type of a gcc2
|
|
7858 builtin and then its argument prototype would still apply. */
|
|
7859 char crypt();
|
|
7860
|
|
7861 int main() {
|
|
7862 crypt()
|
|
7863 ; return 0; }
|
|
7864 EOF
|
308
|
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
167
|
7866 rm -rf conftest*
|
|
7867 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7868 else
|
|
7869 echo "configure: failed program was:" >&5
|
|
7870 cat conftest.$ac_ext >&5
|
|
7871 rm -rf conftest*
|
|
7872 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7873 fi
|
|
7874 rm -f conftest*
|
|
7875 xe_check_libs=""
|
|
7876
|
|
7877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7878 echo "$ac_t""yes" 1>&6
|
|
7879 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
7880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
7881 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7882 Defining $ac_tr_lib
|
|
7883 EOF
|
|
7884 cat >> confdefs.h <<EOF
|
|
7885 #define $ac_tr_lib 1
|
|
7886 EOF
|
|
7887 }
|
|
7888
|
|
7889 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
7890
|
|
7891 else
|
|
7892 echo "$ac_t""no" 1>&6
|
|
7893 fi
|
|
7894
|
|
7895 }
|
|
7896 fi
|
|
7897 test -z "$with_wnn" && {
|
159
|
7898 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
308
|
7899 echo "configure:7900: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
7900 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
7901
|
159
|
7902 xe_check_libs=" -lwnn "
|
|
7903 cat > conftest.$ac_ext <<EOF
|
308
|
7904 #line 7905 "configure"
|
149
|
7905 #include "confdefs.h"
|
|
7906 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7907 /* We use char because int might match the return type of a gcc2
|
|
7908 builtin and then its argument prototype would still apply. */
|
155
|
7909 char jl_dic_list_e();
|
149
|
7910
|
|
7911 int main() {
|
155
|
7912 jl_dic_list_e()
|
149
|
7913 ; return 0; }
|
|
7914 EOF
|
308
|
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
7916 rm -rf conftest*
|
|
7917 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7918 else
|
|
7919 echo "configure: failed program was:" >&5
|
|
7920 cat conftest.$ac_ext >&5
|
|
7921 rm -rf conftest*
|
|
7922 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7923 fi
|
|
7924 rm -f conftest*
|
|
7925 xe_check_libs=""
|
|
7926
|
151
|
7927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7928 echo "$ac_t""yes" 1>&6
|
159
|
7929 :
|
|
7930 else
|
|
7931 echo "$ac_t""no" 1>&6
|
|
7932 with_wnn=no
|
149
|
7933 fi
|
|
7934
|
|
7935 }
|
|
7936 test -z "$with_wnn" && with_wnn=yes
|
|
7937 if test "$with_wnn" = "yes"; then
|
|
7938 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7939 Defining HAVE_WNN
|
|
7940 EOF
|
|
7941 cat >> confdefs.h <<\EOF
|
|
7942 #define HAVE_WNN 1
|
|
7943 EOF
|
|
7944 }
|
|
7945
|
151
|
7946 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi
|
|
7947 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
|
|
7948 echo " xemacs will be linked with \"mule-wnnfns.o\""
|
|
7949 fi
|
284
|
7950 if test "$with_wnn6" != "no"; then
|
|
7951
|
149
|
7952 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
|
308
|
7953 echo "configure:7954: checking for jl_fi_dic_list in -lwnn" >&5
|
149
|
7954 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
7955
|
|
7956 xe_check_libs=" -lwnn "
|
|
7957 cat > conftest.$ac_ext <<EOF
|
308
|
7958 #line 7959 "configure"
|
149
|
7959 #include "confdefs.h"
|
|
7960 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7961 /* We use char because int might match the return type of a gcc2
|
|
7962 builtin and then its argument prototype would still apply. */
|
|
7963 char jl_fi_dic_list();
|
|
7964
|
|
7965 int main() {
|
|
7966 jl_fi_dic_list()
|
|
7967 ; return 0; }
|
|
7968 EOF
|
308
|
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
7970 rm -rf conftest*
|
|
7971 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7972 else
|
|
7973 echo "configure: failed program was:" >&5
|
|
7974 cat conftest.$ac_ext >&5
|
|
7975 rm -rf conftest*
|
|
7976 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7977 fi
|
|
7978 rm -f conftest*
|
|
7979 xe_check_libs=""
|
|
7980
|
151
|
7981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7982 echo "$ac_t""yes" 1>&6
|
|
7983 with_wnn6=yes
|
|
7984 else
|
|
7985 echo "$ac_t""no" 1>&6
|
|
7986 fi
|
|
7987
|
|
7988
|
284
|
7989 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
7990 Defining WNN6
|
|
7991 EOF
|
|
7992 cat >> confdefs.h <<\EOF
|
|
7993 #define WNN6 1
|
|
7994 EOF
|
|
7995 }
|
|
7996
|
284
|
7997 fi
|
151
|
7998 fi
|
149
|
7999
|
267
|
8000 canna_includes_found=no
|
|
8001 if test "$with_canna" != "no"; then
|
|
8002 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
8003 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
308
|
8004 echo "configure:8005: checking for canna/jrkanji.h" >&5
|
|
8005
|
|
8006 cat > conftest.$ac_ext <<EOF
|
|
8007 #line 8008 "configure"
|
267
|
8008 #include "confdefs.h"
|
|
8009 #include <canna/jrkanji.h>
|
|
8010 EOF
|
|
8011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
8012 { (eval echo configure:8013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
267
|
8013 ac_err=`grep -v '^ *+' conftest.out`
|
|
8014 if test -z "$ac_err"; then
|
|
8015 rm -rf conftest*
|
|
8016 eval "ac_cv_header_$ac_safe=yes"
|
|
8017 else
|
|
8018 echo "$ac_err" >&5
|
|
8019 echo "configure: failed program was:" >&5
|
|
8020 cat conftest.$ac_ext >&5
|
|
8021 rm -rf conftest*
|
|
8022 eval "ac_cv_header_$ac_safe=no"
|
|
8023 fi
|
|
8024 rm -f conftest*
|
|
8025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8026 echo "$ac_t""yes" 1>&6
|
|
8027 canna_includes_found=yes
|
|
8028 else
|
|
8029 echo "$ac_t""no" 1>&6
|
|
8030 fi
|
|
8031
|
|
8032 fi
|
|
8033 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
8034 -d "/usr/local/canna/include"; then
|
|
8035 save_c_switch_site="$c_switch_site"
|
|
8036 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
8037 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
8038 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
308
|
8039 echo "configure:8040: checking for canna/jrkanji.h" >&5
|
|
8040
|
|
8041 cat > conftest.$ac_ext <<EOF
|
|
8042 #line 8043 "configure"
|
267
|
8043 #include "confdefs.h"
|
|
8044 #include <canna/jrkanji.h>
|
|
8045 EOF
|
|
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
267
|
8048 ac_err=`grep -v '^ *+' conftest.out`
|
|
8049 if test -z "$ac_err"; then
|
|
8050 rm -rf conftest*
|
|
8051 eval "ac_cv_header_$ac_safe=yes"
|
|
8052 else
|
|
8053 echo "$ac_err" >&5
|
|
8054 echo "configure: failed program was:" >&5
|
|
8055 cat conftest.$ac_ext >&5
|
|
8056 rm -rf conftest*
|
|
8057 eval "ac_cv_header_$ac_safe=no"
|
|
8058 fi
|
|
8059 rm -f conftest*
|
|
8060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8061 echo "$ac_t""yes" 1>&6
|
|
8062 canna_includes_found=yes
|
|
8063 else
|
|
8064 echo "$ac_t""no" 1>&6
|
|
8065 fi
|
|
8066
|
|
8067 if test "$canna_includes_found" != "yes"; then
|
|
8068 c_switch_site="$save_c_switch_site"
|
|
8069 with_canna="no"
|
|
8070 fi
|
|
8071 fi
|
|
8072
|
|
8073 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
8074 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
308
|
8075 echo "configure:8076: checking for canna/RK.h" >&5
|
|
8076
|
|
8077 cat > conftest.$ac_ext <<EOF
|
|
8078 #line 8079 "configure"
|
149
|
8079 #include "confdefs.h"
|
|
8080 #include <canna/RK.h>
|
|
8081 EOF
|
|
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
8084 ac_err=`grep -v '^ *+' conftest.out`
|
|
8085 if test -z "$ac_err"; then
|
|
8086 rm -rf conftest*
|
|
8087 eval "ac_cv_header_$ac_safe=yes"
|
|
8088 else
|
|
8089 echo "$ac_err" >&5
|
|
8090 echo "configure: failed program was:" >&5
|
|
8091 cat conftest.$ac_ext >&5
|
|
8092 rm -rf conftest*
|
|
8093 eval "ac_cv_header_$ac_safe=no"
|
|
8094 fi
|
|
8095 rm -f conftest*
|
|
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8097 echo "$ac_t""yes" 1>&6
|
|
8098 :
|
|
8099 else
|
|
8100 echo "$ac_t""no" 1>&6
|
|
8101 with_canna=no
|
|
8102 fi
|
|
8103 }
|
|
8104 test -z "$with_canna" && {
|
|
8105 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
308
|
8106 echo "configure:8107: checking for RkBgnBun in -lRKC" >&5
|
149
|
8107 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
8108
|
|
8109 xe_check_libs=" -lRKC "
|
|
8110 cat > conftest.$ac_ext <<EOF
|
308
|
8111 #line 8112 "configure"
|
149
|
8112 #include "confdefs.h"
|
|
8113 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8114 /* We use char because int might match the return type of a gcc2
|
|
8115 builtin and then its argument prototype would still apply. */
|
|
8116 char RkBgnBun();
|
|
8117
|
|
8118 int main() {
|
|
8119 RkBgnBun()
|
|
8120 ; return 0; }
|
|
8121 EOF
|
308
|
8122 if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8123 rm -rf conftest*
|
|
8124 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8125 else
|
|
8126 echo "configure: failed program was:" >&5
|
|
8127 cat conftest.$ac_ext >&5
|
|
8128 rm -rf conftest*
|
|
8129 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8130 fi
|
|
8131 rm -f conftest*
|
|
8132 xe_check_libs=""
|
|
8133
|
151
|
8134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8135 echo "$ac_t""yes" 1>&6
|
|
8136 :
|
|
8137 else
|
|
8138 echo "$ac_t""no" 1>&6
|
|
8139 with_canna=no
|
|
8140 fi
|
|
8141
|
|
8142 }
|
|
8143 test -z "$with_canna" && {
|
|
8144 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
308
|
8145 echo "configure:8146: checking for jrKanjiControl in -lcanna" >&5
|
149
|
8146 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
8147
|
|
8148 xe_check_libs=" -lcanna "
|
|
8149 cat > conftest.$ac_ext <<EOF
|
308
|
8150 #line 8151 "configure"
|
149
|
8151 #include "confdefs.h"
|
|
8152 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8153 /* We use char because int might match the return type of a gcc2
|
|
8154 builtin and then its argument prototype would still apply. */
|
|
8155 char jrKanjiControl();
|
|
8156
|
|
8157 int main() {
|
|
8158 jrKanjiControl()
|
|
8159 ; return 0; }
|
|
8160 EOF
|
308
|
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8162 rm -rf conftest*
|
|
8163 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8164 else
|
|
8165 echo "configure: failed program was:" >&5
|
|
8166 cat conftest.$ac_ext >&5
|
|
8167 rm -rf conftest*
|
|
8168 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8169 fi
|
|
8170 rm -f conftest*
|
|
8171 xe_check_libs=""
|
|
8172
|
151
|
8173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8174 echo "$ac_t""yes" 1>&6
|
|
8175 :
|
|
8176 else
|
|
8177 echo "$ac_t""no" 1>&6
|
|
8178 with_canna=no
|
|
8179 fi
|
|
8180
|
|
8181 }
|
|
8182 test -z "$with_canna" && with_canna=yes
|
|
8183 if test "$with_canna" = "yes"; then
|
|
8184 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8185 Defining HAVE_CANNA
|
|
8186 EOF
|
|
8187 cat >> confdefs.h <<\EOF
|
|
8188 #define HAVE_CANNA 1
|
|
8189 EOF
|
|
8190 }
|
|
8191
|
151
|
8192 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
8193 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
|
|
8194 echo " xemacs will be linked with \"mule-canna.o\""
|
|
8195 fi
|
|
8196 fi
|
155
|
8197
|
151
|
8198 else for feature in xim canna wnn; do
|
149
|
8199 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
8200 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2
|
|
8201 fi
|
|
8202 eval "with_${feature}=no"
|
|
8203 done
|
151
|
8204 fi
|
|
8205
|
|
8206 if test "$need_motif" = "yes" ; then
|
|
8207 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
8208
|
|
8209 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
308
|
8210 echo "configure:8211: checking for layout_object_getvalue in -li18n" >&5
|
207
|
8211 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
8212
|
|
8213 xe_check_libs=" -li18n "
|
|
8214 cat > conftest.$ac_ext <<EOF
|
308
|
8215 #line 8216 "configure"
|
207
|
8216 #include "confdefs.h"
|
|
8217 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8218 /* We use char because int might match the return type of a gcc2
|
|
8219 builtin and then its argument prototype would still apply. */
|
|
8220 char layout_object_getvalue();
|
|
8221
|
|
8222 int main() {
|
|
8223 layout_object_getvalue()
|
|
8224 ; return 0; }
|
|
8225 EOF
|
308
|
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
207
|
8227 rm -rf conftest*
|
|
8228 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8229 else
|
|
8230 echo "configure: failed program was:" >&5
|
|
8231 cat conftest.$ac_ext >&5
|
|
8232 rm -rf conftest*
|
|
8233 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8234 fi
|
|
8235 rm -f conftest*
|
|
8236 xe_check_libs=""
|
|
8237
|
|
8238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8239 echo "$ac_t""yes" 1>&6
|
|
8240 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
8241 else
|
|
8242 echo "$ac_t""no" 1>&6
|
|
8243 fi
|
|
8244
|
|
8245
|
151
|
8246
|
|
8247 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
8248 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
8249 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
8250
|
163
|
8251 runpath="" runpath_dirs=""
|
155
|
8252 if test -n "$LD_RUN_PATH"; then
|
151
|
8253 runpath="$LD_RUN_PATH"
|
155
|
8254 elif test "$GCC" = "yes"; then
|
163
|
8255 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
8256 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
8257 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
8258 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
8259 case "$arg" in P,* | -L* | -R* )
|
159
|
8260 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
8261 {
|
155
|
8262 xe_runpath_dir="$dir"
|
163
|
8263 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
8264 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
8265 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
8266 eval "$xe_add_unique_runpath_dir"
|
|
8267 }
|
155
|
8268 done ;;
|
|
8269 esac
|
|
8270 done
|
163
|
8271 ld_switch_run="$ld_switch_run_save"
|
155
|
8272 rm -f conftest*
|
151
|
8273 else
|
155
|
8274 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
8275 case "$arg" in -L*) {
|
159
|
8276 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
8277 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
8278 "$xe_runpath_dir" != "/usr/lib" -a \
|
163
|
8279 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
|
8280 eval "$xe_add_unique_runpath_dir"
|
|
8281 };; esac
|
151
|
8282 done
|
163
|
8283 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
8284 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
8285 eval "$xe_add_unique_runpath_dir";
|
|
8286 fi
|
155
|
8287 fi
|
151
|
8288 if test -n "$runpath"; then
|
|
8289 ld_switch_run="${dash_r}${runpath}"
|
272
|
8290
|
|
8291 if test "$GCC" = "yes"; then
|
|
8292 set x $ld_switch_run; shift; ld_switch_run=""
|
|
8293 while test -n "$1"; do
|
|
8294 case $1 in
|
|
8295 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
8296 -L* | -l* | -u* | -Wl* ) ld_switch_run="$ld_switch_run $1" ;;
|
|
8297 -Xlinker* ) ;;
|
|
8298 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
8299 esac
|
|
8300 shift
|
|
8301 done
|
|
8302 fi
|
151
|
8303 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
8304 fi
|
|
8305 fi
|
|
8306
|
|
8307 fi
|
|
8308
|
265
|
8309 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
|
8310 do
|
|
8311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
8312 echo "configure:8313: checking for $ac_func" >&5
|
|
8313
|
|
8314 cat > conftest.$ac_ext <<EOF
|
|
8315 #line 8316 "configure"
|
149
|
8316 #include "confdefs.h"
|
|
8317 /* System header to define __stub macros and hopefully few prototypes,
|
|
8318 which can conflict with char $ac_func(); below. */
|
|
8319 #include <assert.h>
|
|
8320 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8321 /* We use char because int might match the return type of a gcc2
|
|
8322 builtin and then its argument prototype would still apply. */
|
|
8323 char $ac_func();
|
|
8324
|
|
8325 int main() {
|
|
8326
|
70
|
8327 /* The GNU C library defines this for functions which it implements
|
|
8328 to always fail with ENOSYS. Some functions are actually named
|
|
8329 something starting with __ and the normal name is an alias. */
|
149
|
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
8331 choke me
|
|
8332 #else
|
149
|
8333 $ac_func();
|
70
|
8334 #endif
|
149
|
8335
|
70
|
8336 ; return 0; }
|
|
8337 EOF
|
308
|
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8339 rm -rf conftest*
|
|
8340 eval "ac_cv_func_$ac_func=yes"
|
|
8341 else
|
|
8342 echo "configure: failed program was:" >&5
|
|
8343 cat conftest.$ac_ext >&5
|
|
8344 rm -rf conftest*
|
|
8345 eval "ac_cv_func_$ac_func=no"
|
|
8346 fi
|
|
8347 rm -f conftest*
|
|
8348
|
|
8349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8350 echo "$ac_t""yes" 1>&6
|
|
8351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8352 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8353 Defining $ac_tr_func
|
|
8354 EOF
|
|
8355 cat >> confdefs.h <<EOF
|
|
8356 #define $ac_tr_func 1
|
|
8357 EOF
|
|
8358 }
|
|
8359
|
|
8360 else
|
|
8361 echo "$ac_t""no" 1>&6
|
|
8362 fi
|
|
8363 done
|
|
8364
|
|
8365
|
151
|
8366
|
|
8367 case "$opsys" in
|
209
|
8368 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
151
|
8369 echo " xemacs will be linked with \"realpath.o\""
|
|
8370 fi ;;
|
|
8371 * )
|
|
8372 for ac_func in realpath
|
|
8373 do
|
|
8374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
8375 echo "configure:8376: checking for $ac_func" >&5
|
|
8376
|
|
8377 cat > conftest.$ac_ext <<EOF
|
|
8378 #line 8379 "configure"
|
151
|
8379 #include "confdefs.h"
|
|
8380 /* System header to define __stub macros and hopefully few prototypes,
|
|
8381 which can conflict with char $ac_func(); below. */
|
|
8382 #include <assert.h>
|
|
8383 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8384 /* We use char because int might match the return type of a gcc2
|
|
8385 builtin and then its argument prototype would still apply. */
|
|
8386 char $ac_func();
|
|
8387
|
|
8388 int main() {
|
|
8389
|
|
8390 /* The GNU C library defines this for functions which it implements
|
|
8391 to always fail with ENOSYS. Some functions are actually named
|
|
8392 something starting with __ and the normal name is an alias. */
|
|
8393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8394 choke me
|
|
8395 #else
|
|
8396 $ac_func();
|
|
8397 #endif
|
|
8398
|
|
8399 ; return 0; }
|
|
8400 EOF
|
308
|
8401 if { (eval echo configure:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
151
|
8402 rm -rf conftest*
|
|
8403 eval "ac_cv_func_$ac_func=yes"
|
|
8404 else
|
|
8405 echo "configure: failed program was:" >&5
|
|
8406 cat conftest.$ac_ext >&5
|
|
8407 rm -rf conftest*
|
|
8408 eval "ac_cv_func_$ac_func=no"
|
|
8409 fi
|
|
8410 rm -f conftest*
|
|
8411
|
|
8412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8413 echo "$ac_t""yes" 1>&6
|
|
8414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
8415 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8416 Defining $ac_tr_func
|
|
8417 EOF
|
|
8418 cat >> confdefs.h <<EOF
|
|
8419 #define $ac_tr_func 1
|
|
8420 EOF
|
|
8421 }
|
|
8422
|
|
8423 else
|
|
8424 echo "$ac_t""no" 1>&6
|
|
8425 fi
|
|
8426 done
|
|
8427
|
|
8428 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
8429 echo " xemacs will be linked with \"realpath.o\""
|
|
8430 fi ;;
|
|
8431 esac
|
|
8432
|
149
|
8433 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
308
|
8434 echo "configure:8435: checking whether netdb declares h_errno" >&5
|
|
8435 cat > conftest.$ac_ext <<EOF
|
|
8436 #line 8437 "configure"
|
0
|
8437 #include "confdefs.h"
|
|
8438 #include <netdb.h>
|
149
|
8439 int main() {
|
|
8440 return h_errno;
|
|
8441 ; return 0; }
|
|
8442 EOF
|
308
|
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8444 rm -rf conftest*
|
|
8445 echo "$ac_t""yes" 1>&6
|
|
8446 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8447 Defining HAVE_H_ERRNO
|
|
8448 EOF
|
|
8449 cat >> confdefs.h <<\EOF
|
|
8450 #define HAVE_H_ERRNO 1
|
|
8451 EOF
|
|
8452 }
|
|
8453
|
|
8454 else
|
|
8455 echo "configure: failed program was:" >&5
|
|
8456 cat conftest.$ac_ext >&5
|
|
8457 rm -rf conftest*
|
|
8458 echo "$ac_t""no" 1>&6
|
|
8459 fi
|
|
8460 rm -f conftest*
|
|
8461
|
|
8462 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
308
|
8463 echo "configure:8464: checking for sigsetjmp" >&5
|
|
8464 cat > conftest.$ac_ext <<EOF
|
|
8465 #line 8466 "configure"
|
0
|
8466 #include "confdefs.h"
|
|
8467 #include <setjmp.h>
|
149
|
8468 int main() {
|
|
8469 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
8470 ; return 0; }
|
|
8471 EOF
|
308
|
8472 if { (eval echo configure:8473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
8473 rm -rf conftest*
|
|
8474 echo "$ac_t""yes" 1>&6
|
|
8475 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8476 Defining HAVE_SIGSETJMP
|
|
8477 EOF
|
|
8478 cat >> confdefs.h <<\EOF
|
|
8479 #define HAVE_SIGSETJMP 1
|
|
8480 EOF
|
|
8481 }
|
|
8482
|
|
8483 else
|
|
8484 echo "configure: failed program was:" >&5
|
|
8485 cat conftest.$ac_ext >&5
|
|
8486 rm -rf conftest*
|
|
8487 echo "$ac_t""no" 1>&6
|
|
8488 fi
|
|
8489 rm -f conftest*
|
|
8490
|
|
8491 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
308
|
8492 echo "configure:8493: checking whether localtime caches TZ" >&5
|
149
|
8493
|
|
8494 if test "$ac_cv_func_tzset" = "yes"; then
|
|
8495 cat > conftest.$ac_ext <<EOF
|
308
|
8496 #line 8497 "configure"
|
0
|
8497 #include "confdefs.h"
|
|
8498 #include <time.h>
|
149
|
8499 #if STDC_HEADERS
|
0
|
8500 # include <stdlib.h>
|
|
8501 #endif
|
|
8502 extern char **environ;
|
|
8503 unset_TZ ()
|
|
8504 {
|
|
8505 char **from, **to;
|
|
8506 for (to = from = environ; (*to = *from); from++)
|
|
8507 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
8508 to++;
|
|
8509 }
|
149
|
8510 char TZ_GMT0[] = "TZ=GMT0";
|
|
8511 char TZ_PST8[] = "TZ=PST8";
|
0
|
8512 main()
|
|
8513 {
|
|
8514 time_t now = time ((time_t *) 0);
|
|
8515 int hour_GMT0, hour_unset;
|
149
|
8516 if (putenv (TZ_GMT0) != 0)
|
0
|
8517 exit (1);
|
|
8518 hour_GMT0 = localtime (&now)->tm_hour;
|
|
8519 unset_TZ ();
|
|
8520 hour_unset = localtime (&now)->tm_hour;
|
149
|
8521 if (putenv (TZ_PST8) != 0)
|
0
|
8522 exit (1);
|
|
8523 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
8524 exit (1);
|
|
8525 unset_TZ ();
|
|
8526 if (localtime (&now)->tm_hour != hour_unset)
|
|
8527 exit (1);
|
|
8528 exit (0);
|
|
8529 }
|
|
8530 EOF
|
308
|
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
8532 then
|
0
|
8533 emacs_cv_localtime_cache=no
|
149
|
8534 else
|
306
|
8535 conftest_rc="$?"
|
149
|
8536 echo "configure: failed program was:" >&5
|
|
8537 cat conftest.$ac_ext >&5
|
|
8538 rm -fr conftest*
|
0
|
8539 emacs_cv_localtime_cache=yes
|
|
8540 fi
|
|
8541 rm -fr conftest*
|
149
|
8542 else
|
|
8543 # If we lack tzset, report that localtime does not cache TZ,
|
|
8544 # since we can't invalidate the cache if we don't have tzset.
|
|
8545 emacs_cv_localtime_cache=no
|
|
8546 fi
|
|
8547 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
8548 if test $emacs_cv_localtime_cache = yes; then
|
|
8549 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8550 Defining LOCALTIME_CACHE
|
|
8551 EOF
|
|
8552 cat >> confdefs.h <<\EOF
|
|
8553 #define LOCALTIME_CACHE 1
|
|
8554 EOF
|
|
8555 }
|
|
8556
|
|
8557 fi
|
|
8558
|
|
8559 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
8560 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
308
|
8561 echo "configure:8562: checking whether gettimeofday accepts one or two arguments" >&5
|
|
8562 cat > conftest.$ac_ext <<EOF
|
|
8563 #line 8564 "configure"
|
0
|
8564 #include "confdefs.h"
|
|
8565
|
|
8566 #ifdef TIME_WITH_SYS_TIME
|
|
8567 #include <sys/time.h>
|
|
8568 #include <time.h>
|
|
8569 #else
|
|
8570 #ifdef HAVE_SYS_TIME_H
|
|
8571 #include <sys/time.h>
|
|
8572 #else
|
|
8573 #include <time.h>
|
|
8574 #endif
|
|
8575 #endif
|
|
8576
|
149
|
8577 int main() {
|
|
8578
|
0
|
8579 struct timeval time;
|
|
8580 struct timezone dummy;
|
|
8581 gettimeofday (&time, &dummy);
|
149
|
8582
|
0
|
8583 ; return 0; }
|
|
8584 EOF
|
308
|
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
274
|
8586 rm -rf conftest*
|
|
8587 echo "$ac_t""two" 1>&6
|
|
8588 else
|
|
8589 echo "configure: failed program was:" >&5
|
|
8590 cat conftest.$ac_ext >&5
|
|
8591 rm -rf conftest*
|
|
8592 echo "$ac_t""one" 1>&6
|
149
|
8593 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8594 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
8595 EOF
|
|
8596 cat >> confdefs.h <<\EOF
|
|
8597 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
8598 EOF
|
|
8599 }
|
|
8600
|
|
8601 fi
|
|
8602 rm -f conftest*
|
|
8603 fi
|
|
8604
|
|
8605
|
|
8606 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
308
|
8607 echo "configure:8608: checking for inline" >&5
|
149
|
8608
|
|
8609 ac_cv_c_inline=no
|
|
8610 for ac_kw in inline __inline__ __inline; do
|
|
8611 cat > conftest.$ac_ext <<EOF
|
308
|
8612 #line 8613 "configure"
|
149
|
8613 #include "confdefs.h"
|
|
8614
|
|
8615 int main() {
|
|
8616 } $ac_kw foo() {
|
0
|
8617 ; return 0; }
|
|
8618 EOF
|
308
|
8619 if { (eval echo configure:8620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
8620 rm -rf conftest*
|
|
8621 ac_cv_c_inline=$ac_kw; break
|
|
8622 else
|
|
8623 echo "configure: failed program was:" >&5
|
|
8624 cat conftest.$ac_ext >&5
|
|
8625 fi
|
|
8626 rm -f conftest*
|
|
8627 done
|
|
8628
|
|
8629
|
|
8630 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
8631 case "$ac_cv_c_inline" in
|
|
8632 inline | yes) ;;
|
|
8633 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8634 Defining inline =
|
|
8635 EOF
|
|
8636 cat >> confdefs.h <<\EOF
|
|
8637 #define inline
|
|
8638 EOF
|
|
8639 }
|
|
8640 ;;
|
|
8641 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
8642 Defining inline = $ac_cv_c_inline
|
|
8643 EOF
|
|
8644 cat >> confdefs.h <<EOF
|
|
8645 #define inline $ac_cv_c_inline
|
|
8646 EOF
|
|
8647 }
|
|
8648 ;;
|
|
8649 esac
|
|
8650
|
155
|
8651 if test "$ac_cv_c_inline" != "no"; then
|
|
8652 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
8653 Defining HAVE_INLINE
|
|
8654 EOF
|
|
8655 cat >> confdefs.h <<\EOF
|
|
8656 #define HAVE_INLINE 1
|
|
8657 EOF
|
|
8658 }
|
|
8659
|
155
|
8660 test "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
|
8661 echo " xemacs will be linked with \"inline.o\""
|
|
8662 fi
|
|
8663 fi
|
149
|
8664
|
|
8665
|
0
|
8666 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
8667 # for constant arguments. Useless!
|
149
|
8668 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
308
|
8669 echo "configure:8670: checking for working alloca.h" >&5
|
|
8670
|
|
8671 cat > conftest.$ac_ext <<EOF
|
|
8672 #line 8673 "configure"
|
0
|
8673 #include "confdefs.h"
|
|
8674 #include <alloca.h>
|
149
|
8675 int main() {
|
|
8676 char *p = alloca(2 * sizeof(int));
|
0
|
8677 ; return 0; }
|
|
8678 EOF
|
308
|
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8680 rm -rf conftest*
|
|
8681 ac_cv_header_alloca_h=yes
|
|
8682 else
|
|
8683 echo "configure: failed program was:" >&5
|
|
8684 cat conftest.$ac_ext >&5
|
|
8685 rm -rf conftest*
|
|
8686 ac_cv_header_alloca_h=no
|
|
8687 fi
|
|
8688 rm -f conftest*
|
|
8689
|
|
8690 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
8691 if test $ac_cv_header_alloca_h = yes; then
|
|
8692 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8693 Defining HAVE_ALLOCA_H
|
|
8694 EOF
|
|
8695 cat >> confdefs.h <<\EOF
|
|
8696 #define HAVE_ALLOCA_H 1
|
|
8697 EOF
|
|
8698 }
|
|
8699
|
|
8700 fi
|
|
8701
|
|
8702 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
308
|
8703 echo "configure:8704: checking for alloca" >&5
|
|
8704
|
|
8705 cat > conftest.$ac_ext <<EOF
|
|
8706 #line 8707 "configure"
|
149
|
8707 #include "confdefs.h"
|
|
8708
|
|
8709 #ifdef __GNUC__
|
|
8710 # define alloca __builtin_alloca
|
0
|
8711 #else
|
149
|
8712 # if HAVE_ALLOCA_H
|
|
8713 # include <alloca.h>
|
|
8714 # else
|
|
8715 # ifdef _AIX
|
|
8716 #pragma alloca
|
|
8717 # else
|
|
8718 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
8719 char *alloca ();
|
|
8720 # endif
|
|
8721 # endif
|
|
8722 # endif
|
0
|
8723 #endif
|
149
|
8724
|
|
8725 int main() {
|
|
8726 char *p = (char *) alloca(1);
|
0
|
8727 ; return 0; }
|
|
8728 EOF
|
308
|
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8730 rm -rf conftest*
|
|
8731 ac_cv_func_alloca_works=yes
|
|
8732 else
|
|
8733 echo "configure: failed program was:" >&5
|
|
8734 cat conftest.$ac_ext >&5
|
|
8735 rm -rf conftest*
|
|
8736 ac_cv_func_alloca_works=no
|
|
8737 fi
|
|
8738 rm -f conftest*
|
|
8739
|
|
8740 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
8741 if test $ac_cv_func_alloca_works = yes; then
|
|
8742 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8743 Defining HAVE_ALLOCA
|
|
8744 EOF
|
|
8745 cat >> confdefs.h <<\EOF
|
|
8746 #define HAVE_ALLOCA 1
|
|
8747 EOF
|
|
8748 }
|
|
8749
|
|
8750 fi
|
|
8751
|
|
8752 if test $ac_cv_func_alloca_works = no; then
|
0
|
8753 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
8754 # that cause trouble. Some versions do not even contain alloca or
|
|
8755 # contain a buggy version. If you still want to use their alloca,
|
|
8756 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
8757 ALLOCA=alloca.o
|
149
|
8758 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8759 Defining C_ALLOCA
|
|
8760 EOF
|
|
8761 cat >> confdefs.h <<\EOF
|
|
8762 #define C_ALLOCA 1
|
|
8763 EOF
|
|
8764 }
|
|
8765
|
|
8766
|
|
8767 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
308
|
8768 echo "configure:8769: checking whether alloca needs Cray hooks" >&5
|
|
8769
|
|
8770 cat > conftest.$ac_ext <<EOF
|
|
8771 #line 8772 "configure"
|
149
|
8772 #include "confdefs.h"
|
|
8773 #if defined(CRAY) && ! defined(CRAY2)
|
|
8774 webecray
|
|
8775 #else
|
|
8776 wenotbecray
|
|
8777 #endif
|
|
8778
|
|
8779 EOF
|
|
8780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
8781 egrep "webecray" >/dev/null 2>&1; then
|
|
8782 rm -rf conftest*
|
|
8783 ac_cv_os_cray=yes
|
|
8784 else
|
|
8785 rm -rf conftest*
|
|
8786 ac_cv_os_cray=no
|
|
8787 fi
|
|
8788 rm -f conftest*
|
|
8789
|
|
8790
|
|
8791 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
8792 if test $ac_cv_os_cray = yes; then
|
|
8793 for ac_func in _getb67 GETB67 getb67; do
|
|
8794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
8795 echo "configure:8796: checking for $ac_func" >&5
|
|
8796
|
|
8797 cat > conftest.$ac_ext <<EOF
|
|
8798 #line 8799 "configure"
|
149
|
8799 #include "confdefs.h"
|
|
8800 /* System header to define __stub macros and hopefully few prototypes,
|
|
8801 which can conflict with char $ac_func(); below. */
|
|
8802 #include <assert.h>
|
|
8803 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8804 /* We use char because int might match the return type of a gcc2
|
|
8805 builtin and then its argument prototype would still apply. */
|
|
8806 char $ac_func();
|
|
8807
|
|
8808 int main() {
|
|
8809
|
|
8810 /* The GNU C library defines this for functions which it implements
|
|
8811 to always fail with ENOSYS. Some functions are actually named
|
|
8812 something starting with __ and the normal name is an alias. */
|
|
8813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
8814 choke me
|
|
8815 #else
|
|
8816 $ac_func();
|
|
8817 #endif
|
|
8818
|
|
8819 ; return 0; }
|
|
8820 EOF
|
308
|
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
8822 rm -rf conftest*
|
|
8823 eval "ac_cv_func_$ac_func=yes"
|
|
8824 else
|
|
8825 echo "configure: failed program was:" >&5
|
|
8826 cat conftest.$ac_ext >&5
|
|
8827 rm -rf conftest*
|
|
8828 eval "ac_cv_func_$ac_func=no"
|
|
8829 fi
|
|
8830 rm -f conftest*
|
|
8831
|
|
8832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
8833 echo "$ac_t""yes" 1>&6
|
|
8834 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8835 Defining CRAY_STACKSEG_END = $ac_func
|
|
8836 EOF
|
|
8837 cat >> confdefs.h <<EOF
|
|
8838 #define CRAY_STACKSEG_END $ac_func
|
|
8839 EOF
|
|
8840 }
|
|
8841
|
|
8842 break
|
|
8843 else
|
|
8844 echo "$ac_t""no" 1>&6
|
|
8845 fi
|
|
8846
|
|
8847 done
|
|
8848 fi
|
|
8849
|
|
8850 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
308
|
8851 echo "configure:8852: checking stack direction for C alloca" >&5
|
|
8852
|
|
8853 cat > conftest.$ac_ext <<EOF
|
|
8854 #line 8855 "configure"
|
0
|
8855 #include "confdefs.h"
|
|
8856 find_stack_direction ()
|
|
8857 {
|
|
8858 static char *addr = 0;
|
|
8859 auto char dummy;
|
|
8860 if (addr == 0)
|
|
8861 {
|
|
8862 addr = &dummy;
|
|
8863 return find_stack_direction ();
|
|
8864 }
|
|
8865 else
|
|
8866 return (&dummy > addr) ? 1 : -1;
|
|
8867 }
|
|
8868 main ()
|
|
8869 {
|
|
8870 exit (find_stack_direction() < 0);
|
|
8871 }
|
|
8872 EOF
|
308
|
8873 if { (eval echo configure:8874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
8874 then
|
|
8875 ac_cv_c_stack_direction=1
|
|
8876 else
|
306
|
8877 conftest_rc="$?"
|
149
|
8878 echo "configure: failed program was:" >&5
|
|
8879 cat conftest.$ac_ext >&5
|
|
8880 rm -fr conftest*
|
|
8881 ac_cv_c_stack_direction=-1
|
0
|
8882 fi
|
|
8883 rm -fr conftest*
|
149
|
8884
|
|
8885 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
8886 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8887 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
8888 EOF
|
|
8889 cat >> confdefs.h <<EOF
|
|
8890 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
8891 EOF
|
|
8892 }
|
|
8893
|
|
8894 fi
|
|
8895
|
151
|
8896 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
|
8897 echo " xemacs will be linked with \"$ALLOCA\""
|
|
8898 fi
|
149
|
8899
|
|
8900 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
8901 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
308
|
8902 echo "configure:8903: checking for vfork.h" >&5
|
|
8903
|
|
8904 cat > conftest.$ac_ext <<EOF
|
|
8905 #line 8906 "configure"
|
0
|
8906 #include "confdefs.h"
|
|
8907 #include <vfork.h>
|
|
8908 EOF
|
149
|
8909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
8910 { (eval echo configure:8911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
8911 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
8912 if test -z "$ac_err"; then
|
|
8913 rm -rf conftest*
|
149
|
8914 eval "ac_cv_header_$ac_safe=yes"
|
|
8915 else
|
|
8916 echo "$ac_err" >&5
|
|
8917 echo "configure: failed program was:" >&5
|
|
8918 cat conftest.$ac_ext >&5
|
|
8919 rm -rf conftest*
|
|
8920 eval "ac_cv_header_$ac_safe=no"
|
|
8921 fi
|
|
8922 rm -f conftest*
|
|
8923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8924 echo "$ac_t""yes" 1>&6
|
|
8925 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8926 Defining HAVE_VFORK_H
|
|
8927 EOF
|
|
8928 cat >> confdefs.h <<\EOF
|
|
8929 #define HAVE_VFORK_H 1
|
|
8930 EOF
|
|
8931 }
|
|
8932
|
|
8933 else
|
|
8934 echo "$ac_t""no" 1>&6
|
|
8935 fi
|
|
8936
|
|
8937 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
308
|
8938 echo "configure:8939: checking for working vfork" >&5
|
|
8939
|
|
8940 cat > conftest.$ac_ext <<EOF
|
|
8941 #line 8942 "configure"
|
0
|
8942 #include "confdefs.h"
|
|
8943 /* Thanks to Paul Eggert for this test. */
|
|
8944 #include <stdio.h>
|
|
8945 #include <sys/types.h>
|
|
8946 #include <sys/stat.h>
|
|
8947 #ifdef HAVE_UNISTD_H
|
|
8948 #include <unistd.h>
|
|
8949 #endif
|
|
8950 #ifdef HAVE_VFORK_H
|
|
8951 #include <vfork.h>
|
|
8952 #endif
|
149
|
8953 /* On some sparc systems, changes by the child to local and incoming
|
|
8954 argument registers are propagated back to the parent.
|
|
8955 The compiler is told about this with #include <vfork.h>,
|
|
8956 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
8957 Test for this by using a static variable whose address
|
|
8958 is put into a register that is clobbered by the vfork. */
|
|
8959 static
|
|
8960 #ifdef __cplusplus
|
|
8961 sparc_address_test (int arg)
|
|
8962 #else
|
|
8963 sparc_address_test (arg) int arg;
|
|
8964 #endif
|
|
8965 {
|
|
8966 static pid_t child;
|
|
8967 if (!child) {
|
|
8968 child = vfork ();
|
|
8969 if (child < 0) {
|
|
8970 perror ("vfork");
|
|
8971 _exit(2);
|
|
8972 }
|
|
8973 if (!child) {
|
|
8974 arg = getpid();
|
|
8975 write(-1, "", 0);
|
|
8976 _exit (arg);
|
|
8977 }
|
|
8978 }
|
|
8979 }
|
0
|
8980 main() {
|
|
8981 pid_t parent = getpid ();
|
|
8982 pid_t child;
|
|
8983
|
149
|
8984 sparc_address_test ();
|
0
|
8985
|
|
8986 child = vfork ();
|
|
8987
|
|
8988 if (child == 0) {
|
149
|
8989 /* Here is another test for sparc vfork register problems.
|
|
8990 This test uses lots of local variables, at least
|
0
|
8991 as many local variables as main has allocated so far
|
|
8992 including compiler temporaries. 4 locals are enough for
|
149
|
8993 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
0
|
8994 A buggy compiler should reuse the register of parent
|
|
8995 for one of the local variables, since it will think that
|
|
8996 parent can't possibly be used any more in this routine.
|
|
8997 Assigning to the local variable will thus munge parent
|
|
8998 in the parent process. */
|
|
8999 pid_t
|
|
9000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
9001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
9002 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
9003 use the same hardware register for all 8 local variables. */
|
|
9004 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
9005 || p != p5 || p != p6 || p != p7)
|
|
9006 _exit(1);
|
|
9007
|
|
9008 /* On some systems (e.g. IRIX 3.3),
|
|
9009 vfork doesn't separate parent from child file descriptors.
|
|
9010 If the child closes a descriptor before it execs or exits,
|
|
9011 this munges the parent's descriptor as well.
|
|
9012 Test for this by closing stdout in the child. */
|
|
9013 _exit(close(fileno(stdout)) != 0);
|
|
9014 } else {
|
|
9015 int status;
|
|
9016 struct stat st;
|
|
9017
|
|
9018 while (wait(&status) != child)
|
|
9019 ;
|
|
9020 exit(
|
|
9021 /* Was there some problem with vforking? */
|
|
9022 child < 0
|
|
9023
|
|
9024 /* Did the child fail? (This shouldn't happen.) */
|
|
9025 || status
|
|
9026
|
|
9027 /* Did the vfork/compiler bug occur? */
|
|
9028 || parent != getpid()
|
|
9029
|
|
9030 /* Did the file descriptor bug occur? */
|
|
9031 || fstat(fileno(stdout), &st) != 0
|
|
9032 );
|
|
9033 }
|
|
9034 }
|
|
9035 EOF
|
308
|
9036 if { (eval echo configure:9037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
9037 then
|
|
9038 ac_cv_func_vfork_works=yes
|
|
9039 else
|
306
|
9040 conftest_rc="$?"
|
149
|
9041 echo "configure: failed program was:" >&5
|
|
9042 cat conftest.$ac_ext >&5
|
|
9043 rm -fr conftest*
|
|
9044 ac_cv_func_vfork_works=no
|
0
|
9045 fi
|
|
9046 rm -fr conftest*
|
|
9047
|
149
|
9048 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
9049 if test $ac_cv_func_vfork_works = no; then
|
|
9050 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9051 Defining vfork = fork
|
|
9052 EOF
|
|
9053 cat >> confdefs.h <<\EOF
|
|
9054 #define vfork fork
|
|
9055 EOF
|
|
9056 }
|
|
9057
|
|
9058 fi
|
|
9059
|
|
9060
|
|
9061 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
308
|
9062 echo "configure:9063: checking for working strcoll" >&5
|
|
9063
|
|
9064 cat > conftest.$ac_ext <<EOF
|
|
9065 #line 9066 "configure"
|
0
|
9066 #include "confdefs.h"
|
|
9067 #include <string.h>
|
|
9068 main ()
|
|
9069 {
|
|
9070 exit (strcoll ("abc", "def") >= 0 ||
|
|
9071 strcoll ("ABC", "DEF") >= 0 ||
|
|
9072 strcoll ("123", "456") >= 0);
|
|
9073 }
|
|
9074 EOF
|
308
|
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
9076 then
|
|
9077 ac_cv_func_strcoll_works=yes
|
|
9078 else
|
306
|
9079 conftest_rc="$?"
|
149
|
9080 echo "configure: failed program was:" >&5
|
|
9081 cat conftest.$ac_ext >&5
|
|
9082 rm -fr conftest*
|
|
9083 ac_cv_func_strcoll_works=no
|
0
|
9084 fi
|
|
9085 rm -fr conftest*
|
|
9086
|
149
|
9087 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
9088 if test $ac_cv_func_strcoll_works = yes; then
|
|
9089 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9090 Defining HAVE_STRCOLL
|
|
9091 EOF
|
|
9092 cat >> confdefs.h <<\EOF
|
|
9093 #define HAVE_STRCOLL 1
|
|
9094 EOF
|
|
9095 }
|
|
9096
|
|
9097 fi
|
|
9098
|
|
9099
|
163
|
9100 for ac_func in getpgrp
|
|
9101 do
|
|
9102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
9103 echo "configure:9104: checking for $ac_func" >&5
|
|
9104
|
|
9105 cat > conftest.$ac_ext <<EOF
|
|
9106 #line 9107 "configure"
|
163
|
9107 #include "confdefs.h"
|
|
9108 /* System header to define __stub macros and hopefully few prototypes,
|
|
9109 which can conflict with char $ac_func(); below. */
|
|
9110 #include <assert.h>
|
|
9111 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9112 /* We use char because int might match the return type of a gcc2
|
|
9113 builtin and then its argument prototype would still apply. */
|
|
9114 char $ac_func();
|
|
9115
|
|
9116 int main() {
|
|
9117
|
|
9118 /* The GNU C library defines this for functions which it implements
|
|
9119 to always fail with ENOSYS. Some functions are actually named
|
|
9120 something starting with __ and the normal name is an alias. */
|
|
9121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
9122 choke me
|
|
9123 #else
|
|
9124 $ac_func();
|
|
9125 #endif
|
|
9126
|
|
9127 ; return 0; }
|
|
9128 EOF
|
308
|
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
163
|
9130 rm -rf conftest*
|
|
9131 eval "ac_cv_func_$ac_func=yes"
|
|
9132 else
|
|
9133 echo "configure: failed program was:" >&5
|
|
9134 cat conftest.$ac_ext >&5
|
|
9135 rm -rf conftest*
|
|
9136 eval "ac_cv_func_$ac_func=no"
|
|
9137 fi
|
|
9138 rm -f conftest*
|
|
9139
|
|
9140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
9141 echo "$ac_t""yes" 1>&6
|
|
9142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
9143 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9144 Defining $ac_tr_func
|
|
9145 EOF
|
|
9146 cat >> confdefs.h <<EOF
|
|
9147 #define $ac_tr_func 1
|
|
9148 EOF
|
|
9149 }
|
|
9150
|
|
9151 else
|
|
9152 echo "$ac_t""no" 1>&6
|
|
9153 fi
|
|
9154 done
|
|
9155
|
|
9156 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
308
|
9157 echo "configure:9158: checking whether getpgrp takes no argument" >&5
|
|
9158
|
|
9159 cat > conftest.$ac_ext <<EOF
|
|
9160 #line 9161 "configure"
|
163
|
9161 #include "confdefs.h"
|
|
9162
|
|
9163 /*
|
|
9164 * If this system has a BSD-style getpgrp(),
|
|
9165 * which takes a pid argument, exit unsuccessfully.
|
|
9166 *
|
|
9167 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
9168 */
|
|
9169 #include <stdio.h>
|
|
9170 #include <sys/types.h>
|
|
9171
|
|
9172 int pid;
|
|
9173 int pg1, pg2, pg3, pg4;
|
|
9174 int ng, np, s, child;
|
|
9175
|
|
9176 main()
|
|
9177 {
|
|
9178 pid = getpid();
|
|
9179 pg1 = getpgrp(0);
|
|
9180 pg2 = getpgrp();
|
|
9181 pg3 = getpgrp(pid);
|
|
9182 pg4 = getpgrp(1);
|
|
9183
|
|
9184 /*
|
|
9185 * If all of these values are the same, it's pretty sure that
|
|
9186 * we're on a system that ignores getpgrp's first argument.
|
|
9187 */
|
|
9188 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
9189 exit(0);
|
|
9190
|
|
9191 child = fork();
|
|
9192 if (child < 0)
|
|
9193 exit(1);
|
|
9194 else if (child == 0) {
|
|
9195 np = getpid();
|
|
9196 /*
|
|
9197 * If this is Sys V, this will not work; pgrp will be
|
|
9198 * set to np because setpgrp just changes a pgrp to be
|
|
9199 * the same as the pid.
|
|
9200 */
|
|
9201 setpgrp(np, pg1);
|
|
9202 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
9203 if (ng == pg1) {
|
|
9204 exit(1);
|
|
9205 } else {
|
|
9206 exit(0);
|
|
9207 }
|
|
9208 } else {
|
|
9209 wait(&s);
|
|
9210 exit(s>>8);
|
|
9211 }
|
|
9212 }
|
|
9213
|
|
9214 EOF
|
308
|
9215 if { (eval echo configure:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
9216 then
|
|
9217 ac_cv_func_getpgrp_void=yes
|
|
9218 else
|
306
|
9219 conftest_rc="$?"
|
163
|
9220 echo "configure: failed program was:" >&5
|
|
9221 cat conftest.$ac_ext >&5
|
|
9222 rm -fr conftest*
|
|
9223 ac_cv_func_getpgrp_void=no
|
|
9224 fi
|
|
9225 rm -fr conftest*
|
|
9226
|
|
9227
|
|
9228 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
9229 if test $ac_cv_func_getpgrp_void = yes; then
|
|
9230 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9231 Defining GETPGRP_VOID
|
|
9232 EOF
|
|
9233 cat >> confdefs.h <<\EOF
|
|
9234 #define GETPGRP_VOID 1
|
|
9235 EOF
|
|
9236 }
|
|
9237
|
|
9238 fi
|
|
9239
|
|
9240
|
149
|
9241 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
308
|
9242 echo "configure:9243: checking for working mmap" >&5
|
155
|
9243 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
9244 cat > conftest.$ac_ext <<EOF
|
308
|
9245 #line 9246 "configure"
|
153
|
9246 #include "confdefs.h"
|
|
9247 #include <stdio.h>
|
|
9248 #include <unistd.h>
|
149
|
9249 #include <fcntl.h>
|
|
9250 #include <sys/mman.h>
|
|
9251
|
153
|
9252 #ifndef MAP_VARIABLE
|
|
9253 #define MAP_VARIABLE 0
|
0
|
9254 #endif
|
149
|
9255
|
153
|
9256 #ifndef MAP_FAILED
|
|
9257 #define MAP_FAILED -1
|
|
9258 #endif
|
|
9259
|
|
9260 int main (int argc, char *argv[])
|
0
|
9261 {
|
153
|
9262 int fd = -1;
|
|
9263 caddr_t p;
|
|
9264 #ifndef MAP_ANONYMOUS
|
|
9265 fd = open ("/dev/zero", O_RDWR);
|
|
9266 if (fd < 0)
|
|
9267 return 1;
|
|
9268 #define MAP_ANONYMOUS 0
|
|
9269 #endif
|
|
9270 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
9271 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
9272 fd, 0) != (void *) MAP_FAILED)
|
|
9273 return 0;
|
|
9274 perror ("conftest: mmap failed");
|
|
9275 return 1;
|
|
9276 }
|
|
9277 EOF
|
308
|
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
9279 then
|
153
|
9280 have_mmap=yes
|
149
|
9281 else
|
306
|
9282 conftest_rc="$?"
|
149
|
9283 echo "configure: failed program was:" >&5
|
|
9284 cat conftest.$ac_ext >&5
|
|
9285 rm -fr conftest*
|
153
|
9286 have_mmap=no
|
149
|
9287 fi
|
155
|
9288 rm -fr conftest* ;;
|
|
9289 esac
|
153
|
9290 echo "$ac_t""$have_mmap" 1>&6
|
|
9291 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9292 Defining HAVE_MMAP
|
|
9293 EOF
|
|
9294 cat >> confdefs.h <<\EOF
|
|
9295 #define HAVE_MMAP 1
|
|
9296 EOF
|
|
9297 }
|
|
9298
|
153
|
9299
|
|
9300 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
9301 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
|
149
|
9302 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9303 Defining REL_ALLOC
|
|
9304 EOF
|
|
9305 cat >> confdefs.h <<\EOF
|
|
9306 #define REL_ALLOC 1
|
|
9307 EOF
|
|
9308 }
|
|
9309
|
|
9310
|
175
|
9311 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
9312 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
308
|
9313 echo "configure:9314: checking for termios.h" >&5
|
|
9314
|
|
9315 cat > conftest.$ac_ext <<EOF
|
|
9316 #line 9317 "configure"
|
175
|
9317 #include "confdefs.h"
|
|
9318 #include <termios.h>
|
|
9319 EOF
|
|
9320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9321 { (eval echo configure:9322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
175
|
9322 ac_err=`grep -v '^ *+' conftest.out`
|
|
9323 if test -z "$ac_err"; then
|
|
9324 rm -rf conftest*
|
|
9325 eval "ac_cv_header_$ac_safe=yes"
|
|
9326 else
|
|
9327 echo "$ac_err" >&5
|
|
9328 echo "configure: failed program was:" >&5
|
|
9329 cat conftest.$ac_ext >&5
|
|
9330 rm -rf conftest*
|
|
9331 eval "ac_cv_header_$ac_safe=no"
|
|
9332 fi
|
|
9333 rm -f conftest*
|
|
9334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9335 echo "$ac_t""yes" 1>&6
|
|
9336 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9337 Defining HAVE_TERMIOS
|
|
9338 EOF
|
|
9339 cat >> confdefs.h <<\EOF
|
|
9340 #define HAVE_TERMIOS 1
|
|
9341 EOF
|
|
9342 }
|
|
9343
|
|
9344 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9345 Defining SIGNALS_VIA_CHARACTERS
|
|
9346 EOF
|
|
9347 cat >> confdefs.h <<\EOF
|
|
9348 #define SIGNALS_VIA_CHARACTERS 1
|
|
9349 EOF
|
|
9350 }
|
|
9351
|
|
9352 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9353 Defining NO_TERMIO
|
|
9354 EOF
|
|
9355 cat >> confdefs.h <<\EOF
|
|
9356 #define NO_TERMIO 1
|
|
9357 EOF
|
|
9358 }
|
|
9359
|
|
9360 else
|
|
9361 echo "$ac_t""no" 1>&6
|
|
9362 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
9363 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
308
|
9364 echo "configure:9365: checking for termio.h" >&5
|
|
9365
|
|
9366 cat > conftest.$ac_ext <<EOF
|
|
9367 #line 9368 "configure"
|
175
|
9368 #include "confdefs.h"
|
|
9369 #include <termio.h>
|
|
9370 EOF
|
|
9371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9372 { (eval echo configure:9373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
175
|
9373 ac_err=`grep -v '^ *+' conftest.out`
|
|
9374 if test -z "$ac_err"; then
|
|
9375 rm -rf conftest*
|
|
9376 eval "ac_cv_header_$ac_safe=yes"
|
|
9377 else
|
|
9378 echo "$ac_err" >&5
|
|
9379 echo "configure: failed program was:" >&5
|
|
9380 cat conftest.$ac_ext >&5
|
|
9381 rm -rf conftest*
|
|
9382 eval "ac_cv_header_$ac_safe=no"
|
|
9383 fi
|
|
9384 rm -f conftest*
|
|
9385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9386 echo "$ac_t""yes" 1>&6
|
|
9387 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9388 Defining HAVE_TERMIO
|
|
9389 EOF
|
|
9390 cat >> confdefs.h <<\EOF
|
|
9391 #define HAVE_TERMIO 1
|
|
9392 EOF
|
|
9393 }
|
|
9394
|
|
9395 else
|
|
9396 echo "$ac_t""no" 1>&6
|
|
9397 fi
|
|
9398
|
|
9399 fi
|
|
9400
|
|
9401
|
|
9402
|
149
|
9403 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
308
|
9404 echo "configure:9405: checking for socket" >&5
|
|
9405
|
|
9406 cat > conftest.$ac_ext <<EOF
|
|
9407 #line 9408 "configure"
|
149
|
9408 #include "confdefs.h"
|
|
9409 /* System header to define __stub macros and hopefully few prototypes,
|
|
9410 which can conflict with char socket(); below. */
|
|
9411 #include <assert.h>
|
|
9412 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9413 /* We use char because int might match the return type of a gcc2
|
|
9414 builtin and then its argument prototype would still apply. */
|
|
9415 char socket();
|
|
9416
|
|
9417 int main() {
|
|
9418
|
0
|
9419 /* The GNU C library defines this for functions which it implements
|
|
9420 to always fail with ENOSYS. Some functions are actually named
|
|
9421 something starting with __ and the normal name is an alias. */
|
|
9422 #if defined (__stub_socket) || defined (__stub___socket)
|
|
9423 choke me
|
|
9424 #else
|
149
|
9425 socket();
|
0
|
9426 #endif
|
149
|
9427
|
0
|
9428 ; return 0; }
|
|
9429 EOF
|
308
|
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
9431 rm -rf conftest*
|
|
9432 eval "ac_cv_func_socket=yes"
|
|
9433 else
|
|
9434 echo "configure: failed program was:" >&5
|
|
9435 cat conftest.$ac_ext >&5
|
|
9436 rm -rf conftest*
|
|
9437 eval "ac_cv_func_socket=no"
|
|
9438 fi
|
|
9439 rm -f conftest*
|
|
9440
|
|
9441 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
9442 echo "$ac_t""yes" 1>&6
|
|
9443 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
9444 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
308
|
9445 echo "configure:9446: checking for netinet/in.h" >&5
|
|
9446
|
|
9447 cat > conftest.$ac_ext <<EOF
|
|
9448 #line 9449 "configure"
|
0
|
9449 #include "confdefs.h"
|
|
9450 #include <netinet/in.h>
|
|
9451 EOF
|
149
|
9452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9453 { (eval echo configure:9454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9454 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9455 if test -z "$ac_err"; then
|
149
|
9456 rm -rf conftest*
|
|
9457 eval "ac_cv_header_$ac_safe=yes"
|
|
9458 else
|
|
9459 echo "$ac_err" >&5
|
|
9460 echo "configure: failed program was:" >&5
|
|
9461 cat conftest.$ac_ext >&5
|
|
9462 rm -rf conftest*
|
|
9463 eval "ac_cv_header_$ac_safe=no"
|
|
9464 fi
|
|
9465 rm -f conftest*
|
|
9466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9467 echo "$ac_t""yes" 1>&6
|
|
9468 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
9469 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
308
|
9470 echo "configure:9471: checking for arpa/inet.h" >&5
|
|
9471
|
|
9472 cat > conftest.$ac_ext <<EOF
|
|
9473 #line 9474 "configure"
|
0
|
9474 #include "confdefs.h"
|
|
9475 #include <arpa/inet.h>
|
|
9476 EOF
|
149
|
9477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9478 { (eval echo configure:9479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9479 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9480 if test -z "$ac_err"; then
|
149
|
9481 rm -rf conftest*
|
|
9482 eval "ac_cv_header_$ac_safe=yes"
|
|
9483 else
|
|
9484 echo "$ac_err" >&5
|
|
9485 echo "configure: failed program was:" >&5
|
|
9486 cat conftest.$ac_ext >&5
|
|
9487 rm -rf conftest*
|
|
9488 eval "ac_cv_header_$ac_safe=no"
|
|
9489 fi
|
|
9490 rm -f conftest*
|
|
9491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9492 echo "$ac_t""yes" 1>&6
|
0
|
9493
|
149
|
9494 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9495 Defining HAVE_SOCKETS
|
|
9496 EOF
|
|
9497 cat >> confdefs.h <<\EOF
|
|
9498 #define HAVE_SOCKETS 1
|
|
9499 EOF
|
|
9500 }
|
|
9501
|
|
9502 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
308
|
9503 echo "configure:9504: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
9504 cat > conftest.$ac_ext <<EOF
|
308
|
9505 #line 9506 "configure"
|
149
|
9506 #include "confdefs.h"
|
|
9507
|
0
|
9508 #include <sys/types.h>
|
149
|
9509 #include <sys/socket.h>
|
|
9510 #include <sys/un.h>
|
|
9511
|
|
9512 int main() {
|
|
9513 static struct sockaddr_un x; x.sun_len = 1;
|
|
9514 ; return 0; }
|
|
9515 EOF
|
308
|
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
9517 rm -rf conftest*
|
|
9518 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9519 Defining HAVE_SOCKADDR_SUN_LEN
|
|
9520 EOF
|
|
9521 cat >> confdefs.h <<\EOF
|
|
9522 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
9523 EOF
|
|
9524 }
|
|
9525
|
|
9526 else
|
|
9527 echo "configure: failed program was:" >&5
|
|
9528 cat conftest.$ac_ext >&5
|
|
9529 rm -rf conftest*
|
|
9530 echo "$ac_t""no" 1>&6
|
|
9531 fi
|
|
9532 rm -f conftest*
|
259
|
9533 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
308
|
9534 echo "configure:9535: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
9535 cat > conftest.$ac_ext <<EOF
|
308
|
9536 #line 9537 "configure"
|
284
|
9537 #include "confdefs.h"
|
|
9538
|
|
9539 #include <sys/types.h>
|
259
|
9540 #include <netinet/in.h>
|
|
9541
|
|
9542 int main() {
|
|
9543 static struct ip_mreq x;
|
|
9544 ; return 0; }
|
|
9545 EOF
|
308
|
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
259
|
9547 rm -rf conftest*
|
|
9548 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9549 Defining HAVE_MULTICAST
|
|
9550 EOF
|
|
9551 cat >> confdefs.h <<\EOF
|
|
9552 #define HAVE_MULTICAST 1
|
|
9553 EOF
|
|
9554 }
|
|
9555
|
|
9556 else
|
|
9557 echo "configure: failed program was:" >&5
|
|
9558 cat conftest.$ac_ext >&5
|
|
9559 rm -rf conftest*
|
|
9560 echo "$ac_t""no" 1>&6
|
|
9561 fi
|
|
9562 rm -f conftest*
|
149
|
9563 else
|
|
9564 echo "$ac_t""no" 1>&6
|
|
9565 fi
|
|
9566
|
|
9567 else
|
|
9568 echo "$ac_t""no" 1>&6
|
|
9569 fi
|
|
9570
|
|
9571 else
|
|
9572 echo "$ac_t""no" 1>&6
|
|
9573 fi
|
|
9574
|
|
9575
|
|
9576 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
308
|
9577 echo "configure:9578: checking for msgget" >&5
|
|
9578
|
|
9579 cat > conftest.$ac_ext <<EOF
|
|
9580 #line 9581 "configure"
|
149
|
9581 #include "confdefs.h"
|
|
9582 /* System header to define __stub macros and hopefully few prototypes,
|
|
9583 which can conflict with char msgget(); below. */
|
|
9584 #include <assert.h>
|
|
9585 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9586 /* We use char because int might match the return type of a gcc2
|
|
9587 builtin and then its argument prototype would still apply. */
|
|
9588 char msgget();
|
|
9589
|
|
9590 int main() {
|
|
9591
|
0
|
9592 /* The GNU C library defines this for functions which it implements
|
|
9593 to always fail with ENOSYS. Some functions are actually named
|
|
9594 something starting with __ and the normal name is an alias. */
|
|
9595 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
9596 choke me
|
|
9597 #else
|
149
|
9598 msgget();
|
0
|
9599 #endif
|
149
|
9600
|
0
|
9601 ; return 0; }
|
|
9602 EOF
|
308
|
9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
9604 rm -rf conftest*
|
|
9605 eval "ac_cv_func_msgget=yes"
|
|
9606 else
|
|
9607 echo "configure: failed program was:" >&5
|
|
9608 cat conftest.$ac_ext >&5
|
|
9609 rm -rf conftest*
|
|
9610 eval "ac_cv_func_msgget=no"
|
|
9611 fi
|
|
9612 rm -f conftest*
|
|
9613
|
|
9614 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
9615 echo "$ac_t""yes" 1>&6
|
|
9616 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
9617 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
308
|
9618 echo "configure:9619: checking for sys/ipc.h" >&5
|
|
9619
|
|
9620 cat > conftest.$ac_ext <<EOF
|
|
9621 #line 9622 "configure"
|
0
|
9622 #include "confdefs.h"
|
|
9623 #include <sys/ipc.h>
|
|
9624 EOF
|
149
|
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9627 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9628 if test -z "$ac_err"; then
|
149
|
9629 rm -rf conftest*
|
|
9630 eval "ac_cv_header_$ac_safe=yes"
|
|
9631 else
|
|
9632 echo "$ac_err" >&5
|
|
9633 echo "configure: failed program was:" >&5
|
|
9634 cat conftest.$ac_ext >&5
|
|
9635 rm -rf conftest*
|
|
9636 eval "ac_cv_header_$ac_safe=no"
|
|
9637 fi
|
|
9638 rm -f conftest*
|
|
9639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9640 echo "$ac_t""yes" 1>&6
|
|
9641 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
9642 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
308
|
9643 echo "configure:9644: checking for sys/msg.h" >&5
|
|
9644
|
|
9645 cat > conftest.$ac_ext <<EOF
|
|
9646 #line 9647 "configure"
|
0
|
9647 #include "confdefs.h"
|
|
9648 #include <sys/msg.h>
|
|
9649 EOF
|
149
|
9650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9651 { (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9652 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9653 if test -z "$ac_err"; then
|
149
|
9654 rm -rf conftest*
|
|
9655 eval "ac_cv_header_$ac_safe=yes"
|
|
9656 else
|
|
9657 echo "$ac_err" >&5
|
|
9658 echo "configure: failed program was:" >&5
|
|
9659 cat conftest.$ac_ext >&5
|
|
9660 rm -rf conftest*
|
|
9661 eval "ac_cv_header_$ac_safe=no"
|
|
9662 fi
|
|
9663 rm -f conftest*
|
|
9664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9665 echo "$ac_t""yes" 1>&6
|
|
9666 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9667 Defining HAVE_SYSVIPC
|
|
9668 EOF
|
|
9669 cat >> confdefs.h <<\EOF
|
|
9670 #define HAVE_SYSVIPC 1
|
|
9671 EOF
|
|
9672 }
|
|
9673
|
|
9674 else
|
|
9675 echo "$ac_t""no" 1>&6
|
|
9676 fi
|
|
9677
|
|
9678 else
|
|
9679 echo "$ac_t""no" 1>&6
|
|
9680 fi
|
|
9681
|
|
9682 else
|
|
9683 echo "$ac_t""no" 1>&6
|
|
9684 fi
|
|
9685
|
|
9686
|
|
9687 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
9688 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
308
|
9689 echo "configure:9690: checking for dirent.h" >&5
|
|
9690
|
|
9691 cat > conftest.$ac_ext <<EOF
|
|
9692 #line 9693 "configure"
|
0
|
9693 #include "confdefs.h"
|
|
9694 #include <dirent.h>
|
|
9695 EOF
|
149
|
9696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9697 { (eval echo configure:9698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9698 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9699 if test -z "$ac_err"; then
|
|
9700 rm -rf conftest*
|
149
|
9701 eval "ac_cv_header_$ac_safe=yes"
|
|
9702 else
|
|
9703 echo "$ac_err" >&5
|
|
9704 echo "configure: failed program was:" >&5
|
|
9705 cat conftest.$ac_ext >&5
|
|
9706 rm -rf conftest*
|
|
9707 eval "ac_cv_header_$ac_safe=no"
|
|
9708 fi
|
|
9709 rm -f conftest*
|
|
9710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9711 echo "$ac_t""yes" 1>&6
|
|
9712 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9713 Defining SYSV_SYSTEM_DIR
|
|
9714 EOF
|
|
9715 cat >> confdefs.h <<\EOF
|
|
9716 #define SYSV_SYSTEM_DIR 1
|
|
9717 EOF
|
|
9718 }
|
|
9719
|
|
9720 else
|
|
9721 echo "$ac_t""no" 1>&6
|
|
9722 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
9723 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
308
|
9724 echo "configure:9725: checking for sys/dir.h" >&5
|
|
9725
|
|
9726 cat > conftest.$ac_ext <<EOF
|
|
9727 #line 9728 "configure"
|
0
|
9728 #include "confdefs.h"
|
|
9729 #include <sys/dir.h>
|
|
9730 EOF
|
149
|
9731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9732 { (eval echo configure:9733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9733 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9734 if test -z "$ac_err"; then
|
149
|
9735 rm -rf conftest*
|
|
9736 eval "ac_cv_header_$ac_safe=yes"
|
|
9737 else
|
|
9738 echo "$ac_err" >&5
|
|
9739 echo "configure: failed program was:" >&5
|
|
9740 cat conftest.$ac_ext >&5
|
|
9741 rm -rf conftest*
|
|
9742 eval "ac_cv_header_$ac_safe=no"
|
|
9743 fi
|
|
9744 rm -f conftest*
|
|
9745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9746 echo "$ac_t""yes" 1>&6
|
0
|
9747 :
|
|
9748 else
|
149
|
9749 echo "$ac_t""no" 1>&6
|
|
9750 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9751 Defining NONSYSTEM_DIR_LIBRARY
|
|
9752 EOF
|
|
9753 cat >> confdefs.h <<\EOF
|
|
9754 #define NONSYSTEM_DIR_LIBRARY 1
|
|
9755 EOF
|
|
9756 }
|
|
9757
|
|
9758 fi
|
|
9759
|
|
9760 fi
|
|
9761
|
|
9762
|
|
9763 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
9764 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
308
|
9765 echo "configure:9766: checking for nlist.h" >&5
|
|
9766
|
|
9767 cat > conftest.$ac_ext <<EOF
|
|
9768 #line 9769 "configure"
|
0
|
9769 #include "confdefs.h"
|
|
9770 #include <nlist.h>
|
|
9771 EOF
|
149
|
9772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9773 { (eval echo configure:9774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9774 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
9775 if test -z "$ac_err"; then
|
|
9776 rm -rf conftest*
|
149
|
9777 eval "ac_cv_header_$ac_safe=yes"
|
|
9778 else
|
|
9779 echo "$ac_err" >&5
|
|
9780 echo "configure: failed program was:" >&5
|
|
9781 cat conftest.$ac_ext >&5
|
|
9782 rm -rf conftest*
|
|
9783 eval "ac_cv_header_$ac_safe=no"
|
|
9784 fi
|
|
9785 rm -f conftest*
|
|
9786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9787 echo "$ac_t""yes" 1>&6
|
|
9788 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9789 Defining NLIST_STRUCT
|
|
9790 EOF
|
|
9791 cat >> confdefs.h <<\EOF
|
|
9792 #define NLIST_STRUCT 1
|
|
9793 EOF
|
|
9794 }
|
|
9795
|
|
9796 else
|
|
9797 echo "$ac_t""no" 1>&6
|
|
9798 fi
|
|
9799
|
|
9800
|
0
|
9801
|
149
|
9802 echo "checking "for sound support"" 1>&6
|
308
|
9803 echo "configure:9804: checking "for sound support"" >&5
|
149
|
9804 case "$with_sound" in
|
|
9805 native | both ) with_native_sound=yes;;
|
|
9806 nas | no ) with_native_sound=no;;
|
|
9807 esac
|
155
|
9808 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
9809
|
149
|
9810 if test "$with_native_sound" != "no"; then
|
155
|
9811 if test -n "$native_sound_lib"; then
|
|
9812 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
9813 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
308
|
9814 echo "configure:9815: checking for multimedia/audio_device.h" >&5
|
|
9815
|
|
9816 cat > conftest.$ac_ext <<EOF
|
|
9817 #line 9818 "configure"
|
155
|
9818 #include "confdefs.h"
|
|
9819 #include <multimedia/audio_device.h>
|
|
9820 EOF
|
|
9821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9822 { (eval echo configure:9823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
155
|
9823 ac_err=`grep -v '^ *+' conftest.out`
|
|
9824 if test -z "$ac_err"; then
|
|
9825 rm -rf conftest*
|
|
9826 eval "ac_cv_header_$ac_safe=yes"
|
|
9827 else
|
|
9828 echo "$ac_err" >&5
|
|
9829 echo "configure: failed program was:" >&5
|
|
9830 cat conftest.$ac_ext >&5
|
|
9831 rm -rf conftest*
|
|
9832 eval "ac_cv_header_$ac_safe=no"
|
|
9833 fi
|
|
9834 rm -f conftest*
|
|
9835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9836 echo "$ac_t""yes" 1>&6
|
|
9837 sound_found=yes sound_cflags=""
|
|
9838 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
9839 echo " xemacs will be linked with \"sunplay.o\""
|
|
9840 fi
|
|
9841 else
|
|
9842 echo "$ac_t""no" 1>&6
|
|
9843 fi
|
|
9844
|
|
9845 fi
|
|
9846
|
|
9847 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
9848 sound_found=yes
|
151
|
9849 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
9850 echo " xemacs will be linked with \"sunplay.o\""
|
|
9851 fi
|
149
|
9852 if test -d "/usr/demo/SOUND/include"
|
|
9853 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
9854 else sound_cflags="-I/usr/demo/SOUND"
|
|
9855 fi
|
|
9856 if test -z "$native_sound_lib" ; then
|
|
9857 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
9858 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
9859 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
9860 fi
|
|
9861 fi
|
155
|
9862 fi
|
|
9863
|
|
9864 if test -z "$sound_found"; then
|
|
9865 case "$canonical" in
|
149
|
9866 *-sgi-* )
|
155
|
9867 if test -z "$native_sound_lib"; then
|
|
9868
|
149
|
9869 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
308
|
9870 echo "configure:9871: checking for ALopenport in -laudio" >&5
|
149
|
9871 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
9872
|
|
9873 xe_check_libs=" -laudio "
|
|
9874 cat > conftest.$ac_ext <<EOF
|
308
|
9875 #line 9876 "configure"
|
149
|
9876 #include "confdefs.h"
|
|
9877 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9878 /* We use char because int might match the return type of a gcc2
|
|
9879 builtin and then its argument prototype would still apply. */
|
|
9880 char ALopenport();
|
|
9881
|
|
9882 int main() {
|
|
9883 ALopenport()
|
|
9884 ; return 0; }
|
|
9885 EOF
|
308
|
9886 if { (eval echo configure:9887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
9887 rm -rf conftest*
|
|
9888 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9889 else
|
|
9890 echo "configure: failed program was:" >&5
|
|
9891 cat conftest.$ac_ext >&5
|
|
9892 rm -rf conftest*
|
|
9893 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9894 fi
|
|
9895 rm -f conftest*
|
|
9896 xe_check_libs=""
|
|
9897
|
151
|
9898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9899 echo "$ac_t""yes" 1>&6
|
|
9900 native_sound_lib="-laudio"
|
|
9901 else
|
|
9902 echo "$ac_t""no" 1>&6
|
|
9903 fi
|
|
9904
|
|
9905
|
155
|
9906 fi
|
|
9907 if test -n "$native_sound_lib"; then
|
|
9908 sound_found=yes sound_cflags=""
|
151
|
9909 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
9910 echo " xemacs will be linked with \"sgiplay.o\""
|
|
9911 fi
|
149
|
9912 fi ;;
|
|
9913 hppa*-hp-hpux* )
|
155
|
9914 if test -z "$native_sound_lib"; then
|
|
9915
|
149
|
9916 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
308
|
9917 echo "configure:9918: checking for AOpenAudio in -lAlib" >&5
|
149
|
9918 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
9919
|
|
9920 xe_check_libs=" -lAlib "
|
|
9921 cat > conftest.$ac_ext <<EOF
|
308
|
9922 #line 9923 "configure"
|
149
|
9923 #include "confdefs.h"
|
|
9924 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9925 /* We use char because int might match the return type of a gcc2
|
|
9926 builtin and then its argument prototype would still apply. */
|
|
9927 char AOpenAudio();
|
|
9928
|
|
9929 int main() {
|
|
9930 AOpenAudio()
|
|
9931 ; return 0; }
|
|
9932 EOF
|
308
|
9933 if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
9934 rm -rf conftest*
|
|
9935 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9936 else
|
|
9937 echo "configure: failed program was:" >&5
|
|
9938 cat conftest.$ac_ext >&5
|
|
9939 rm -rf conftest*
|
|
9940 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9941 fi
|
|
9942 rm -f conftest*
|
|
9943 xe_check_libs=""
|
|
9944
|
151
|
9945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9946 echo "$ac_t""yes" 1>&6
|
|
9947 native_sound_lib="-lAlib"
|
|
9948 else
|
|
9949 echo "$ac_t""no" 1>&6
|
|
9950 fi
|
|
9951
|
|
9952
|
155
|
9953 fi
|
|
9954 if test -n "$native_sound_lib"; then
|
|
9955 sound_found=yes
|
151
|
9956 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
9957 echo " xemacs will be linked with \"hpplay.o\""
|
|
9958 fi
|
169
|
9959 if test "$GCC" = "yes" # Kludge city
|
149
|
9960 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
9961 else sound_cflags="+e -I/usr/audio/examples"
|
|
9962 fi
|
|
9963 fi ;;
|
0
|
9964 esac
|
|
9965 fi
|
149
|
9966
|
155
|
9967 if test -z "$sound_found"; then
|
149
|
9968 for dir in "machine" "sys" "linux"; do
|
|
9969 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
9970 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
308
|
9971 echo "configure:9972: checking for ${dir}/soundcard.h" >&5
|
|
9972
|
|
9973 cat > conftest.$ac_ext <<EOF
|
|
9974 #line 9975 "configure"
|
149
|
9975 #include "confdefs.h"
|
|
9976 #include <${dir}/soundcard.h>
|
|
9977 EOF
|
|
9978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
9979 { (eval echo configure:9980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
9980 ac_err=`grep -v '^ *+' conftest.out`
|
|
9981 if test -z "$ac_err"; then
|
|
9982 rm -rf conftest*
|
|
9983 eval "ac_cv_header_$ac_safe=yes"
|
|
9984 else
|
|
9985 echo "$ac_err" >&5
|
|
9986 echo "configure: failed program was:" >&5
|
|
9987 cat conftest.$ac_ext >&5
|
|
9988 rm -rf conftest*
|
|
9989 eval "ac_cv_header_$ac_safe=no"
|
|
9990 fi
|
|
9991 rm -f conftest*
|
|
9992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9993 echo "$ac_t""yes" 1>&6
|
|
9994 sound_found=yes
|
151
|
9995 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
9996 echo " xemacs will be linked with \"linuxplay.o\""
|
|
9997 fi
|
149
|
9998 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9999 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h"
|
|
10000 EOF
|
|
10001 cat >> confdefs.h <<EOF
|
|
10002 #define SOUNDCARD_H_PATH "${dir}/soundcard.h"
|
|
10003 EOF
|
|
10004 }
|
|
10005
|
|
10006 break
|
|
10007 else
|
|
10008 echo "$ac_t""no" 1>&6
|
|
10009 fi
|
|
10010
|
|
10011 done
|
100
|
10012 fi
|
149
|
10013
|
|
10014 test "$sound_found" = "yes" && with_native_sound=yes
|
|
10015 fi
|
|
10016
|
|
10017 if test -z "$with_sound"; then
|
|
10018 if test "$with_native_sound" = "yes" -o -n "$native_sound_lib"; then
|
|
10019 with_sound=native
|
100
|
10020 fi
|
|
10021 fi
|
|
10022
|
149
|
10023 if test "$with_native_sound" = "yes"; then
|
|
10024 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10025 Defining HAVE_NATIVE_SOUND
|
|
10026 EOF
|
|
10027 cat >> confdefs.h <<\EOF
|
|
10028 #define HAVE_NATIVE_SOUND 1
|
|
10029 EOF
|
|
10030 }
|
|
10031
|
151
|
10032 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
|
10033 fi
|
|
10034
|
|
10035 case "$with_sound" in both | nas )
|
|
10036 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10037 Defining HAVE_NAS_SOUND
|
|
10038 EOF
|
|
10039 cat >> confdefs.h <<\EOF
|
|
10040 #define HAVE_NAS_SOUND 1
|
|
10041 EOF
|
|
10042 }
|
|
10043
|
151
|
10044 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
|
10045 echo " xemacs will be linked with \"nas.o\""
|
|
10046 fi
|
201
|
10047 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
149
|
10048 cat > conftest.$ac_ext <<EOF
|
308
|
10049 #line 10050 "configure"
|
149
|
10050 #include "confdefs.h"
|
|
10051 #include <audio/Xtutil.h>
|
|
10052 EOF
|
|
10053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10054 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
10055 :
|
|
10056 else
|
|
10057 rm -rf conftest*
|
|
10058 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10059 Defining NAS_NO_ERROR_JUMP
|
|
10060 EOF
|
|
10061 cat >> confdefs.h <<\EOF
|
|
10062 #define NAS_NO_ERROR_JUMP 1
|
|
10063 EOF
|
|
10064 }
|
|
10065
|
|
10066 fi
|
|
10067 rm -f conftest*
|
|
10068
|
|
10069 esac
|
|
10070
|
|
10071
|
|
10072 test -z "$with_tty" && with_tty=yes
|
|
10073
|
|
10074 if test "$with_tty" = "yes" ; then
|
151
|
10075 echo "checking for TTY-related features" 1>&6
|
308
|
10076 echo "configure:10077: checking for TTY-related features" >&5
|
149
|
10077 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10078 Defining HAVE_TTY
|
|
10079 EOF
|
|
10080 cat >> confdefs.h <<\EOF
|
|
10081 #define HAVE_TTY 1
|
|
10082 EOF
|
|
10083 }
|
|
10084
|
151
|
10085 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
|
|
10086 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\""
|
|
10087 fi
|
149
|
10088
|
|
10089 if test -z "$with_ncurses"; then
|
70
|
10090
|
151
|
10091 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
308
|
10092 echo "configure:10093: checking for tgetent in -lncurses" >&5
|
151
|
10093 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
10094
|
|
10095 xe_check_libs=" -lncurses "
|
|
10096 cat > conftest.$ac_ext <<EOF
|
308
|
10097 #line 10098 "configure"
|
149
|
10098 #include "confdefs.h"
|
|
10099 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10100 /* We use char because int might match the return type of a gcc2
|
|
10101 builtin and then its argument prototype would still apply. */
|
151
|
10102 char tgetent();
|
149
|
10103
|
|
10104 int main() {
|
151
|
10105 tgetent()
|
149
|
10106 ; return 0; }
|
|
10107 EOF
|
308
|
10108 if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10109 rm -rf conftest*
|
|
10110 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10111 else
|
|
10112 echo "configure: failed program was:" >&5
|
|
10113 cat conftest.$ac_ext >&5
|
|
10114 rm -rf conftest*
|
|
10115 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10116 fi
|
|
10117 rm -f conftest*
|
|
10118 xe_check_libs=""
|
|
10119
|
151
|
10120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10121 echo "$ac_t""yes" 1>&6
|
|
10122 with_ncurses=yes
|
|
10123 else
|
|
10124 echo "$ac_t""no" 1>&6
|
|
10125 with_ncurses=no
|
|
10126 fi
|
|
10127
|
|
10128
|
|
10129 fi
|
|
10130 if test "$with_ncurses" = "yes"; then
|
|
10131 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10132 Defining HAVE_NCURSES
|
|
10133 EOF
|
|
10134 cat >> confdefs.h <<\EOF
|
|
10135 #define HAVE_NCURSES 1
|
|
10136 EOF
|
|
10137 }
|
|
10138
|
|
10139 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
10140 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
308
|
10141 echo "configure:10142: checking for ncurses/curses.h" >&5
|
|
10142
|
|
10143 cat > conftest.$ac_ext <<EOF
|
|
10144 #line 10145 "configure"
|
149
|
10145 #include "confdefs.h"
|
|
10146 #include <ncurses/curses.h>
|
|
10147 EOF
|
|
10148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
10149 { (eval echo configure:10150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
10150 ac_err=`grep -v '^ *+' conftest.out`
|
|
10151 if test -z "$ac_err"; then
|
|
10152 rm -rf conftest*
|
|
10153 eval "ac_cv_header_$ac_safe=yes"
|
|
10154 else
|
|
10155 echo "$ac_err" >&5
|
|
10156 echo "configure: failed program was:" >&5
|
|
10157 cat conftest.$ac_ext >&5
|
|
10158 rm -rf conftest*
|
|
10159 eval "ac_cv_header_$ac_safe=no"
|
|
10160 fi
|
|
10161 rm -f conftest*
|
|
10162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10163 echo "$ac_t""yes" 1>&6
|
|
10164 curses_h_path=ncurses/curses.h
|
|
10165 else
|
|
10166 echo "$ac_t""no" 1>&6
|
|
10167 fi
|
|
10168
|
|
10169 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
10170 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
308
|
10171 echo "configure:10172: checking for ncurses/term.h" >&5
|
|
10172
|
|
10173 cat > conftest.$ac_ext <<EOF
|
|
10174 #line 10175 "configure"
|
0
|
10175 #include "confdefs.h"
|
|
10176 #include <ncurses/term.h>
|
|
10177 EOF
|
149
|
10178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
10179 { (eval echo configure:10180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
10180 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
10181 if test -z "$ac_err"; then
|
|
10182 rm -rf conftest*
|
149
|
10183 eval "ac_cv_header_$ac_safe=yes"
|
|
10184 else
|
|
10185 echo "$ac_err" >&5
|
|
10186 echo "configure: failed program was:" >&5
|
|
10187 cat conftest.$ac_ext >&5
|
|
10188 rm -rf conftest*
|
|
10189 eval "ac_cv_header_$ac_safe=no"
|
|
10190 fi
|
|
10191 rm -f conftest*
|
|
10192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10193 echo "$ac_t""yes" 1>&6
|
|
10194 term_h_path=ncurses/term.h
|
|
10195 else
|
|
10196 echo "$ac_t""no" 1>&6
|
|
10197 fi
|
|
10198
|
151
|
10199 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
10200 echo " xemacs will be linked with \"terminfo.o\""
|
|
10201 fi
|
|
10202 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
10203
|
153
|
10204 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
10205 save_c_switch_site="$c_switch_site"
|
|
10206 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
10207 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
10208 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
308
|
10209 echo "configure:10210: checking for ncurses/curses.h" >&5
|
|
10210
|
|
10211 cat > conftest.$ac_ext <<EOF
|
|
10212 #line 10213 "configure"
|
0
|
10213 #include "confdefs.h"
|
|
10214 #include <ncurses/curses.h>
|
|
10215 EOF
|
149
|
10216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
10217 { (eval echo configure:10218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
149
|
10218 ac_err=`grep -v '^ *+' conftest.out`
|
0
|
10219 if test -z "$ac_err"; then
|
|
10220 rm -rf conftest*
|
149
|
10221 eval "ac_cv_header_$ac_safe=yes"
|
|
10222 else
|
|
10223 echo "$ac_err" >&5
|
|
10224 echo "configure: failed program was:" >&5
|
|
10225 cat conftest.$ac_ext >&5
|
|
10226 rm -rf conftest*
|
|
10227 eval "ac_cv_header_$ac_safe=no"
|
|
10228 fi
|
|
10229 rm -f conftest*
|
|
10230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10231 echo "$ac_t""yes" 1>&6
|
|
10232 curses_h_path=ncurses/curses.h
|
|
10233 else
|
|
10234 echo "$ac_t""no" 1>&6
|
|
10235 fi
|
|
10236
|
153
|
10237 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
149
|
10238 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2
|
|
10239 else c_switch_site="$save_c_switch_site"
|
|
10240 fi
|
|
10241 fi
|
151
|
10242 else if test "$have_terminfo" = "yes"; then
|
|
10243 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
10244 echo " xemacs will be linked with \"terminfo.o\""
|
|
10245 fi
|
|
10246 if test -n "$libs_termcap"; then
|
|
10247 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
10248 else
|
|
10249 for lib in curses termlib termcap; do
|
|
10250
|
|
10251 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
308
|
10252 echo "configure:10253: checking for tgetent in -l$lib" >&5
|
151
|
10253 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
10254
|
|
10255 xe_check_libs=" -l$lib "
|
|
10256 cat > conftest.$ac_ext <<EOF
|
308
|
10257 #line 10258 "configure"
|
149
|
10258 #include "confdefs.h"
|
|
10259 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10260 /* We use char because int might match the return type of a gcc2
|
|
10261 builtin and then its argument prototype would still apply. */
|
151
|
10262 char tgetent();
|
149
|
10263
|
|
10264 int main() {
|
151
|
10265 tgetent()
|
149
|
10266 ; return 0; }
|
|
10267 EOF
|
308
|
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10269 rm -rf conftest*
|
|
10270 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10271 else
|
|
10272 echo "configure: failed program was:" >&5
|
|
10273 cat conftest.$ac_ext >&5
|
|
10274 rm -rf conftest*
|
|
10275 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10276 fi
|
|
10277 rm -f conftest*
|
|
10278 xe_check_libs=""
|
|
10279
|
151
|
10280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10281 echo "$ac_t""yes" 1>&6
|
|
10282 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
10283 else
|
|
10284 echo "$ac_t""no" 1>&6
|
|
10285 fi
|
|
10286
|
|
10287
|
|
10288 done
|
|
10289 fi
|
|
10290 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
10291 echo " xemacs will be linked with \"tparam.o\""
|
|
10292 fi
|
|
10293 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
10294 if test -n "$libs_termcap"; then
|
|
10295 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
10296 else
|
|
10297
|
|
10298 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
308
|
10299 echo "configure:10300: checking for tgetent in -lcurses" >&5
|
151
|
10300 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
10301
|
|
10302 xe_check_libs=" -lcurses "
|
|
10303 cat > conftest.$ac_ext <<EOF
|
308
|
10304 #line 10305 "configure"
|
149
|
10305 #include "confdefs.h"
|
|
10306 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10307 /* We use char because int might match the return type of a gcc2
|
|
10308 builtin and then its argument prototype would still apply. */
|
151
|
10309 char tgetent();
|
149
|
10310
|
|
10311 int main() {
|
151
|
10312 tgetent()
|
149
|
10313 ; return 0; }
|
|
10314 EOF
|
308
|
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10316 rm -rf conftest*
|
|
10317 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10318 else
|
|
10319 echo "configure: failed program was:" >&5
|
|
10320 cat conftest.$ac_ext >&5
|
|
10321 rm -rf conftest*
|
|
10322 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10323 fi
|
|
10324 rm -f conftest*
|
|
10325 xe_check_libs=""
|
|
10326
|
151
|
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10328 echo "$ac_t""yes" 1>&6
|
|
10329 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
10330 else
|
|
10331 echo "$ac_t""no" 1>&6
|
|
10332 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
308
|
10333 echo "configure:10334: checking for tgetent in -ltermcap" >&5
|
151
|
10334 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
10335
|
|
10336 xe_check_libs=" -ltermcap "
|
|
10337 cat > conftest.$ac_ext <<EOF
|
308
|
10338 #line 10339 "configure"
|
149
|
10339 #include "confdefs.h"
|
|
10340 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10341 /* We use char because int might match the return type of a gcc2
|
|
10342 builtin and then its argument prototype would still apply. */
|
151
|
10343 char tgetent();
|
149
|
10344
|
|
10345 int main() {
|
151
|
10346 tgetent()
|
149
|
10347 ; return 0; }
|
|
10348 EOF
|
308
|
10349 if { (eval echo configure:10350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10350 rm -rf conftest*
|
|
10351 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10352 else
|
|
10353 echo "configure: failed program was:" >&5
|
|
10354 cat conftest.$ac_ext >&5
|
|
10355 rm -rf conftest*
|
|
10356 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10357 fi
|
|
10358 rm -f conftest*
|
|
10359 xe_check_libs=""
|
|
10360
|
151
|
10361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10362 echo "$ac_t""yes" 1>&6
|
|
10363 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
10364 else
|
|
10365 echo "$ac_t""no" 1>&6
|
|
10366 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
10367 echo " xemacs will be linked with \"termcap.o\""
|
|
10368 fi
|
|
10369 fi
|
|
10370
|
|
10371
|
|
10372 fi
|
|
10373
|
|
10374
|
0
|
10375 fi
|
|
10376 fi
|
149
|
10377 fi
|
|
10378 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10379 Defining CURSES_H_PATH = "${curses_h_path-curses.h}"
|
|
10380 EOF
|
|
10381 cat >> confdefs.h <<EOF
|
|
10382 #define CURSES_H_PATH "${curses_h_path-curses.h}"
|
|
10383 EOF
|
|
10384 }
|
|
10385
|
|
10386 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10387 Defining TERM_H_PATH = "${term_h_path-term.h}"
|
|
10388 EOF
|
|
10389 cat >> confdefs.h <<EOF
|
|
10390 #define TERM_H_PATH "${term_h_path-term.h}"
|
|
10391 EOF
|
|
10392 }
|
|
10393
|
155
|
10394
|
|
10395 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
10396 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
308
|
10397 echo "configure:10398: checking for gpm.h" >&5
|
|
10398
|
|
10399 cat > conftest.$ac_ext <<EOF
|
|
10400 #line 10401 "configure"
|
155
|
10401 #include "confdefs.h"
|
|
10402 #include <gpm.h>
|
|
10403 EOF
|
|
10404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
10405 { (eval echo configure:10406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
155
|
10406 ac_err=`grep -v '^ *+' conftest.out`
|
|
10407 if test -z "$ac_err"; then
|
|
10408 rm -rf conftest*
|
|
10409 eval "ac_cv_header_$ac_safe=yes"
|
|
10410 else
|
|
10411 echo "$ac_err" >&5
|
|
10412 echo "configure: failed program was:" >&5
|
|
10413 cat conftest.$ac_ext >&5
|
|
10414 rm -rf conftest*
|
|
10415 eval "ac_cv_header_$ac_safe=no"
|
|
10416 fi
|
|
10417 rm -f conftest*
|
|
10418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10419 echo "$ac_t""yes" 1>&6
|
|
10420 :
|
|
10421 else
|
|
10422 echo "$ac_t""no" 1>&6
|
|
10423 with_gpm=no
|
|
10424 fi
|
|
10425 }
|
|
10426 test -z "$with_gpm" && {
|
|
10427 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
308
|
10428 echo "configure:10429: checking for Gpm_Open in -lgpm" >&5
|
155
|
10429 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
10430
|
|
10431 xe_check_libs=" -lgpm "
|
|
10432 cat > conftest.$ac_ext <<EOF
|
308
|
10433 #line 10434 "configure"
|
155
|
10434 #include "confdefs.h"
|
|
10435 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10436 /* We use char because int might match the return type of a gcc2
|
|
10437 builtin and then its argument prototype would still apply. */
|
|
10438 char Gpm_Open();
|
|
10439
|
|
10440 int main() {
|
|
10441 Gpm_Open()
|
|
10442 ; return 0; }
|
|
10443 EOF
|
308
|
10444 if { (eval echo configure:10445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
155
|
10445 rm -rf conftest*
|
|
10446 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10447 else
|
|
10448 echo "configure: failed program was:" >&5
|
|
10449 cat conftest.$ac_ext >&5
|
|
10450 rm -rf conftest*
|
|
10451 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10452 fi
|
|
10453 rm -f conftest*
|
|
10454 xe_check_libs=""
|
|
10455
|
|
10456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10457 echo "$ac_t""yes" 1>&6
|
|
10458 with_gpm=yes
|
|
10459 else
|
|
10460 echo "$ac_t""no" 1>&6
|
|
10461 with_gpm=no
|
|
10462 fi
|
|
10463
|
|
10464 }
|
|
10465 if test "$with_gpm" = "yes"; then
|
|
10466 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10467 Defining HAVE_GPM
|
|
10468 EOF
|
|
10469 cat >> confdefs.h <<\EOF
|
|
10470 #define HAVE_GPM 1
|
|
10471 EOF
|
|
10472 }
|
|
10473
|
|
10474 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
|
|
10475 echo " xemacs will be linked with \"gpmevent.o\""
|
|
10476 fi
|
|
10477 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
10478 fi
|
|
10479
|
151
|
10480 else for feature in ncurses gpm; do
|
149
|
10481 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
10482 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2
|
|
10483 fi
|
|
10484 eval "with_${feature}=no"
|
|
10485 done
|
151
|
10486 fi
|
163
|
10487 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
|
|
10488 echo " xemacs will be linked with \"event-unixoid.o\""
|
|
10489 fi
|
|
10490
|
149
|
10491
|
|
10492 echo "checking for database support" 1>&6
|
308
|
10493 echo "configure:10494: checking for database support" >&5
|
151
|
10494
|
|
10495 if test "$with_database_gnudbm" != "no"; then
|
265
|
10496 for ac_hdr in ndbm.h
|
|
10497 do
|
|
10498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
10499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
308
|
10500 echo "configure:10501: checking for $ac_hdr" >&5
|
|
10501
|
|
10502 cat > conftest.$ac_ext <<EOF
|
|
10503 #line 10504 "configure"
|
265
|
10504 #include "confdefs.h"
|
|
10505 #include <$ac_hdr>
|
|
10506 EOF
|
|
10507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
10508 { (eval echo configure:10509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
265
|
10509 ac_err=`grep -v '^ *+' conftest.out`
|
|
10510 if test -z "$ac_err"; then
|
|
10511 rm -rf conftest*
|
|
10512 eval "ac_cv_header_$ac_safe=yes"
|
|
10513 else
|
|
10514 echo "$ac_err" >&5
|
|
10515 echo "configure: failed program was:" >&5
|
|
10516 cat conftest.$ac_ext >&5
|
|
10517 rm -rf conftest*
|
|
10518 eval "ac_cv_header_$ac_safe=no"
|
|
10519 fi
|
|
10520 rm -f conftest*
|
|
10521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10522 echo "$ac_t""yes" 1>&6
|
|
10523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
10524 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10525 Defining $ac_tr_hdr
|
|
10526 EOF
|
|
10527 cat >> confdefs.h <<EOF
|
|
10528 #define $ac_tr_hdr 1
|
|
10529 EOF
|
|
10530 }
|
|
10531 have_ndbm_h=yes
|
|
10532 else
|
|
10533 echo "$ac_t""no" 1>&6
|
|
10534 fi
|
|
10535 done
|
|
10536
|
|
10537 if test "$have_ndbm_h" = "yes"; then
|
|
10538
|
149
|
10539 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
308
|
10540 echo "configure:10541: checking for dbm_open in -lgdbm" >&5
|
149
|
10541 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
10542
|
|
10543 xe_check_libs=" -lgdbm "
|
|
10544 cat > conftest.$ac_ext <<EOF
|
308
|
10545 #line 10546 "configure"
|
149
|
10546 #include "confdefs.h"
|
|
10547 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10548 /* We use char because int might match the return type of a gcc2
|
|
10549 builtin and then its argument prototype would still apply. */
|
|
10550 char dbm_open();
|
|
10551
|
|
10552 int main() {
|
|
10553 dbm_open()
|
|
10554 ; return 0; }
|
|
10555 EOF
|
308
|
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10557 rm -rf conftest*
|
|
10558 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10559 else
|
|
10560 echo "configure: failed program was:" >&5
|
|
10561 cat conftest.$ac_ext >&5
|
|
10562 rm -rf conftest*
|
|
10563 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10564 fi
|
|
10565 rm -f conftest*
|
|
10566 xe_check_libs=""
|
|
10567
|
151
|
10568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10569 echo "$ac_t""yes" 1>&6
|
|
10570 with_database_gnudbm=yes have_libgdbm=yes
|
|
10571 else
|
|
10572 echo "$ac_t""no" 1>&6
|
|
10573 fi
|
|
10574
|
|
10575
|
265
|
10576 fi
|
149
|
10577 if test "$with_database_gnudbm" != "yes"; then
|
|
10578 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
308
|
10579 echo "configure:10580: checking for dbm_open" >&5
|
|
10580
|
|
10581 cat > conftest.$ac_ext <<EOF
|
|
10582 #line 10583 "configure"
|
149
|
10583 #include "confdefs.h"
|
|
10584 /* System header to define __stub macros and hopefully few prototypes,
|
|
10585 which can conflict with char dbm_open(); below. */
|
|
10586 #include <assert.h>
|
|
10587 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10588 /* We use char because int might match the return type of a gcc2
|
|
10589 builtin and then its argument prototype would still apply. */
|
|
10590 char dbm_open();
|
|
10591
|
|
10592 int main() {
|
|
10593
|
|
10594 /* The GNU C library defines this for functions which it implements
|
|
10595 to always fail with ENOSYS. Some functions are actually named
|
|
10596 something starting with __ and the normal name is an alias. */
|
|
10597 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
10598 choke me
|
|
10599 #else
|
|
10600 dbm_open();
|
|
10601 #endif
|
|
10602
|
|
10603 ; return 0; }
|
|
10604 EOF
|
308
|
10605 if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10606 rm -rf conftest*
|
|
10607 eval "ac_cv_func_dbm_open=yes"
|
|
10608 else
|
|
10609 echo "configure: failed program was:" >&5
|
|
10610 cat conftest.$ac_ext >&5
|
|
10611 rm -rf conftest*
|
|
10612 eval "ac_cv_func_dbm_open=no"
|
|
10613 fi
|
|
10614 rm -f conftest*
|
|
10615
|
|
10616 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
10617 echo "$ac_t""yes" 1>&6
|
|
10618 with_database_gnudbm=yes
|
|
10619 else
|
|
10620 echo "$ac_t""no" 1>&6
|
|
10621 fi
|
|
10622
|
|
10623 fi
|
151
|
10624 if test "$with_database_gnudbm" = "yes"; then
|
149
|
10625 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10626 Defining HAVE_DBM
|
|
10627 EOF
|
|
10628 cat >> confdefs.h <<\EOF
|
|
10629 #define HAVE_DBM 1
|
|
10630 EOF
|
|
10631 }
|
|
10632
|
151
|
10633 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi
|
149
|
10634 with_database_dbm=no
|
|
10635 else with_database_gnudbm=no
|
|
10636 fi
|
|
10637 fi
|
|
10638
|
151
|
10639 if test "$with_database_dbm" != "no"; then
|
149
|
10640 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
308
|
10641 echo "configure:10642: checking for dbm_open" >&5
|
|
10642
|
|
10643 cat > conftest.$ac_ext <<EOF
|
|
10644 #line 10645 "configure"
|
149
|
10645 #include "confdefs.h"
|
|
10646 /* System header to define __stub macros and hopefully few prototypes,
|
|
10647 which can conflict with char dbm_open(); below. */
|
|
10648 #include <assert.h>
|
|
10649 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10650 /* We use char because int might match the return type of a gcc2
|
|
10651 builtin and then its argument prototype would still apply. */
|
|
10652 char dbm_open();
|
|
10653
|
|
10654 int main() {
|
|
10655
|
|
10656 /* The GNU C library defines this for functions which it implements
|
|
10657 to always fail with ENOSYS. Some functions are actually named
|
|
10658 something starting with __ and the normal name is an alias. */
|
|
10659 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
10660 choke me
|
|
10661 #else
|
|
10662 dbm_open();
|
|
10663 #endif
|
|
10664
|
|
10665 ; return 0; }
|
|
10666 EOF
|
308
|
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10668 rm -rf conftest*
|
|
10669 eval "ac_cv_func_dbm_open=yes"
|
|
10670 else
|
|
10671 echo "configure: failed program was:" >&5
|
|
10672 cat conftest.$ac_ext >&5
|
|
10673 rm -rf conftest*
|
|
10674 eval "ac_cv_func_dbm_open=no"
|
|
10675 fi
|
|
10676 rm -f conftest*
|
|
10677
|
|
10678 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
10679 echo "$ac_t""yes" 1>&6
|
|
10680 with_database_dbm=yes need_libdbm=no
|
|
10681 else
|
|
10682 echo "$ac_t""no" 1>&6
|
|
10683 fi
|
|
10684
|
|
10685 if test "$need_libdbm" != "no"; then
|
|
10686
|
|
10687 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
308
|
10688 echo "configure:10689: checking for dbm_open in -ldbm" >&5
|
149
|
10689 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
10690
|
|
10691 xe_check_libs=" -ldbm "
|
|
10692 cat > conftest.$ac_ext <<EOF
|
308
|
10693 #line 10694 "configure"
|
149
|
10694 #include "confdefs.h"
|
|
10695 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10696 /* We use char because int might match the return type of a gcc2
|
|
10697 builtin and then its argument prototype would still apply. */
|
|
10698 char dbm_open();
|
|
10699
|
|
10700 int main() {
|
|
10701 dbm_open()
|
|
10702 ; return 0; }
|
|
10703 EOF
|
308
|
10704 if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10705 rm -rf conftest*
|
|
10706 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10707 else
|
|
10708 echo "configure: failed program was:" >&5
|
|
10709 cat conftest.$ac_ext >&5
|
|
10710 rm -rf conftest*
|
|
10711 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10712 fi
|
|
10713 rm -f conftest*
|
|
10714 xe_check_libs=""
|
|
10715
|
151
|
10716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10717 echo "$ac_t""yes" 1>&6
|
|
10718 with_database_dbm=yes need_libdbm=yes
|
|
10719 else
|
|
10720 echo "$ac_t""no" 1>&6
|
|
10721 fi
|
|
10722
|
70
|
10723
|
0
|
10724 fi
|
151
|
10725 if test "$with_database_dbm" = "yes"; then
|
149
|
10726 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10727 Defining HAVE_DBM
|
|
10728 EOF
|
|
10729 cat >> confdefs.h <<\EOF
|
|
10730 #define HAVE_DBM 1
|
|
10731 EOF
|
|
10732 }
|
|
10733
|
151
|
10734 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi
|
149
|
10735 else with_database_dbm=no
|
|
10736 fi
|
|
10737 fi
|
|
10738
|
|
10739 if test "$with_database_berkdb" != "no"; then
|
298
|
10740 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
308
|
10741 echo "configure:10742: checking for Berkeley db.h" >&5
|
298
|
10742 for path in "db/db.h" "db.h"; do
|
|
10743 cat > conftest.$ac_ext <<EOF
|
308
|
10744 #line 10745 "configure"
|
149
|
10745 #include "confdefs.h"
|
298
|
10746 #ifdef HAVE_INTTYPES_H
|
|
10747 #define __BIT_TYPES_DEFINED__
|
|
10748 #include <inttypes.h>
|
|
10749 typedef uint8_t u_int8_t;
|
|
10750 typedef uint16_t u_int16_t;
|
|
10751 typedef uint32_t u_int32_t;
|
|
10752 #ifdef WE_DONT_NEED_QUADS
|
|
10753 typedef uint64_t u_int64_t;
|
|
10754 #endif
|
|
10755 #endif
|
|
10756 #include <$path>
|
|
10757
|
|
10758 int main() {
|
|
10759
|
|
10760 ; return 0; }
|
|
10761 EOF
|
308
|
10762 if { (eval echo configure:10763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
298
|
10763 rm -rf conftest*
|
|
10764 db_h_path="$path"; break
|
|
10765 else
|
|
10766 echo "configure: failed program was:" >&5
|
|
10767 cat conftest.$ac_ext >&5
|
|
10768 fi
|
|
10769 rm -f conftest*
|
|
10770 done
|
306
|
10771 if test -z "$db_h_path"
|
298
|
10772 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
|
10773 else echo "$ac_t""$db_h_path" 1>&6
|
|
10774 fi
|
|
10775
|
|
10776 if test "$with_database_berkdb" != "no"; then
|
|
10777 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
308
|
10778 echo "configure:10779: checking for Berkeley DB version" >&5
|
298
|
10779 cat > conftest.$ac_ext <<EOF
|
308
|
10780 #line 10781 "configure"
|
298
|
10781 #include "confdefs.h"
|
|
10782 #include <$db_h_path>
|
|
10783 #if DB_VERSION_MAJOR > 1
|
|
10784 yes
|
|
10785 #endif
|
|
10786
|
|
10787 EOF
|
|
10788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
10789 egrep "yes" >/dev/null 2>&1; then
|
|
10790 rm -rf conftest*
|
|
10791 echo "$ac_t""2" 1>&6; dbfunc=db_open
|
|
10792 else
|
|
10793 rm -rf conftest*
|
|
10794 echo "$ac_t""1" 1>&6; dbfunc=dbopen
|
|
10795 fi
|
|
10796 rm -f conftest*
|
|
10797
|
|
10798 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
308
|
10799 echo "configure:10800: checking for $dbfunc" >&5
|
|
10800
|
|
10801 cat > conftest.$ac_ext <<EOF
|
|
10802 #line 10803 "configure"
|
298
|
10803 #include "confdefs.h"
|
149
|
10804 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
10805 which can conflict with char $dbfunc(); below. */
|
149
|
10806 #include <assert.h>
|
|
10807 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10808 /* We use char because int might match the return type of a gcc2
|
|
10809 builtin and then its argument prototype would still apply. */
|
298
|
10810 char $dbfunc();
|
149
|
10811
|
|
10812 int main() {
|
|
10813
|
0
|
10814 /* The GNU C library defines this for functions which it implements
|
|
10815 to always fail with ENOSYS. Some functions are actually named
|
|
10816 something starting with __ and the normal name is an alias. */
|
298
|
10817 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
10818 choke me
|
|
10819 #else
|
298
|
10820 $dbfunc();
|
0
|
10821 #endif
|
149
|
10822
|
0
|
10823 ; return 0; }
|
|
10824 EOF
|
308
|
10825 if { (eval echo configure:10826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
298
|
10826 rm -rf conftest*
|
|
10827 eval "ac_cv_func_$dbfunc=yes"
|
|
10828 else
|
|
10829 echo "configure: failed program was:" >&5
|
|
10830 cat conftest.$ac_ext >&5
|
|
10831 rm -rf conftest*
|
|
10832 eval "ac_cv_func_$dbfunc=no"
|
|
10833 fi
|
|
10834 rm -f conftest*
|
|
10835
|
|
10836 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
10837 echo "$ac_t""yes" 1>&6
|
|
10838 with_database_berkdb=yes need_libdb=no
|
|
10839 else
|
|
10840 echo "$ac_t""no" 1>&6
|
298
|
10841
|
|
10842
|
|
10843 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
308
|
10844 echo "configure:10845: checking for $dbfunc in -ldb" >&5
|
298
|
10845 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
10846
|
|
10847 xe_check_libs=" -ldb "
|
|
10848 cat > conftest.$ac_ext <<EOF
|
308
|
10849 #line 10850 "configure"
|
149
|
10850 #include "confdefs.h"
|
0
|
10851 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
10852 /* We use char because int might match the return type of a gcc2
|
|
10853 builtin and then its argument prototype would still apply. */
|
298
|
10854 char $dbfunc();
|
|
10855
|
|
10856 int main() {
|
|
10857 $dbfunc()
|
|
10858 ; return 0; }
|
|
10859 EOF
|
308
|
10860 if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10861 rm -rf conftest*
|
|
10862 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10863 else
|
|
10864 echo "configure: failed program was:" >&5
|
|
10865 cat conftest.$ac_ext >&5
|
|
10866 rm -rf conftest*
|
|
10867 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10868 fi
|
|
10869 rm -f conftest*
|
|
10870 xe_check_libs=""
|
|
10871
|
151
|
10872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10873 echo "$ac_t""yes" 1>&6
|
|
10874 with_database_berkdb=yes need_libdb=yes
|
|
10875 else
|
|
10876 echo "$ac_t""no" 1>&6
|
298
|
10877 fi
|
|
10878
|
|
10879
|
|
10880 fi
|
|
10881
|
|
10882 fi
|
|
10883
|
149
|
10884 if test "$with_database_berkdb" = "yes"; then
|
|
10885 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10886 Defining DB_H_PATH = "$db_h_path"
|
|
10887 EOF
|
|
10888 cat >> confdefs.h <<EOF
|
|
10889 #define DB_H_PATH "$db_h_path"
|
|
10890 EOF
|
|
10891 }
|
|
10892
|
|
10893 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10894 Defining HAVE_BERKELEY_DB
|
|
10895 EOF
|
|
10896 cat >> confdefs.h <<\EOF
|
|
10897 #define HAVE_BERKELEY_DB 1
|
|
10898 EOF
|
|
10899 }
|
|
10900
|
151
|
10901 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
10902 else with_database_berkdb=no
|
|
10903 fi
|
|
10904 fi
|
|
10905
|
272
|
10906 if test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
|
|
10907 != "no no no"; then
|
149
|
10908 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10909 Defining HAVE_DATABASE
|
|
10910 EOF
|
|
10911 cat >> confdefs.h <<\EOF
|
|
10912 #define HAVE_DATABASE 1
|
|
10913 EOF
|
|
10914 }
|
|
10915
|
151
|
10916 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
|
|
10917 echo " xemacs will be linked with \"database.o\""
|
|
10918 fi
|
149
|
10919 fi
|
|
10920
|
|
10921 if test "$with_socks" = "yes"; then
|
|
10922
|
|
10923 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
308
|
10924 echo "configure:10925: checking for SOCKSinit in -lsocks" >&5
|
149
|
10925 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
10926
|
|
10927 xe_check_libs=" -lsocks "
|
|
10928 cat > conftest.$ac_ext <<EOF
|
308
|
10929 #line 10930 "configure"
|
149
|
10930 #include "confdefs.h"
|
|
10931 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10932 /* We use char because int might match the return type of a gcc2
|
|
10933 builtin and then its argument prototype would still apply. */
|
|
10934 char SOCKSinit();
|
|
10935
|
|
10936 int main() {
|
|
10937 SOCKSinit()
|
|
10938 ; return 0; }
|
|
10939 EOF
|
308
|
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
149
|
10941 rm -rf conftest*
|
|
10942 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10943 else
|
|
10944 echo "configure: failed program was:" >&5
|
|
10945 cat conftest.$ac_ext >&5
|
|
10946 rm -rf conftest*
|
|
10947 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10948 fi
|
|
10949 rm -f conftest*
|
|
10950 xe_check_libs=""
|
|
10951
|
151
|
10952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10953 echo "$ac_t""yes" 1>&6
|
|
10954 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
10955 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
10956 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10957 Defining $ac_tr_lib
|
|
10958 EOF
|
|
10959 cat >> confdefs.h <<EOF
|
|
10960 #define $ac_tr_lib 1
|
|
10961 EOF
|
|
10962 }
|
|
10963
|
151
|
10964 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
10965
|
|
10966 else
|
|
10967 echo "$ac_t""no" 1>&6
|
|
10968 fi
|
|
10969
|
|
10970
|
|
10971 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10972 Defining HAVE_SOCKS
|
|
10973 EOF
|
|
10974 cat >> confdefs.h <<\EOF
|
|
10975 #define HAVE_SOCKS 1
|
|
10976 EOF
|
|
10977 }
|
|
10978
|
|
10979 fi
|
|
10980
|
|
10981 if test "$usage_tracking" = "yes"; then
|
|
10982 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10983 Defining USAGE_TRACKING
|
|
10984 EOF
|
|
10985 cat >> confdefs.h <<\EOF
|
|
10986 #define USAGE_TRACKING 1
|
|
10987 EOF
|
|
10988 }
|
|
10989
|
151
|
10990 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
10991 fi
|
|
10992
|
265
|
10993 for ac_hdr in dlfcn.h
|
|
10994 do
|
|
10995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
10996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
308
|
10997 echo "configure:10998: checking for $ac_hdr" >&5
|
|
10998
|
|
10999 cat > conftest.$ac_ext <<EOF
|
|
11000 #line 11001 "configure"
|
265
|
11001 #include "confdefs.h"
|
|
11002 #include <$ac_hdr>
|
261
|
11003 EOF
|
|
11004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
308
|
11005 { (eval echo configure:11006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
261
|
11006 ac_err=`grep -v '^ *+' conftest.out`
|
|
11007 if test -z "$ac_err"; then
|
|
11008 rm -rf conftest*
|
|
11009 eval "ac_cv_header_$ac_safe=yes"
|
|
11010 else
|
|
11011 echo "$ac_err" >&5
|
|
11012 echo "configure: failed program was:" >&5
|
|
11013 cat conftest.$ac_ext >&5
|
|
11014 rm -rf conftest*
|
|
11015 eval "ac_cv_header_$ac_safe=no"
|
|
11016 fi
|
|
11017 rm -f conftest*
|
|
11018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11019 echo "$ac_t""yes" 1>&6
|
265
|
11020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11021 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11022 Defining $ac_tr_hdr
|
|
11023 EOF
|
|
11024 cat >> confdefs.h <<EOF
|
|
11025 #define $ac_tr_hdr 1
|
|
11026 EOF
|
|
11027 }
|
|
11028 have_dlfcn=yes
|
|
11029 else
|
|
11030 echo "$ac_t""no" 1>&6
|
|
11031 fi
|
|
11032 done
|
|
11033
|
|
11034 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
261
|
11035 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
308
|
11036 echo "configure:11037: checking for dlopen in -ldl" >&5
|
261
|
11037 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
11038
|
|
11039 xe_check_libs=" -ldl "
|
|
11040 cat > conftest.$ac_ext <<EOF
|
308
|
11041 #line 11042 "configure"
|
261
|
11042 #include "confdefs.h"
|
|
11043 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11044 /* We use char because int might match the return type of a gcc2
|
|
11045 builtin and then its argument prototype would still apply. */
|
|
11046 char dlopen();
|
|
11047
|
|
11048 int main() {
|
|
11049 dlopen()
|
|
11050 ; return 0; }
|
|
11051 EOF
|
308
|
11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
265
|
11053 rm -rf conftest*
|
|
11054 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11055 else
|
|
11056 echo "configure: failed program was:" >&5
|
|
11057 cat conftest.$ac_ext >&5
|
|
11058 rm -rf conftest*
|
|
11059 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11060 fi
|
|
11061 rm -f conftest*
|
|
11062 xe_check_libs=""
|
|
11063
|
|
11064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11065 echo "$ac_t""yes" 1>&6
|
|
11066 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11067 Defining HAVE_DLOPEN
|
|
11068 EOF
|
|
11069 cat >> confdefs.h <<\EOF
|
|
11070 #define HAVE_DLOPEN 1
|
|
11071 EOF
|
|
11072 }
|
|
11073 DLL_LIB=dl; with_shlib=yes
|
|
11074 else
|
|
11075 echo "$ac_t""no" 1>&6
|
|
11076 fi
|
|
11077
|
|
11078 }
|
|
11079 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
|
11080 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
|
308
|
11081 echo "configure:11082: checking for _dlopen in -lc" >&5
|
265
|
11082 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
|
|
11083
|
|
11084 xe_check_libs=" -lc "
|
|
11085 cat > conftest.$ac_ext <<EOF
|
308
|
11086 #line 11087 "configure"
|
265
|
11087 #include "confdefs.h"
|
|
11088 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11089 /* We use char because int might match the return type of a gcc2
|
|
11090 builtin and then its argument prototype would still apply. */
|
|
11091 char _dlopen();
|
|
11092
|
|
11093 int main() {
|
|
11094 _dlopen()
|
|
11095 ; return 0; }
|
|
11096 EOF
|
308
|
11097 if { (eval echo configure:11098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
265
|
11098 rm -rf conftest*
|
|
11099 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11100 else
|
|
11101 echo "configure: failed program was:" >&5
|
|
11102 cat conftest.$ac_ext >&5
|
|
11103 rm -rf conftest*
|
|
11104 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11105 fi
|
|
11106 rm -f conftest*
|
|
11107 xe_check_libs=""
|
|
11108
|
|
11109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11110 echo "$ac_t""yes" 1>&6
|
|
11111 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11112 Defining HAVE_DLOPEN
|
|
11113 EOF
|
|
11114 cat >> confdefs.h <<\EOF
|
|
11115 #define HAVE_DLOPEN 1
|
|
11116 EOF
|
|
11117 }
|
|
11118 DLL_LIB=; with_shlib=yes
|
|
11119 else
|
|
11120 echo "$ac_t""no" 1>&6
|
|
11121 fi
|
|
11122
|
|
11123 }
|
|
11124 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
|
|
11125 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
308
|
11126 echo "configure:11127: checking for dlopen in -lc" >&5
|
265
|
11127 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
|
|
11128
|
|
11129 xe_check_libs=" -lc "
|
|
11130 cat > conftest.$ac_ext <<EOF
|
308
|
11131 #line 11132 "configure"
|
265
|
11132 #include "confdefs.h"
|
|
11133 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11134 /* We use char because int might match the return type of a gcc2
|
|
11135 builtin and then its argument prototype would still apply. */
|
|
11136 char dlopen();
|
|
11137
|
|
11138 int main() {
|
|
11139 dlopen()
|
|
11140 ; return 0; }
|
|
11141 EOF
|
308
|
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
261
|
11143 rm -rf conftest*
|
|
11144 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11145 else
|
|
11146 echo "configure: failed program was:" >&5
|
|
11147 cat conftest.$ac_ext >&5
|
|
11148 rm -rf conftest*
|
|
11149 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11150 fi
|
|
11151 rm -f conftest*
|
|
11152 xe_check_libs=""
|
|
11153
|
|
11154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11155 echo "$ac_t""yes" 1>&6
|
265
|
11156 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11157 Defining HAVE_DLOPEN
|
|
11158 EOF
|
|
11159 cat >> confdefs.h <<\EOF
|
|
11160 #define HAVE_DLOPEN 1
|
|
11161 EOF
|
|
11162 }
|
|
11163 DLL_LIB=; with_shlib=yes
|
|
11164 else
|
|
11165 echo "$ac_t""no" 1>&6
|
|
11166 fi
|
|
11167
|
|
11168 }
|
|
11169 test -z "$with_shlib" && {
|
|
11170 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
308
|
11171 echo "configure:11172: checking for shl_load in -ldld" >&5
|
265
|
11172 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
11173
|
|
11174 xe_check_libs=" -ldld "
|
|
11175 cat > conftest.$ac_ext <<EOF
|
308
|
11176 #line 11177 "configure"
|
263
|
11177 #include "confdefs.h"
|
|
11178 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11179 /* We use char because int might match the return type of a gcc2
|
|
11180 builtin and then its argument prototype would still apply. */
|
265
|
11181 char shl_load();
|
|
11182
|
|
11183 int main() {
|
|
11184 shl_load()
|
|
11185 ; return 0; }
|
|
11186 EOF
|
308
|
11187 if { (eval echo configure:11188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
265
|
11188 rm -rf conftest*
|
|
11189 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11190 else
|
|
11191 echo "configure: failed program was:" >&5
|
|
11192 cat conftest.$ac_ext >&5
|
|
11193 rm -rf conftest*
|
|
11194 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11195 fi
|
|
11196 rm -f conftest*
|
|
11197 xe_check_libs=""
|
|
11198
|
|
11199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11200 echo "$ac_t""yes" 1>&6
|
|
11201 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11202 Defining HAVE_SHL_LOAD
|
|
11203 EOF
|
|
11204 cat >> confdefs.h <<\EOF
|
|
11205 #define HAVE_SHL_LOAD 1
|
|
11206 EOF
|
|
11207 }
|
|
11208 DLL_LIB=dld; with_shlib=yes
|
|
11209 else
|
|
11210 echo "$ac_t""no" 1>&6
|
|
11211 fi
|
|
11212
|
|
11213 }
|
|
11214 test -z "$with_shlib" && {
|
|
11215 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
308
|
11216 echo "configure:11217: checking for dld_init in -ldld" >&5
|
265
|
11217 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
|
11218
|
|
11219 xe_check_libs=" -ldld "
|
|
11220 cat > conftest.$ac_ext <<EOF
|
308
|
11221 #line 11222 "configure"
|
265
|
11222 #include "confdefs.h"
|
|
11223 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11224 /* We use char because int might match the return type of a gcc2
|
|
11225 builtin and then its argument prototype would still apply. */
|
|
11226 char dld_init();
|
|
11227
|
|
11228 int main() {
|
|
11229 dld_init()
|
|
11230 ; return 0; }
|
|
11231 EOF
|
308
|
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
263
|
11233 rm -rf conftest*
|
|
11234 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11235 else
|
|
11236 echo "configure: failed program was:" >&5
|
|
11237 cat conftest.$ac_ext >&5
|
|
11238 rm -rf conftest*
|
|
11239 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11240 fi
|
|
11241 rm -f conftest*
|
|
11242 xe_check_libs=""
|
|
11243
|
|
11244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11245 echo "$ac_t""yes" 1>&6
|
265
|
11246 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11247 Defining HAVE_DLD_INIT
|
|
11248 EOF
|
|
11249 cat >> confdefs.h <<\EOF
|
|
11250 #define HAVE_DLD_INIT 1
|
|
11251 EOF
|
|
11252 }
|
|
11253 DLL_LIB=dld; with_shlib=yes
|
|
11254 else
|
|
11255 echo "$ac_t""no" 1>&6
|
263
|
11256 fi
|
|
11257
|
261
|
11258 }
|
|
11259 if test "$with_shlib" = "yes"; then
|
|
11260 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11261 Defining HAVE_SHLIB
|
|
11262 EOF
|
|
11263 cat >> confdefs.h <<\EOF
|
|
11264 #define HAVE_SHLIB 1
|
|
11265 EOF
|
|
11266 }
|
|
11267
|
265
|
11268 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
|
|
11269 echo " xemacs will be linked with \"sysdll.o\""
|
|
11270 fi
|
|
11271 extra_objs="$extra_objs dll.o" && if test "$extra_verbose" = "yes"; then
|
|
11272 echo " xemacs will be linked with \"dll.o\""
|
261
|
11273 fi
|
265
|
11274 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
|
|
11275
|
|
11276 dll_ld="ld"
|
|
11277 dll_lflags="-shared"
|
|
11278 dll_cflags="-r"
|
|
11279 dll_oflags="-o "
|
|
11280
|
|
11281 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
|
308
|
11282 echo "configure:11283: checking how to build a shared library" >&5
|
265
|
11283 case `uname -rs` in
|
|
11284 UNIX_SV*|UNIX_System_V*)
|
|
11285 dll_lflags="-G"
|
|
11286 dll_cflags=-Kpic
|
|
11287 dll_ld="ld"
|
|
11288 ;;
|
|
11289 BSD/OS*)
|
|
11290 dll_cflags=
|
|
11291 dll_lflags="-r"
|
|
11292 dll_ld="shlicc2"
|
|
11293 ;;
|
|
11294 FreeBSD*2*)
|
|
11295 dll_lflags="-Bshareable"
|
|
11296 dll_cflags="-fPIC -DPIC"
|
|
11297 dll_ld=ld
|
|
11298 ;;
|
|
11299 SunOS*4.*)
|
|
11300 dll_cflags="-P"
|
|
11301 dll_lflags="-dp -assert pure-text -assert nodefinitions"
|
|
11302 ;;
|
|
11303 SunOS*5.*)
|
|
11304 dll_ld="cc"
|
|
11305 dll_cflags="-KPIC"
|
|
11306 dll_lflags="-G"
|
|
11307 dll_oflags="-W0,-y-o -W0,-y"
|
|
11308 ;;
|
|
11309 IRIX*5.*|IRIX*6.*)
|
|
11310 dll_cflags="-KPIC"
|
|
11311 ;;
|
|
11312 OSF1*)
|
|
11313 ;;
|
|
11314 HP-UX*)
|
|
11315 dll_ld="ld"
|
|
11316 dll_lflags="-b"
|
|
11317 dll_cflags="+z"
|
|
11318 ;;
|
|
11319 SCO_SV*)
|
|
11320 dll_ld="ld"
|
|
11321 dll_lflags="-G"
|
|
11322 dll_cflags="-Kpic"
|
|
11323 ;;
|
|
11324 AIX*)
|
|
11325 dll_lflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:\${@:.ell=.exp} -b noentry -lc"
|
|
11326 dll_ld="ld"
|
|
11327 ;;
|
|
11328 *)
|
|
11329 ;;
|
|
11330 esac
|
|
11331
|
|
11332 if test "$GCC" = "yes" ; then
|
|
11333 dll_cflags="-fPIC"
|
|
11334 case `uname -rs` in
|
|
11335 SunOS*5.*)
|
|
11336 dll_ld="ld"
|
|
11337 dll_oflags="-o "
|
|
11338 dll_lflags="-G"
|
|
11339 ;;
|
|
11340 SCO_SV*)
|
|
11341 dll_ld="ld"
|
|
11342 dll_lflags="-G"
|
|
11343 dll_cflags="-b elf"
|
|
11344 ;;
|
|
11345 FreeBSD*)
|
|
11346 dll_cflags="-DDLSYM_NEEDS_UNDERSCORE -DPIC -fPIC"
|
|
11347 dll_lflags="-Bshareable"
|
|
11348 dll_ld=ld
|
|
11349 ;;
|
|
11350 BSD/OS*)
|
|
11351 dll_cflags=
|
|
11352 dll_lflags="-r"
|
|
11353 dll_ld="shlicc2"
|
|
11354 ;;
|
|
11355 UNIX_SV*)
|
|
11356 dll_cflags="-fPIC"
|
|
11357 ;;
|
|
11358 *)
|
|
11359 dll_ld="$CC"
|
|
11360 dll_lflags="-shared"
|
|
11361 esac
|
|
11362 fi
|
|
11363
|
|
11364 echo "$ac_t"""lflags: $dll_lflags cflags: $dll_cflags"" 1>&6
|
|
11365
|
|
11366
|
|
11367
|
|
11368
|
|
11369
|
276
|
11370 for ac_func in dlerror
|
|
11371 do
|
|
11372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
308
|
11373 echo "configure:11374: checking for $ac_func" >&5
|
|
11374
|
|
11375 cat > conftest.$ac_ext <<EOF
|
|
11376 #line 11377 "configure"
|
276
|
11377 #include "confdefs.h"
|
|
11378 /* System header to define __stub macros and hopefully few prototypes,
|
|
11379 which can conflict with char $ac_func(); below. */
|
|
11380 #include <assert.h>
|
|
11381 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11382 /* We use char because int might match the return type of a gcc2
|
|
11383 builtin and then its argument prototype would still apply. */
|
|
11384 char $ac_func();
|
|
11385
|
|
11386 int main() {
|
|
11387
|
|
11388 /* The GNU C library defines this for functions which it implements
|
|
11389 to always fail with ENOSYS. Some functions are actually named
|
|
11390 something starting with __ and the normal name is an alias. */
|
|
11391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11392 choke me
|
|
11393 #else
|
|
11394 $ac_func();
|
|
11395 #endif
|
|
11396
|
|
11397 ; return 0; }
|
|
11398 EOF
|
308
|
11399 if { (eval echo configure:11400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
276
|
11400 rm -rf conftest*
|
|
11401 eval "ac_cv_func_$ac_func=yes"
|
|
11402 else
|
|
11403 echo "configure: failed program was:" >&5
|
|
11404 cat conftest.$ac_ext >&5
|
|
11405 rm -rf conftest*
|
|
11406 eval "ac_cv_func_$ac_func=no"
|
|
11407 fi
|
|
11408 rm -f conftest*
|
|
11409
|
|
11410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11411 echo "$ac_t""yes" 1>&6
|
|
11412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11413 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11414 Defining $ac_tr_func
|
|
11415 EOF
|
|
11416 cat >> confdefs.h <<EOF
|
|
11417 #define $ac_tr_func 1
|
|
11418 EOF
|
|
11419 }
|
|
11420
|
|
11421 else
|
|
11422 echo "$ac_t""no" 1>&6
|
|
11423 fi
|
|
11424 done
|
|
11425
|
263
|
11426 ld_dynamic_link_flags=
|
|
11427 case "$opsys" in
|
267
|
11428 hpux*) ld_dynamic_link_flags="-Wl,-E" ;;
|
263
|
11429 linux*) ld_dynamic_link_flags="-rdynamic" ;;
|
|
11430 *) ;;
|
|
11431 esac
|
|
11432 fi
|
|
11433
|
272
|
11434 cat > conftest.$ac_ext <<EOF
|
308
|
11435 #line 11436 "configure"
|
272
|
11436 #include "confdefs.h"
|
|
11437 int main(int c,char *v[]){return 0;}
|
|
11438 EOF
|
308
|
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
11440 then
|
|
11441 :
|
|
11442 else
|
306
|
11443 conftest_rc="$?"
|
272
|
11444 echo "configure: failed program was:" >&5
|
|
11445 cat conftest.$ac_ext >&5
|
|
11446 rm -fr conftest*
|
|
11447
|
|
11448 echo ""
|
|
11449 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
11450 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
11451 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
11452 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
11453 echo "*** PANIC *** found at run time."
|
|
11454 echo "*** PANIC ***"
|
|
11455 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
11456 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
11457 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
11458 echo "*** PANIC ***"
|
|
11459 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
11460 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
11461 echo "*** PANIC *** on your system. Don't do that."
|
|
11462 exit 1
|
|
11463 fi
|
|
11464 rm -fr conftest*
|
|
11465
|
263
|
11466
|
|
11467 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11468 Defining HAVE_UNIX_PROCESSES
|
|
11469 EOF
|
|
11470 cat >> confdefs.h <<\EOF
|
|
11471 #define HAVE_UNIX_PROCESSES 1
|
|
11472 EOF
|
|
11473 }
|
|
11474
|
|
11475 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
|
|
11476 echo " xemacs will be linked with \"process-unix.o\""
|
|
11477 fi
|
261
|
11478
|
155
|
11479
|
|
11480
|
|
11481 T=""
|
175
|
11482 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11483 CFLAGS="$T"
|
|
11484
|
|
11485
|
|
11486 T=""
|
155
|
11487 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11488 extra_objs="$T"
|
|
11489
|
|
11490
|
|
11491 T=""
|
|
11492 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
|
|
11493 c_switch_general="$T"
|
|
11494
|
|
11495
|
|
11496 T=""
|
|
11497 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11498 c_switch_window_system="$T"
|
|
11499
|
|
11500
|
|
11501 T=""
|
|
11502 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11503 c_switch_all="$T"
|
|
11504
|
|
11505
|
|
11506 T=""
|
|
11507 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
|
|
11508 ld_switch_general="$T"
|
|
11509
|
|
11510
|
|
11511 T=""
|
|
11512 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11513 ld_switch_window_system="$T"
|
|
11514
|
|
11515
|
|
11516 T=""
|
|
11517 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11518 ld_switch_all="$T"
|
|
11519
|
|
11520
|
|
11521 T=""
|
|
11522 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11523 ld_libs_general="$T"
|
|
11524
|
|
11525
|
|
11526 T=""
|
|
11527 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
|
|
11528 ld_libs_window_system="$T"
|
|
11529
|
|
11530
|
|
11531 T=""
|
|
11532 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11533 ld_libs_all="$T"
|
|
11534
|
149
|
11535
|
151
|
11536
|
|
11537 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
149
|
11538 internal_makefile_list="Makefile"
|
|
11539 SUBDIR_MAKEFILES=''
|
151
|
11540 test -d lock || mkdir lock
|
149
|
11541 for dir in $MAKE_SUBDIR; do
|
167
|
11542 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
11543 test -d "$d" || mkdir "$d"; cd "$d"
|
|
11544 done ) ;;
|
|
11545 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
11546 esac
|
155
|
11547
|
|
11548 T=""
|
|
11549 for W in $SUBDIR_MAKEFILES $dir/Makefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11550 SUBDIR_MAKEFILES="$T"
|
|
11551
|
|
11552
|
|
11553 T=""
|
|
11554 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11555 internal_makefile_list="$T"
|
|
11556
|
149
|
11557 done
|
|
11558
|
|
11559
|
|
11560
|
167
|
11561
|
157
|
11562 for dir in src/s src/m; do
|
|
11563 if test ! -d "$dir" ; then
|
|
11564 echo Making symbolic link to "$srcdir/$dir"
|
|
11565 ${LN_S} "$srcdir/$dir" "$dir"
|
|
11566 fi
|
|
11567 done
|
|
11568
|
149
|
11569 if test "$extra_verbose" = "yes"; then
|
151
|
11570 echo ""
|
163
|
11571 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
|
11572 echo ""
|
|
11573 fi
|
|
11574
|
151
|
11575 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then
|
153
|
11576 echo "creating src/gdbinit"; echo ""
|
151
|
11577 echo "source $srcdir/src/gdbinit" > src/gdbinit
|
|
11578 fi
|
|
11579
|
306
|
11580 if test "$__SUNPRO_C" = "yes"; then
|
153
|
11581 echo "creating .sbinit"; echo ""
|
157
|
11582 ( echo "# For use with Sun WorkShop's Source browser."
|
|
11583 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
11584 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
11585 ) > .sbinit
|
|
11586 fi
|
151
|
11587
|
|
11588 rm -f core
|
|
11589
|
149
|
11590
|
|
11591
|
|
11592
|
|
11593
|
|
11594
|
|
11595
|
|
11596
|
|
11597
|
|
11598
|
|
11599
|
|
11600
|
|
11601
|
|
11602
|
|
11603
|
280
|
11604
|
278
|
11605 PREFIX=$prefix
|
|
11606 while true; do
|
|
11607 case "$PREFIX" in
|
|
11608 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
11609 *) break ;;
|
|
11610 esac
|
|
11611 done
|
|
11612
|
|
11613
|
|
11614
|
|
11615 EXEC_PREFIX=$exec_prefix
|
|
11616 while true; do
|
|
11617 case "$EXEC_PREFIX" in
|
|
11618 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
11619 *) break ;;
|
|
11620 esac
|
|
11621 done
|
|
11622
|
149
|
11623
|
|
11624
|
|
11625
|
274
|
11626 INFODIR=$infodir
|
|
11627 while true; do
|
|
11628 case "$INFODIR" in
|
|
11629 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
11630 *) break ;;
|
|
11631 esac
|
|
11632 done
|
|
11633
|
|
11634
|
|
11635
|
|
11636
|
|
11637 INFOPATH=$infopath
|
|
11638 while true; do
|
|
11639 case "$INFOPATH" in
|
|
11640 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
11641 *) break ;;
|
|
11642 esac
|
|
11643 done
|
|
11644
|
|
11645
|
|
11646
|
|
11647
|
|
11648 PACKAGE_PATH=$package_path
|
|
11649 while true; do
|
|
11650 case "$PACKAGE_PATH" in
|
|
11651 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
11652 *) break ;;
|
|
11653 esac
|
|
11654 done
|
|
11655
|
|
11656
|
|
11657
|
|
11658
|
|
11659 LISPDIR=$lispdir
|
|
11660 while true; do
|
|
11661 case "$LISPDIR" in
|
|
11662 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
11663 *) break ;;
|
|
11664 esac
|
|
11665 done
|
|
11666
|
|
11667
|
|
11668
|
|
11669
|
|
11670
|
|
11671 ETCDIR=$etcdir
|
|
11672 while true; do
|
|
11673 case "$ETCDIR" in
|
|
11674 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
11675 *) break ;;
|
|
11676 esac
|
|
11677 done
|
|
11678
|
|
11679
|
|
11680
|
|
11681
|
|
11682 LOCKDIR=$lockdir
|
|
11683 while true; do
|
|
11684 case "$LOCKDIR" in
|
|
11685 *\$* ) eval "LOCKDIR=$LOCKDIR" ;;
|
|
11686 *) break ;;
|
|
11687 esac
|
|
11688 done
|
|
11689
|
|
11690
|
|
11691
|
|
11692
|
|
11693 ARCHLIBDIR=$archlibdir
|
|
11694 while true; do
|
|
11695 case "$ARCHLIBDIR" in
|
|
11696 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
11697 *) break ;;
|
|
11698 esac
|
|
11699 done
|
149
|
11700
|
|
11701
|
|
11702
|
|
11703
|
|
11704
|
|
11705
|
|
11706
|
|
11707
|
|
11708
|
|
11709
|
|
11710
|
|
11711
|
|
11712
|
|
11713
|
|
11714
|
|
11715
|
203
|
11716
|
207
|
11717
|
263
|
11718
|
267
|
11719
|
|
11720
|
173
|
11721 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
11722
|
|
11723
|
|
11724
|
|
11725
|
|
11726
|
|
11727
|
|
11728
|
267
|
11729 # The default is yes
|
|
11730 if test "$with_site_lisp" = "no"; then
|
|
11731 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11732 Defining INHIBIT_SITE_LISP
|
|
11733 EOF
|
|
11734 cat >> confdefs.h <<\EOF
|
|
11735 #define INHIBIT_SITE_LISP 1
|
|
11736 EOF
|
|
11737 }
|
|
11738
|
|
11739 fi
|
155
|
11740
|
207
|
11741
|
|
11742 T=""
|
|
11743 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
11744 ac_configure_args="$T"
|
|
11745
|
149
|
11746 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11747 Defining EMACS_CONFIGURATION = "$canonical"
|
|
11748 EOF
|
|
11749 cat >> confdefs.h <<EOF
|
|
11750 #define EMACS_CONFIGURATION "$canonical"
|
|
11751 EOF
|
|
11752 }
|
|
11753
|
|
11754 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
11755 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
11756 EOF
|
|
11757 cat >> confdefs.h <<EOF
|
207
|
11758 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
11759 EOF
|
|
11760 }
|
|
11761
|
|
11762 { test "$extra_verbose" = "yes" && cat << EOF
|
149
|
11763 Defining config_machfile = "$machfile"
|
|
11764 EOF
|
|
11765 cat >> confdefs.h <<EOF
|
|
11766 #define config_machfile "$machfile"
|
|
11767 EOF
|
|
11768 }
|
|
11769
|
|
11770 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11771 Defining config_opsysfile = "$opsysfile"
|
|
11772 EOF
|
|
11773 cat >> confdefs.h <<EOF
|
|
11774 #define config_opsysfile "$opsysfile"
|
|
11775 EOF
|
|
11776 }
|
|
11777
|
|
11778
|
|
11779
|
|
11780 null_string=""
|
|
11781 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11782 Defining LD_SWITCH_X_SITE = $null_string
|
|
11783 EOF
|
|
11784 cat >> confdefs.h <<EOF
|
|
11785 #define LD_SWITCH_X_SITE $null_string
|
|
11786 EOF
|
|
11787 }
|
|
11788
|
|
11789 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11790 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
11791 EOF
|
|
11792 cat >> confdefs.h <<EOF
|
|
11793 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
11794 EOF
|
|
11795 }
|
|
11796
|
|
11797 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11798 Defining C_SWITCH_X_SITE = $null_string
|
|
11799 EOF
|
|
11800 cat >> confdefs.h <<EOF
|
|
11801 #define C_SWITCH_X_SITE $null_string
|
|
11802 EOF
|
|
11803 }
|
|
11804
|
|
11805 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11806 Defining LD_SWITCH_SITE = $null_string
|
|
11807 EOF
|
|
11808 cat >> confdefs.h <<EOF
|
|
11809 #define LD_SWITCH_SITE $null_string
|
|
11810 EOF
|
|
11811 }
|
|
11812
|
|
11813 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11814 Defining C_SWITCH_SITE = $null_string
|
|
11815 EOF
|
|
11816 cat >> confdefs.h <<EOF
|
|
11817 #define C_SWITCH_SITE $null_string
|
|
11818 EOF
|
|
11819 }
|
|
11820
|
|
11821
|
|
11822
|
|
11823 test -n "$puresize" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
11824 Defining RAW_PURESIZE = $puresize
|
|
11825 EOF
|
|
11826 cat >> confdefs.h <<EOF
|
|
11827 #define RAW_PURESIZE $puresize
|
|
11828 EOF
|
|
11829 }
|
|
11830
|
|
11831
|
181
|
11832 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11833 Defining GNU_MALLOC
|
|
11834 EOF
|
|
11835 cat >> confdefs.h <<\EOF
|
|
11836 #define GNU_MALLOC 1
|
|
11837 EOF
|
|
11838 }
|
|
11839
|
181
|
11840 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11841 Defining USE_SYSTEM_MALLOC
|
|
11842 EOF
|
|
11843 cat >> confdefs.h <<\EOF
|
|
11844 #define USE_SYSTEM_MALLOC 1
|
|
11845 EOF
|
|
11846 }
|
|
11847
|
181
|
11848 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
11849 Defining USE_DEBUG_MALLOC
|
|
11850 EOF
|
|
11851 cat >> confdefs.h <<\EOF
|
|
11852 #define USE_DEBUG_MALLOC 1
|
|
11853 EOF
|
|
11854 }
|
|
11855
|
181
|
11856 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
11857 Defining USE_SYSTEM_MALLOC
|
|
11858 EOF
|
|
11859 cat >> confdefs.h <<\EOF
|
|
11860 #define USE_SYSTEM_MALLOC 1
|
|
11861 EOF
|
|
11862 }
|
|
11863
|
149
|
11864 fi
|
|
11865 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11866 Defining I18N3
|
|
11867 EOF
|
|
11868 cat >> confdefs.h <<\EOF
|
|
11869 #define I18N3 1
|
|
11870 EOF
|
|
11871 }
|
|
11872
|
169
|
11873 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
11874 Defining USE_GCC
|
|
11875 EOF
|
|
11876 cat >> confdefs.h <<\EOF
|
|
11877 #define USE_GCC 1
|
|
11878 EOF
|
|
11879 }
|
|
11880
|
|
11881 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11882 Defining EXTERNAL_WIDGET
|
|
11883 EOF
|
|
11884 cat >> confdefs.h <<\EOF
|
|
11885 #define EXTERNAL_WIDGET 1
|
|
11886 EOF
|
|
11887 }
|
|
11888
|
|
11889 test "$with_gnu_make" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11890 Defining USE_GNU_MAKE
|
|
11891 EOF
|
|
11892 cat >> confdefs.h <<\EOF
|
|
11893 #define USE_GNU_MAKE 1
|
|
11894 EOF
|
|
11895 }
|
|
11896
|
|
11897 test "$no_doc_file" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11898 Defining NO_DOC_FILE
|
|
11899 EOF
|
|
11900 cat >> confdefs.h <<\EOF
|
|
11901 #define NO_DOC_FILE 1
|
|
11902 EOF
|
|
11903 }
|
|
11904
|
|
11905 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11906 Defining QUANTIFY
|
|
11907 EOF
|
|
11908 cat >> confdefs.h <<\EOF
|
|
11909 #define QUANTIFY 1
|
|
11910 EOF
|
|
11911 }
|
|
11912
|
|
11913 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11914 Defining MAIL_USE_POP
|
|
11915 EOF
|
|
11916 cat >> confdefs.h <<\EOF
|
|
11917 #define MAIL_USE_POP 1
|
|
11918 EOF
|
|
11919 }
|
|
11920
|
|
11921 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11922 Defining KERBEROS
|
|
11923 EOF
|
|
11924 cat >> confdefs.h <<\EOF
|
|
11925 #define KERBEROS 1
|
|
11926 EOF
|
|
11927 }
|
|
11928
|
|
11929 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11930 Defining HESIOD
|
|
11931 EOF
|
|
11932 cat >> confdefs.h <<\EOF
|
|
11933 #define HESIOD 1
|
|
11934 EOF
|
|
11935 }
|
|
11936
|
272
|
11937 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11938 Defining USE_UNION_TYPE
|
|
11939 EOF
|
|
11940 cat >> confdefs.h <<\EOF
|
|
11941 #define USE_UNION_TYPE 1
|
149
|
11942 EOF
|
0
|
11943 }
|
70
|
11944
|
|
11945
|
0
|
11946
|
118
|
11947 (
|
149
|
11948 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
11949 else
|
|
11950 echo "uname -a: `uname -a`"
|
|
11951 fi
|
|
11952 echo ""
|
|
11953 echo "$0 $quoted_arguments"
|
261
|
11954 ) > Installation
|
|
11955
|
|
11956 xemacs_betaname=""
|
|
11957 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}"
|
149
|
11958
|
116
|
11959 (
|
0
|
11960 echo "
|
|
11961
|
261
|
11962 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
|
149
|
11963
|
|
11964 Where should the build process find the source code? $srcdir
|
|
11965 What installation prefix should install use? $prefix
|
0
|
11966 What operating system and machine description files should XEmacs use?
|
149
|
11967 \`$opsysfile' and \`$machfile'
|
|
11968 What compiler should XEmacs be built with? $CC $CFLAGS
|
0
|
11969 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
|
149
|
11970 Should XEmacs use the relocating allocator for buffers? $rel_alloc
|
|
11971 What window system should XEmacs use? ${window_system}"
|
|
11972 if test "$with_x11" = "yes"; then
|
|
11973 echo " Where do we find X Windows header files? $x_includes"
|
|
11974 echo " Where do we find X Windows libraries? $x_libraries"
|
|
11975 fi
|
70
|
11976 if test -n "$site_includes"; then
|
149
|
11977 echo " Additional header files: $site_includes"
|
|
11978 fi
|
|
11979 if test -n "$site_libraries"; then
|
|
11980 echo " Additional libraries: $site_libraries"
|
|
11981 fi
|
209
|
11982 if test -n "$site_prefixes"; then
|
|
11983 echo " Additional prefixes: $site_prefixes"
|
|
11984 fi
|
149
|
11985 if test -n "$runpath"; then
|
|
11986 echo " Runtime library search path: $runpath"
|
0
|
11987 fi
|
136
|
11988 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
116
|
11989 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
11990 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
|
149
|
11991 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
116
|
11992 echo " No Xmu; substituting equivalent routines."
|
|
11993 fi
|
149
|
11994
|
153
|
11995 if test "$with_xpm" = yes; then
|
151
|
11996 echo " Compiling in support for XPM images."
|
175
|
11997 elif test "$with_x11" = yes; then
|
151
|
11998 echo " --------------------------------------------------------------------"
|
|
11999 echo " WARNING: Compiling without XPM support."
|
308
|
12000 echo " WARNING: You should strongly consider installing XPM."
|
151
|
12001 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
308
|
12002 echo " WARNING: (a copy may be found at ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
|
12003 echo " --------------------------------------------------------------------"
|
|
12004 fi
|
|
12005 if test "$with_png" = yes; then
|
|
12006 echo " Compiling in support for PNG image handling."
|
|
12007 else
|
|
12008 echo " --------------------------------------------------------------------"
|
|
12009 echo " WARNING: Compiling without PNG image support."
|
|
12010 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
12011 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
12012 echo " WARNING: (a copy may be found at ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
151
|
12013 echo " --------------------------------------------------------------------"
|
|
12014 fi
|
149
|
12015 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
308
|
12016 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling."
|
|
12017 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling."
|
|
12018 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling."
|
149
|
12019 case "$with_sound" in
|
|
12020 nas ) echo " Compiling in network sound (NAS) support." ;;
|
|
12021 native ) echo " Compiling in native sound support." ;;
|
|
12022 both ) echo " Compiling in both network and native sound support." ;;
|
|
12023 esac
|
|
12024 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously"
|
116
|
12025
|
|
12026 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
|
|
12027 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
259
|
12028 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
|
|
12029
|
|
12030 test "$with_umich_ldap" = yes && echo " Compiling in support for LDAP (UMich libs)."
|
|
12031 test "$with_ns_ldap" = yes && echo " Compiling in support for LDAP (Netscape SDK)."
|
|
12032 test "$with_ldap" = yes -a "$with_umich_ldap" = no -a "$with_ns_ldap" = no && echo " Compiling in support for LDAP (Generic)."
|
116
|
12033
|
149
|
12034 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
12035 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
116
|
12036
|
|
12037 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
|
259
|
12038 test "$with_file_coding" = yes && echo " Compiling in File coding support."
|
116
|
12039 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
|
|
12040 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
|
|
12041 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
|
177
|
12042 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar."
|
116
|
12043 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
12044 if test "$with_wnn" = yes; then
|
|
12045 echo " Compiling in support for the WNN input method on Mule."
|
151
|
12046 test "$with_wnn6" = yes && echo " Using WNN version 6."
|
120
|
12047 fi
|
116
|
12048 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
|
|
12049
|
|
12050 test "$with_cde" = yes && echo " Compiling in support for CDE."
|
|
12051 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
|
12052 test "$with_offix" = yes && echo " Compiling in support for OffiX."
|
290
|
12053 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )."
|
149
|
12054 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
259
|
12055 test "$with_session" != no && echo " Compiling in support for proper session-management."
|
203
|
12056 case "$with_menubars" in
|
157
|
12057 lucid ) echo " Using Lucid menubars." ;;
|
|
12058 motif ) echo " Using Motif menubars."
|
|
12059 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
149
|
12060 echo " We recommend using the Lucid menubar instead."
|
|
12061 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
12062 esac
|
|
12063 case "$with_scrollbars" in
|
157
|
12064 lucid ) echo " Using Lucid scrollbars." ;;
|
|
12065 motif ) echo " Using Motif scrollbars." ;;
|
|
12066 athena ) echo " Using Athena scrollbars." ;;
|
|
12067 athena3d ) echo " Using Athena-3d scrollbars." ;;
|
149
|
12068 esac
|
|
12069 case "$with_dialogs" in
|
157
|
12070 motif ) echo " Using Motif dialog boxes." ;;
|
|
12071 athena ) echo " Using Athena dialog boxes." ;;
|
|
12072 athena3d ) echo " Using Athena-3d dialog boxes." ;;
|
149
|
12073 esac
|
261
|
12074 test "$with_shlib" = "yes" && echo " Compiling in DLL support."
|
203
|
12075 test "$with_clash_detection" = yes && \
|
|
12076 echo " Clash detection will use \"$lockdir\" for locking files."
|
157
|
12077 echo " movemail will use \"$mail_locking\" for locking mail spool files."
|
126
|
12078 test "$with_pop" = yes && echo " Using POP for mail access"
|
|
12079 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
|
|
12080 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
|
272
|
12081 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
12082 test "$use_minimal_tagbits" = yes && echo " Using Lisp_Objects with minimal tagbits."
|
|
12083 test "$use_indexed_lrecord_implementation" = yes && echo " Using indexed lrecord implementation."
|
149
|
12084 test "$debug" = yes && echo " Compiling in extra code for debugging."
|
|
12085 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
|
|
12086 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
|
151
|
12087 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
|
|
12088 != "no no no no no"; then
|
|
12089 echo " WARNING: ---------------------------------------------------------"
|
|
12090 echo " WARNING: Compiling in support for runtime error checking."
|
|
12091 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
12092 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
12093 echo " WARNING: ---------------------------------------------------------"
|
|
12094 fi
|
118
|
12095 echo ""
|
116
|
12096 ) | tee -a Installation
|
118
|
12097 echo ""
|
|
12098
|
261
|
12099 echo '(setq Installation-string "' > Installation.el
|
|
12100 sed 's/"/\\"/g' Installation >> Installation.el
|
|
12101 echo '")' >> Installation.el
|
|
12102
|
70
|
12103
|
120
|
12104
|
0
|
12105 # Remove any trailing slashes in these variables.
|
149
|
12106 test -n "$prefix" &&
|
159
|
12107 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
12108 test -n "$exec_prefix" &&
|
159
|
12109 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
12110
|
|
12111
|
272
|
12112 for file in $internal_makefile_list; do
|
|
12113 test "$file" = src/Makefile.in && \
|
|
12114 file="src/Makefile.in:src/Makefile.in.in:src/depend"
|
|
12115 ac_output_files="${ac_output_files+$ac_output_files }$file"
|
|
12116 done
|
276
|
12117 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
|
272
|
12118
|
149
|
12119 trap '' 1 2 15
|
|
12120
|
|
12121 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
12122
|
|
12123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
12124 # Let make expand exec_prefix.
|
|
12125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
12126
|
|
12127 # Any assignment to VPATH causes Sun make to only execute
|
|
12128 # the first set of double-colon rules, so remove it if not needed.
|
|
12129 # If there is a colon in the path, we need to keep it.
|
|
12130 if test "x$srcdir" = x.; then
|
|
12131 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
12132 fi
|
|
12133
|
149
|
12134 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
12135
|
|
12136 DEFS=-DHAVE_CONFIG_H
|
|
12137
|
|
12138 # Without the "./", some shells look in PATH for config.status.
|
|
12139 : ${CONFIG_STATUS=./config.status}
|
|
12140
|
|
12141 echo creating $CONFIG_STATUS
|
|
12142 rm -f $CONFIG_STATUS
|
|
12143 cat > $CONFIG_STATUS <<EOF
|
|
12144 #! /bin/sh
|
0
|
12145 # Generated automatically by configure.
|
|
12146 # Run this file to recreate the current configuration.
|
|
12147 # This directory was configured as follows,
|
|
12148 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
12149 #
|
149
|
12150 # $0 $ac_configure_args
|
|
12151 #
|
|
12152 # Compiler output produced by configure, useful for debugging
|
|
12153 # configure, is in ./config.log if it exists.
|
|
12154
|
|
12155 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
12156 for ac_option
|
|
12157 do
|
|
12158 case "\$ac_option" in
|
|
12159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
12160 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
12161 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
12162 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
149
|
12163 echo "$CONFIG_STATUS generated by autoconf version 2.12"
|
0
|
12164 exit 0 ;;
|
|
12165 -help | --help | --hel | --he | --h)
|
|
12166 echo "\$ac_cs_usage"; exit 0 ;;
|
|
12167 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
12168 esac
|
|
12169 done
|
|
12170
|
|
12171 ac_given_srcdir=$srcdir
|
149
|
12172 ac_given_INSTALL="$INSTALL"
|
|
12173
|
276
|
12174 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
12175 EOF
|
|
12176 cat >> $CONFIG_STATUS <<EOF
|
|
12177
|
|
12178 # Protect against being on the right side of a sed subst in config.status.
|
|
12179 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
12180 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
12181 $ac_vpsub
|
|
12182 $extrasub
|
149
|
12183 s%@CFLAGS@%$CFLAGS%g
|
|
12184 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
12185 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
12186 s%@DEFS@%$DEFS%g
|
|
12187 s%@LDFLAGS@%$LDFLAGS%g
|
|
12188 s%@LIBS@%$LIBS%g
|
|
12189 s%@exec_prefix@%$exec_prefix%g
|
|
12190 s%@prefix@%$prefix%g
|
|
12191 s%@program_transform_name@%$program_transform_name%g
|
|
12192 s%@bindir@%$bindir%g
|
|
12193 s%@sbindir@%$sbindir%g
|
|
12194 s%@libexecdir@%$libexecdir%g
|
|
12195 s%@datadir@%$datadir%g
|
|
12196 s%@sysconfdir@%$sysconfdir%g
|
|
12197 s%@sharedstatedir@%$sharedstatedir%g
|
|
12198 s%@localstatedir@%$localstatedir%g
|
|
12199 s%@libdir@%$libdir%g
|
|
12200 s%@includedir@%$includedir%g
|
|
12201 s%@oldincludedir@%$oldincludedir%g
|
|
12202 s%@infodir@%$infodir%g
|
|
12203 s%@mandir@%$mandir%g
|
0
|
12204 s%@LN_S@%$LN_S%g
|
181
|
12205 s%@blddir@%$blddir%g
|
0
|
12206 s%@CC@%$CC%g
|
|
12207 s%@CPP@%$CPP%g
|
207
|
12208 s%@start_flags@%$start_flags%g
|
163
|
12209 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
12210 s%@start_files@%$start_files%g
|
|
12211 s%@ld@%$ld%g
|
|
12212 s%@lib_gcc@%$lib_gcc%g
|
0
|
12213 s%@RANLIB@%$RANLIB%g
|
|
12214 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
12215 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
12216 s%@YACC@%$YACC%g
|
|
12217 s%@SET_MAKE@%$SET_MAKE%g
|
149
|
12218 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
12219 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
12220 s%@X_LIBS@%$X_LIBS%g
|
|
12221 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
12222 s%@install_pp@%$install_pp%g
|
159
|
12223 s%@libs_xauth@%$libs_xauth%g
|
274
|
12224 s%@dnd_objs@%$dnd_objs%g
|
157
|
12225 s%@lwlib_objs@%$lwlib_objs%g
|
0
|
12226 s%@ALLOCA@%$ALLOCA%g
|
265
|
12227 s%@dll_ld@%$dll_ld%g
|
|
12228 s%@dll_cflags@%$dll_cflags%g
|
|
12229 s%@dll_oflags@%$dll_oflags%g
|
|
12230 s%@dll_lflags@%$dll_lflags%g
|
151
|
12231 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
12232 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
12233 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
12234 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
12235 s%@PROGNAME@%$PROGNAME%g
|
0
|
12236 s%@version@%$version%g
|
|
12237 s%@configuration@%$configuration%g
|
|
12238 s%@canonical@%$canonical%g
|
|
12239 s%@srcdir@%$srcdir%g
|
155
|
12240 s%@pkgdir@%$pkgdir%g
|
0
|
12241 s%@statedir@%$statedir%g
|
278
|
12242 s%@PREFIX@%$PREFIX%g
|
|
12243 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
12244 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
12245 s%@INFODIR@%$INFODIR%g
|
203
|
12246 s%@infopath@%$infopath%g
|
274
|
12247 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
12248 s%@INFOPATH@%$INFOPATH%g
|
269
|
12249 s%@package_path@%$package_path%g
|
274
|
12250 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
12251 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
12252 s%@lispdir@%$lispdir%g
|
274
|
12253 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
12254 s%@LISPDIR@%$LISPDIR%g
|
0
|
12255 s%@etcdir@%$etcdir%g
|
274
|
12256 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
12257 s%@ETCDIR@%$ETCDIR%g
|
0
|
12258 s%@lockdir@%$lockdir%g
|
274
|
12259 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
|
|
12260 s%@LOCKDIR@%$LOCKDIR%g
|
0
|
12261 s%@archlibdir@%$archlibdir%g
|
274
|
12262 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
12263 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
12264 s%@docdir@%$docdir%g
|
|
12265 s%@bitmapdir@%$bitmapdir%g
|
149
|
12266 s%@extra_objs@%$extra_objs%g
|
263
|
12267 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
0
|
12268 s%@machfile@%$machfile%g
|
|
12269 s%@opsysfile@%$opsysfile%g
|
149
|
12270 s%@c_switch_general@%$c_switch_general%g
|
|
12271 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
12272 s%@c_switch_all@%$c_switch_all%g
|
|
12273 s%@ld_switch_general@%$ld_switch_general%g
|
|
12274 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
12275 s%@ld_switch_all@%$ld_switch_all%g
|
|
12276 s%@ld_libs_general@%$ld_libs_general%g
|
|
12277 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
12278 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
12279 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
12280 s%@native_sound_lib@%$native_sound_lib%g
|
|
12281 s%@sound_cflags@%$sound_cflags%g
|
0
|
12282 s%@dynodump_arch@%$dynodump_arch%g
|
|
12283 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
12284
|
|
12285 CEOF
|
|
12286 EOF
|
|
12287
|
|
12288 cat >> $CONFIG_STATUS <<\EOF
|
|
12289
|
|
12290 # Split the substitutions into bite-sized pieces for seds with
|
|
12291 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
12292 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
12293 ac_file=1 # Number of current file.
|
|
12294 ac_beg=1 # First line for current file.
|
|
12295 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
12296 ac_more_lines=:
|
|
12297 ac_sed_cmds=""
|
|
12298 while $ac_more_lines; do
|
|
12299 if test $ac_beg -gt 1; then
|
|
12300 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
12301 else
|
|
12302 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
12303 fi
|
|
12304 if test ! -s conftest.s$ac_file; then
|
|
12305 ac_more_lines=false
|
|
12306 rm -f conftest.s$ac_file
|
|
12307 else
|
|
12308 if test -z "$ac_sed_cmds"; then
|
|
12309 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
12310 else
|
|
12311 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
12312 fi
|
|
12313 ac_file=`expr $ac_file + 1`
|
|
12314 ac_beg=$ac_end
|
|
12315 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
12316 fi
|
|
12317 done
|
|
12318 if test -z "$ac_sed_cmds"; then
|
|
12319 ac_sed_cmds=cat
|
|
12320 fi
|
|
12321 EOF
|
|
12322
|
|
12323 cat >> $CONFIG_STATUS <<EOF
|
|
12324
|
272
|
12325 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
12326 EOF
|
|
12327 cat >> $CONFIG_STATUS <<\EOF
|
|
12328 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
12329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
12330 case "$ac_file" in
|
|
12331 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
12332 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
12333 *) ac_file_in="${ac_file}.in" ;;
|
|
12334 esac
|
|
12335
|
|
12336 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
12337
|
|
12338 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
12339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
12340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
12341 # The file is in a subdirectory.
|
|
12342 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
12343 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
12344 # A "../" for each directory in $ac_dir_suffix.
|
|
12345 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
12346 else
|
|
12347 ac_dir_suffix= ac_dots=
|
|
12348 fi
|
|
12349
|
|
12350 case "$ac_given_srcdir" in
|
|
12351 .) srcdir=.
|
|
12352 if test -z "$ac_dots"; then top_srcdir=.
|
|
12353 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
12354 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
12355 *) # Relative path.
|
|
12356 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
12357 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
12358 esac
|
|
12359
|
|
12360 case "$ac_given_INSTALL" in
|
|
12361 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
12362 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
12363 esac
|
|
12364
|
|
12365 echo creating "$ac_file"
|
|
12366 rm -f "$ac_file"
|
|
12367 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
12368 case "$ac_file" in
|
|
12369 *Makefile*) ac_comsub="1i\\
|
|
12370 # $configure_input" ;;
|
|
12371 *) ac_comsub= ;;
|
|
12372 esac
|
|
12373
|
|
12374 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
12375 sed -e "$ac_comsub
|
|
12376 s%@configure_input@%$configure_input%g
|
|
12377 s%@srcdir@%$srcdir%g
|
0
|
12378 s%@top_srcdir@%$top_srcdir%g
|
149
|
12379 s%@INSTALL@%$INSTALL%g
|
|
12380 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
12381 fi; done
|
149
|
12382 rm -f conftest.s*
|
|
12383
|
|
12384 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
12385 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
12386 #
|
|
12387 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
12388 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
12389 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
12390 ac_dC='\3'
|
149
|
12391 ac_dD='%g'
|
0
|
12392 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
12393 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
12394 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
12395 ac_uC=' '
|
149
|
12396 ac_uD='\4%g'
|
0
|
12397 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
12398 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
12399 ac_eB='$%\1#\2define\3'
|
0
|
12400 ac_eC=' '
|
149
|
12401 ac_eD='%g'
|
|
12402
|
|
12403 if test "${CONFIG_HEADERS+set}" != set; then
|
|
12404 EOF
|
|
12405 cat >> $CONFIG_STATUS <<EOF
|
276
|
12406 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
12407 EOF
|
|
12408 cat >> $CONFIG_STATUS <<\EOF
|
|
12409 fi
|
|
12410 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
12411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
12412 case "$ac_file" in
|
|
12413 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
12414 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
12415 *) ac_file_in="${ac_file}.in" ;;
|
|
12416 esac
|
|
12417
|
|
12418 echo creating $ac_file
|
|
12419
|
|
12420 rm -f conftest.frag conftest.in conftest.out
|
|
12421 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
12422 cat $ac_file_inputs > conftest.in
|
|
12423
|
|
12424 EOF
|
|
12425
|
|
12426 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
12427 # the proper values into config.h.in to produce config.h. And first:
|
|
12428 # Protect against being on the right side of a sed subst in config.status.
|
|
12429 # Protect against being in an unquoted here document in config.status.
|
|
12430 rm -f conftest.vals
|
|
12431 cat > conftest.hdr <<\EOF
|
|
12432 s/[\\&%]/\\&/g
|
|
12433 s%[\\$`]%\\&%g
|
|
12434 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
12435 s%ac_d%ac_u%gp
|
|
12436 s%ac_u%ac_e%gp
|
|
12437 EOF
|
|
12438 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
12439 rm -f conftest.hdr
|
|
12440
|
|
12441 # This sed command replaces #undef with comments. This is necessary, for
|
|
12442 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
12443 # on some systems where configure will not decide to define it.
|
|
12444 cat >> conftest.vals <<\EOF
|
|
12445 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
12446 EOF
|
|
12447
|
|
12448 # Break up conftest.vals because some shells have a limit on
|
|
12449 # the size of here documents, and old seds have small limits too.
|
|
12450
|
|
12451 rm -f conftest.tail
|
0
|
12452 while :
|
|
12453 do
|
149
|
12454 ac_lines=`grep -c . conftest.vals`
|
|
12455 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
12456 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
12457 # Write a limited-size here document to conftest.frag.
|
|
12458 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
12459 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
12460 echo 'CEOF
|
|
12461 sed -f conftest.frag conftest.in > conftest.out
|
|
12462 rm -f conftest.in
|
|
12463 mv conftest.out conftest.in
|
|
12464 ' >> $CONFIG_STATUS
|
|
12465 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
12466 rm -f conftest.vals
|
|
12467 mv conftest.tail conftest.vals
|
0
|
12468 done
|
149
|
12469 rm -f conftest.vals
|
|
12470
|
|
12471 cat >> $CONFIG_STATUS <<\EOF
|
|
12472 rm -f conftest.frag conftest.h
|
0
|
12473 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
12474 cat conftest.in >> conftest.h
|
|
12475 rm -f conftest.in
|
0
|
12476 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
12477 echo "$ac_file is unchanged"
|
|
12478 rm -f conftest.h
|
|
12479 else
|
149
|
12480 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
12481 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
12482 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
12483 # The file is in a subdirectory.
|
|
12484 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
12485 fi
|
0
|
12486 rm -f $ac_file
|
|
12487 mv conftest.h $ac_file
|
|
12488 fi
|
|
12489 fi; done
|
149
|
12490
|
|
12491 EOF
|
|
12492 cat >> $CONFIG_STATUS <<EOF
|
|
12493 CPP="$CPP"
|
|
12494 CPPFLAGS="$CPPFLAGS"
|
|
12495 top_srcdir="$srcdir"
|
|
12496 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
12497
|
|
12498 EOF
|
|
12499 cat >> $CONFIG_STATUS <<\EOF
|
|
12500 for dir in $MAKE_SUBDIR; do
|
|
12501 echo creating $dir/Makefile
|
151
|
12502 (
|
149
|
12503 cd $dir
|
|
12504 rm -f junk.c
|
163
|
12505 < Makefile.in \
|
165
|
12506 sed -e '/^# Generated/d' \
|
163
|
12507 -e 's%/\*\*/#.*%%' \
|
165
|
12508 -e 's/^ *# */#/' \
|
163
|
12509 -e '/^##/d' \
|
|
12510 -e '/^#/ {
|
|
12511 p
|
|
12512 d
|
|
12513 }' -e '/./ {
|
|
12514 s/\([\"]\)/\\\1/g
|
|
12515 s/^/"/
|
|
12516 s/$/"/
|
|
12517 }' > junk.c;
|
149
|
12518 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp;
|
|
12519 < junk.cpp \
|
|
12520 sed -e 's/^#.*//' \
|
165
|
12521 -e 's/^[ ][ ]*$//' \
|
|
12522 -e 's/^ / /' \
|
149
|
12523 | sed -n -e '/^..*$/p' \
|
163
|
12524 | sed '/^"/ {
|
|
12525 s/\\\([\"]\)/\1/g
|
272
|
12526 s/^[ ]*"//
|
|
12527 s/"[ ]*$//
|
163
|
12528 }' > Makefile.new
|
149
|
12529 chmod 444 Makefile.new
|
|
12530 mv -f Makefile.new Makefile
|
|
12531 rm -f junk.c junk.cpp
|
165
|
12532 )
|
149
|
12533 done
|
0
|
12534
|
181
|
12535 sed < config.status >> lib-src/config.values \
|
|
12536 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
12537 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
12538 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
12539 -e 's/ 1$/ t/'
|
175
|
12540
|
|
12541
|
0
|
12542 exit 0
|
|
12543 EOF
|
149
|
12544 chmod +x $CONFIG_STATUS
|
|
12545 rm -fr confdefs* $ac_clean_files
|
|
12546 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
12547
|