149
|
1 #! /bin/sh
|
|
2
|
|
3 #### Configuration script for XEmacs. Largely divergent from FSF.
|
|
4 #### Guess values for system-dependent variables and create Makefiles.
|
420
|
5 #### Generated automatically using autoconf version 2.13
|
460
|
6 #### Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 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.
|
460
|
10 #### Copyright (C) 2000, 2001 Martin Buchholz.
|
388
|
11 #### Copyright (C) 1998, 1999 J. Kean Johnston.
|
0
|
12
|
|
13 ### Don't edit this script!
|
|
14 ### This script was automatically generated by the `autoconf' program
|
|
15 ### from the file `./configure.in'.
|
|
16 ### To rebuild it, execute the command
|
|
17 ### autoconf
|
442
|
18 ### in the this directory. You must have autoconf version 2.13 or later.
|
0
|
19
|
|
20 ### This file is part of XEmacs.
|
|
21
|
|
22 ### XEmacs is free software; you can redistribute it and/or modify it
|
|
23 ### under the terms of the GNU General Public License as published by
|
|
24 ### the Free Software Foundation; either version 2, or (at your
|
|
25 ### option) any later version.
|
|
26
|
|
27 ### XEmacs is distributed in the hope that it will be useful, but
|
|
28 ### WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
29 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
30 ### General Public License for more details.
|
|
31
|
|
32 ### You should have received a copy of the GNU General Public License
|
|
33 ### along with XEmacs; see the file COPYING. If not, write to the Free
|
|
34 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
35 ### 02111-1307, USA.
|
|
36
|
149
|
37 ### For usage, run `./configure --help'
|
|
38 ### For more detailed information on building and installing XEmacs,
|
|
39 ### read the file `INSTALL'.
|
0
|
40 ###
|
|
41 ### If configure succeeds, it leaves its status in config.status.
|
149
|
42 ### A log of configuration tests can be found in config.log.
|
0
|
43 ### If configure fails after disturbing the status quo,
|
|
44 ### config.status is removed.
|
|
45
|
149
|
46 ac_help="$ac_help
|
|
47 --with-x use the X Window System"
|
|
48
|
284
|
49
|
|
50
|
|
51 if test -n "$ZSH_VERSION"; then
|
|
52 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO
|
|
53 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH
|
|
54 setopt RM_STAR_SILENT POSIX_BUILTINS SH_FILE_EXPANSION SH_GLOB SH_OPTION_LETTERS
|
|
55 setopt SH_WORD_SPLIT BSD_ECHO IGNORE_BRACES
|
|
56 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
57 elif test -n "$BASH_VERSION"; then
|
|
58 set -o posix
|
|
59 unset CDPATH
|
|
60 else
|
|
61 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
|
|
62 fi
|
|
63
|
149
|
64 exec_prefix=NONE
|
|
65 host=NONE
|
|
66 no_create=
|
|
67 nonopt=NONE
|
|
68 no_recursion=
|
|
69 prefix=NONE
|
|
70 program_prefix=NONE
|
|
71 program_suffix=NONE
|
|
72 program_transform_name=s,x,x,
|
|
73 silent=
|
|
74 site=
|
|
75 srcdir=
|
|
76 target=NONE
|
|
77 verbose=
|
|
78 x_includes=NONE
|
|
79 x_libraries=NONE
|
153
|
80
|
149
|
81 subdirs=
|
|
82 MFLAGS= MAKEFLAGS=
|
442
|
83 SHELL=${CONFIG_SHELL-/bin/sh}
|
149
|
84 ac_max_here_lines=12
|
|
85
|
|
86 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
87
|
|
88 # File descriptor usage:
|
|
89 # 0 standard input
|
|
90 # 1 file creation
|
|
91 # 2 errors and warnings
|
|
92 # 3 some systems may open it to /dev/tty
|
|
93 # 4 used on the Kubota Titan
|
|
94 # 6 checking for... messages and results
|
|
95 # 5 compiler messages saved in config.log
|
|
96 if test "$silent" = yes; then
|
|
97 exec 6>/dev/null
|
|
98 else
|
|
99 exec 6>&1
|
|
100 fi
|
|
101 exec 5>./config.log
|
|
102
|
|
103 echo "\
|
|
104 This file contains any messages produced by compilers while
|
|
105 running configure, to aid debugging if configure makes a mistake.
|
|
106 " 1>&5
|
|
107
|
|
108 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
109 # Also quote any args containing shell metacharacters.
|
|
110 ac_configure_args=
|
|
111 for ac_arg
|
|
112 do
|
|
113 case "$ac_arg" in
|
|
114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
115 | --no-cr | --no-c) ;;
|
|
116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
119 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
120 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
121 esac
|
|
122 done
|
|
123
|
|
124 # NLS nuisances.
|
|
125 # Only set these to C if already set. These must not be set unconditionally
|
|
126 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
127 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
128 # Non-C LC_CTYPE values break the ctype check.
|
|
129 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
130 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
131 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
132 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
133
|
|
134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
135 rm -rf conftest* confdefs.h
|
|
136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
137 echo > confdefs.h
|
|
138
|
|
139 # A filename unique to this package, relative to the directory that
|
|
140 # configure is in, which we can look for to find out if srcdir is correct.
|
|
141 ac_unique_file=src/lisp.h
|
|
142
|
|
143 # Find the source files, if location was not specified.
|
|
144 if test -z "$srcdir"; then
|
|
145 ac_srcdir_defaulted=yes
|
|
146 # Try the directory containing this script, then its parent.
|
|
147 ac_prog=$0
|
|
148 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
149 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
150 srcdir=$ac_confdir
|
|
151 if test ! -r $srcdir/$ac_unique_file; then
|
|
152 srcdir=..
|
|
153 fi
|
|
154 else
|
|
155 ac_srcdir_defaulted=no
|
|
156 fi
|
|
157 if test ! -r $srcdir/$ac_unique_file; then
|
|
158 if test "$ac_srcdir_defaulted" = yes; then
|
|
159 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
160 else
|
|
161 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
162 fi
|
|
163 fi
|
|
164 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
165
|
|
166 # Prefer explicitly selected file to automatically selected ones.
|
|
167 if test -z "$CONFIG_SITE"; then
|
|
168 if test "x$prefix" != xNONE; then
|
|
169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
170 else
|
|
171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
172 fi
|
|
173 fi
|
|
174 for ac_site_file in $CONFIG_SITE; do
|
|
175 if test -r "$ac_site_file"; then
|
|
176 echo "loading site script $ac_site_file"
|
|
177 . "$ac_site_file"
|
|
178 fi
|
|
179 done
|
|
180
|
|
181
|
|
182 ac_ext=c
|
151
|
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
186 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
189 cross_compiling=no
|
|
190
|
420
|
191 ac_exeext=
|
|
192 ac_objext=o
|
149
|
193 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
194 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
195 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
196 ac_n= ac_c='
|
|
197 ' ac_t=' '
|
|
198 else
|
|
199 ac_n=-n ac_c= ac_t=
|
|
200 fi
|
|
201 else
|
|
202 ac_n= ac_c='\c' ac_t=
|
|
203 fi
|
|
204
|
|
205
|
0
|
206 progname="`echo $0 | sed 's:^\./\./:\./:'`"
|
|
207
|
149
|
208
|
151
|
209 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi
|
167
|
210 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
149
|
211
|
0
|
212 prefix='/usr/local'
|
|
213 exec_prefix='${prefix}'
|
|
214 bindir='${exec_prefix}/bin'
|
|
215 datadir='${prefix}/lib'
|
|
216 statedir='${prefix}/lib'
|
|
217 libdir='${exec_prefix}/lib'
|
|
218 mandir='${prefix}/man/man1'
|
422
|
219 inststaticdir='${PROGNAME}'
|
|
220 instvardir='${PROGNAME}-${version}'
|
|
221 infodir='${datadir}/${instvardir}/info'
|
274
|
222 infopath=''
|
276
|
223 install_pp=''
|
422
|
224 lispdir='${datadir}/${instvardir}/lisp'
|
|
225 moduledir='${datadir}/${instvardir}/${configuration}/modules'
|
|
226 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
|
|
227 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
|
|
228 pkgdir='${datadir}/${instvardir}/lisp'
|
274
|
229 package_path=''
|
422
|
230 etcdir='${datadir}/${instvardir}/etc'
|
|
231 archlibdir='${datadir}/${instvardir}/${configuration}'
|
420
|
232 docdir='${archlibdir}'
|
462
|
233 with_netinstall="no"
|
420
|
234 with_prefix='yes'
|
269
|
235 with_site_lisp='no'
|
388
|
236 with_site_modules='yes'
|
0
|
237 with_menubars=''
|
|
238 with_scrollbars=''
|
420
|
239 with_widgets=''
|
0
|
240 with_dialogs=''
|
561
|
241 with_file_coding='no'
|
272
|
242 cpp='' cppflags='' libs='' ldflags=''
|
452
|
243 extra_includes=''
|
0
|
244 dynamic=''
|
|
245 with_x11=''
|
263
|
246 with_msw=''
|
0
|
247 rel_alloc='default'
|
181
|
248 with_system_malloc='default'
|
261
|
249 with_dlmalloc='default'
|
0
|
250 native_sound_lib=''
|
462
|
251 with_gtk='no'
|
|
252 with_gnome='no'
|
153
|
253 use_assertions="yes"
|
|
254 with_toolbars=""
|
157
|
255 with_tty=""
|
153
|
256 use_union_type="no"
|
|
257 with_dnet=""
|
424
|
258 pdump="no"
|
440
|
259 with_dragndrop="no"
|
0
|
260
|
149
|
261
|
|
262
|
|
263
|
0
|
264 arguments="$@"
|
|
265
|
120
|
266 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
|
0
|
267 quoted_arguments=
|
|
268 for i in "$@"; do
|
120
|
269 case "$i" in
|
|
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
271 | --no-cr | --no-c) ;;
|
153
|
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
120
|
274 *)
|
159
|
275 quoted_i="`echo '' $i | sed -e 's:^ ::' -e $quoted_sed_magic`"
|
120
|
276 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
|
|
277 esac
|
0
|
278 done
|
|
279
|
70
|
280 while test $# != 0; do
|
0
|
281 arg="$1"; shift
|
149
|
282 case "$arg" in
|
157
|
283 --no-create|--no-recursion) ;;
|
149
|
284 -* )
|
|
285 case "$arg" in
|
0
|
286 -*=*)
|
149
|
287 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
|
|
288 val=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
|
0
|
289 valomitted=no
|
|
290 ;;
|
149
|
291 -*)
|
|
292 opt=`echo '' $arg | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
|
243
|
293 val="yes" valomitted=yes
|
0
|
294 ;;
|
|
295 esac
|
|
296
|
274
|
297 optname="$opt"
|
|
298 opt="`echo '' $opt | sed -e 's:^ ::' | tr - _`"
|
|
299
|
243
|
300 case "${valomitted}-${opt}" in yes-without_* )
|
|
301 opt=`echo $opt | sed 's/without/with/'`
|
|
302 valomitted="no" val="no" ;;
|
|
303 esac
|
|
304
|
149
|
305 case "$opt" in
|
|
306
|
380
|
307 with_site_lisp | \
|
420
|
308 with_prefix | \
|
|
309 with_site_modules | \
|
70
|
310 with_x | \
|
|
311 with_x11 | \
|
462
|
312 with_gtk | \
|
|
313 with_gnome | \
|
263
|
314 with_msw | \
|
70
|
315 with_gcc | \
|
|
316 dynamic | \
|
149
|
317 with_ncurses | \
|
|
318 with_dnet | \
|
|
319 with_socks | \
|
282
|
320 with_dragndrop | \
|
70
|
321 with_cde | \
|
|
322 with_offix | \
|
149
|
323 with_gpm | \
|
|
324 with_xpm | \
|
|
325 with_xface | \
|
251
|
326 with_gif | \
|
|
327 with_jpeg | \
|
|
328 with_png | \
|
|
329 with_tiff | \
|
414
|
330 with_wmcommand | \
|
70
|
331 with_xmu | \
|
380
|
332 with_purify | \
|
149
|
333 with_quantify | \
|
70
|
334 with_toolbars | \
|
|
335 with_tty | \
|
215
|
336 with_xfs | \
|
70
|
337 with_i18n3 | \
|
|
338 with_mule | \
|
380
|
339 with_file_coding| \
|
70
|
340 with_canna | \
|
|
341 with_wnn | \
|
98
|
342 with_wnn6 | \
|
149
|
343 with_workshop | \
|
70
|
344 with_sparcworks | \
|
380
|
345 with_tooltalk | \
|
259
|
346 with_ldap | \
|
442
|
347 with_postgresql | \
|
118
|
348 with_pop | \
|
|
349 with_kerberos | \
|
|
350 with_hesiod | \
|
136
|
351 with_dnet | \
|
280
|
352 with_infodock | \
|
462
|
353 with_netinstall | \
|
70
|
354 external_widget | \
|
120
|
355 verbose | \
|
|
356 extra_verbose | \
|
380
|
357 usage_tracking | \
|
|
358 use_union_type | \
|
424
|
359 pdump | \
|
70
|
360 debug | \
|
|
361 use_assertions | \
|
|
362 memory_usage_stats | \
|
173
|
363 with_clash_detection | \
|
422
|
364 with_modules | \
|
442
|
365 quick_build )
|
149
|
366 case "$val" in
|
0
|
367 y | ye | yes ) val=yes ;;
|
380
|
368 n | no ) val=no ;;
|
149
|
369 * ) (echo "$progname: Usage error:"
|
|
370 echo " " "The \`--$optname' option requires a boolean value: \`yes' or \`no'."
|
|
371 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
372 esac
|
380
|
373 eval "$opt=\"$val\"" ;;
|
149
|
374
|
|
375
|
153
|
376 srcdir | \
|
70
|
377 compiler | \
|
157
|
378 cflags | \
|
272
|
379 cpp | \
|
|
380 cppflags | \
|
|
381 libs | \
|
|
382 ldflags | \
|
153
|
383 cache_file | \
|
380
|
384 native_sound_lib| \
|
267
|
385 site_lisp | \
|
70
|
386 x_includes | \
|
|
387 x_libraries | \
|
|
388 site_includes | \
|
|
389 site_libraries | \
|
209
|
390 site_prefixes | \
|
149
|
391 site_runtime_libraries )
|
|
392 if test "$valomitted" = "yes" ; then
|
|
393 if test "$#" = 0 ; then
|
|
394 (echo "$progname: Usage error:"
|
|
395 echo " " "The \`--$optname' option requires a value."
|
|
396 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
0
|
397 fi
|
|
398 val="$1"; shift
|
|
399 fi
|
149
|
400 eval "$opt=\"$val\""
|
0
|
401 ;;
|
|
402
|
149
|
403 rel_alloc | \
|
261
|
404 with_dlmalloc | \
|
181
|
405 with_debug_malloc | use_debug_malloc | \
|
|
406 with_system_malloc | use_system_malloc )
|
149
|
407 case "$val" in
|
0
|
408 y | ye | yes ) val=yes ;;
|
|
409 n | no ) val=no ;;
|
181
|
410 d | de | def | defa | defau | defaul | default ) val=default ;;
|
149
|
411 * ) (echo "$progname: Usage error:"
|
|
412 echo " " "The \`--$optname' option requires one of these values:
|
120
|
413 \`yes', \`no', or \`default'."
|
149
|
414 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
415 esac
|
265
|
416 case "$opt" in use_* ) opt="`echo $opt | sed s/use/with/`" ;; esac
|
149
|
417 eval "$opt=\"$val\""
|
0
|
418 ;;
|
|
419
|
149
|
420 "with_database" )
|
120
|
421 with_database_berkdb=no
|
|
422 with_database_dbm=no
|
426
|
423 with_database_gdbm=no
|
300
|
424 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
425 case "$x" in
|
426
|
426 no ) ;;
|
|
427 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
|
|
428 d | db | dbm ) with_database_dbm=yes ;;
|
|
429 g | gn | gnu | gnud | gnudb | gnudbm | gdbm) with_database_gdbm=yes ;;
|
|
430 * ) (echo "$progname: Usage error:"
|
149
|
431 echo " " "The \`--$optname' option value
|
120
|
432 must be either \`no' or a comma-separated list
|
380
|
433 of one or more of \`berkdb' and either \`dbm' or \`gnudbm'."
|
149
|
434 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
120
|
435 esac
|
|
436 done
|
426
|
437 if test "$with_database_dbm" = "yes" -a \
|
|
438 "$with_database_gdbm" = "yes"; then
|
149
|
439 (echo "$progname: Usage error:"
|
120
|
440 echo " " "Only one of \`dbm' and \`gnudbm' may be specified
|
149
|
441 with the \`--$optname' option."
|
|
442 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
443 fi
|
70
|
444 ;;
|
0
|
445
|
149
|
446 "with_sound" )
|
426
|
447 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
|
448 case "$x" in
|
|
449 n | no | non | none ) new_sdefault=no ;;
|
|
450 a | al | all | both ) new_sdefault=yes ;;
|
|
451
|
|
452 native ) with_native_sound=yes ;;
|
|
453 nonative ) with_native_sound=no ;;
|
|
454
|
|
455 nas ) with_nas_sound=yes ;;
|
|
456 nonas ) with_nas_sound=no ;;
|
|
457
|
432
|
458 esd ) with_esd_sound=yes ;;
|
|
459 noesd ) with_esd_sound=no ;;
|
426
|
460
|
|
461 * ) bogus_sound=yes ;;
|
|
462 esac
|
|
463 if test "$bogus_sound" -o \
|
|
464 \( -n "$new_sdefault" -a -n "$sound_notfirst" \) ; then
|
|
465 types="\`all', \`none', \`(no)native', \`no(nas)', \`(no)esd'."
|
|
466 (echo "$progname: Usage error:"
|
|
467 echo " " "Valid types for the \`--$optname' option are:
|
|
468 $types.
|
432
|
469 The default is to autodetect all sound support."
|
426
|
470 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
471 elif test -n "$new_sdefault" ; then
|
|
472 with_native_sound=$new_sdefault
|
|
473 with_nas_sound=$new_sdefault
|
432
|
474 with_esd_sound=$new_sdefault
|
426
|
475 new_sdefault= # reset this
|
|
476 fi
|
|
477 sound_notfirst=true
|
|
478 done
|
0
|
479 ;;
|
|
480
|
434
|
481 "with_athena" )
|
|
482 case "$val" in
|
|
483 xa | xaw ) val=xaw ;;
|
|
484 3 | 3d | xaw3d ) val=3d ;;
|
|
485 ne | nex | next | naxtaw) val=next ;;
|
|
486 9 | 95 | xaw95 ) val=95 ;;
|
|
487 xp | xpm | xawxpm ) val=xpm ;;
|
|
488 * ) (echo "$progname: Usage error:"
|
|
489 echo " " "The \`--$optname' option must have one of these values:
|
|
490 \`xaw', \`3d', \`next', \`95', or \`xpm'."
|
|
491 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
492 esac
|
|
493 eval "$opt=\"$val\""
|
|
494 ;;
|
|
495
|
149
|
496 "with_xim" )
|
|
497 case "$val" in
|
|
498 y | ye | yes ) val=yes ;;
|
|
499 n | no | non | none ) val=no ;;
|
|
500 x | xl | xli | xlib ) val=xlib ;;
|
|
501 m | mo | mot | moti | motif ) val=motif ;;
|
|
502 * ) (echo "$progname: Usage error:"
|
|
503 echo " " "The \`--$optname' option must have one of these values:
|
|
504 \`motif', \`xlib', \`yes', or \`no'."
|
|
505 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
506 esac
|
149
|
507 eval "$opt=\"$val\""
|
0
|
508 ;;
|
|
509
|
149
|
510 "mail_locking" )
|
|
511 case "$val" in
|
|
512 lockf ) val=lockf ;;
|
|
513 flock ) val=flock ;;
|
438
|
514 file | dot ) val=file ;;
|
|
515 locking ) val=locking ;;
|
149
|
516 * ) (echo "$progname: Usage error:"
|
|
517 echo " " "The \`--$optname' option must have one of these values:
|
438
|
518 \`lockf', \`flock', \`file', \`locking', or \`mmdf'."
|
149
|
519 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
|
520 esac
|
|
521 eval "$opt=\"$val\""
|
|
522 ;;
|
|
523
|
|
524 "error_checking" )
|
|
525
|
267
|
526 for x in `echo "$val" | sed -e 's/,/ /g'` ; do
|
149
|
527 case "$x" in
|
|
528 n | no | non | none ) new_default=no ;;
|
0
|
529 a | al | all ) new_default=yes ;;
|
|
530
|
|
531 extents ) error_check_extents=yes ;;
|
|
532 noextents ) error_check_extents=no ;;
|
|
533
|
|
534 typecheck ) error_check_typecheck=yes ;;
|
|
535 notypecheck ) error_check_typecheck=no ;;
|
|
536
|
|
537 bufpos ) error_check_bufpos=yes ;;
|
|
538 nobufpos ) error_check_bufpos=no ;;
|
|
539
|
|
540 gc ) error_check_gc=yes ;;
|
|
541 nogc ) error_check_gc=no ;;
|
|
542
|
|
543 malloc ) error_check_malloc=yes ;;
|
|
544 nomalloc ) error_check_malloc=no ;;
|
149
|
545
|
414
|
546 byte_code ) error_check_byte_code=yes ;;
|
|
547 nobyte_code ) error_check_byte_code=no ;;
|
|
548
|
442
|
549 glyphs ) error_check_glyphs=yes ;;
|
|
550 noglyphs ) error_check_glyphs=no ;;
|
|
551
|
0
|
552 * ) bogus_error_check=yes ;;
|
|
553 esac
|
70
|
554 if test "$bogus_error_check" -o \
|
|
555 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
|
267
|
556 if test "$error_check_default" = yes ; then
|
442
|
557 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', \`noglyphs' and \`nobyte-code'."
|
0
|
558 else
|
442
|
559 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', \`glyphs' and \`byte-code'."
|
0
|
560 fi
|
149
|
561 (echo "$progname: Usage error:"
|
|
562 echo " " "Valid types for the \`--$optname' option are:
|
120
|
563 $types."
|
149
|
564 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
151
|
565 elif test -n "$new_default" ; then
|
0
|
566 error_check_extents=$new_default
|
|
567 error_check_typecheck=$new_default
|
|
568 error_check_bufpos=$new_default
|
|
569 error_check_gc=$new_default
|
|
570 error_check_malloc=$new_default
|
414
|
571 error_check_byte_code=$new_default
|
442
|
572 error_check_glyphs=$new_default
|
0
|
573 new_default= # reset this
|
|
574 fi
|
|
575 echeck_notfirst=true
|
|
576 done
|
|
577 ;;
|
|
578
|
149
|
579
|
|
580 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
|
442
|
581 mandir | infodir | infopath | lispdir | etcdir | pkgdir | \
|
380
|
582 archlibdir | docdir | package_path )
|
151
|
583 if test "$valomitted" = "yes"; then
|
|
584 if test "$#" = 0; then
|
149
|
585 (echo "$progname: Usage error:"
|
|
586 echo " " "The \`--$optname' option requires a value."
|
|
587 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
|
120
|
588 fi
|
|
589 val="$1"; shift
|
0
|
590 fi
|
149
|
591 eval "$opt=\"$val\""
|
|
592
|
278
|
593 case "$opt" in
|
420
|
594 exec_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
595 Defining EXEC_PREFIX_USER_DEFINED
|
|
596 EOF
|
|
597 cat >> confdefs.h <<\EOF
|
|
598 #define EXEC_PREFIX_USER_DEFINED 1
|
|
599 EOF
|
|
600 }
|
|
601 ;;
|
274
|
602 lispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
603 Defining LISPDIR_USER_DEFINED
|
|
604 EOF
|
|
605 cat >> confdefs.h <<\EOF
|
|
606 #define LISPDIR_USER_DEFINED 1
|
|
607 EOF
|
|
608 }
|
|
609 ;;
|
388
|
610 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
611 Defining SITELISPDIR_USER_DEFINED
|
|
612 EOF
|
|
613 cat >> confdefs.h <<\EOF
|
|
614 #define SITELISPDIR_USER_DEFINED 1
|
|
615 EOF
|
|
616 }
|
|
617 ;;
|
|
618 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
619 Defining MODULEDIR_USER_DEFINED
|
|
620 EOF
|
|
621 cat >> confdefs.h <<\EOF
|
|
622 #define MODULEDIR_USER_DEFINED 1
|
|
623 EOF
|
|
624 }
|
|
625 ;;
|
274
|
626 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
627 Defining ETCDIR_USER_DEFINED
|
|
628 EOF
|
|
629 cat >> confdefs.h <<\EOF
|
|
630 #define ETCDIR_USER_DEFINED 1
|
|
631 EOF
|
|
632 }
|
|
633 ;;
|
|
634 infodir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
635 Defining INFODIR_USER_DEFINED
|
|
636 EOF
|
|
637 cat >> confdefs.h <<\EOF
|
|
638 #define INFODIR_USER_DEFINED 1
|
|
639 EOF
|
|
640 }
|
|
641 ;;
|
|
642 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
643 Defining INFOPATH_USER_DEFINED
|
|
644 EOF
|
|
645 cat >> confdefs.h <<\EOF
|
|
646 #define INFOPATH_USER_DEFINED 1
|
|
647 EOF
|
|
648 }
|
|
649 ;;
|
|
650 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
651 Defining PACKAGE_PATH_USER_DEFINED
|
|
652 EOF
|
|
653 cat >> confdefs.h <<\EOF
|
|
654 #define PACKAGE_PATH_USER_DEFINED 1
|
|
655 EOF
|
|
656 }
|
|
657 ;;
|
278
|
658 datadir )
|
462
|
659 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
660 Defining INFODIR_USER_DEFINED
|
|
661 EOF
|
|
662 cat >> confdefs.h <<\EOF
|
|
663 #define INFODIR_USER_DEFINED 1
|
|
664 EOF
|
|
665 }
|
|
666
|
462
|
667 { test "$extra_verbose" = "yes" && cat << \EOF
|
278
|
668 Defining LISPDIR_USER_DEFINED
|
|
669 EOF
|
|
670 cat >> confdefs.h <<\EOF
|
|
671 #define LISPDIR_USER_DEFINED 1
|
|
672 EOF
|
|
673 }
|
|
674
|
462
|
675 { test "$extra_verbose" = "yes" && cat << \EOF
|
388
|
676 Defining MODULEDIR_USER_DEFINED
|
|
677 EOF
|
|
678 cat >> confdefs.h <<\EOF
|
|
679 #define MODULEDIR_USER_DEFINED 1
|
|
680 EOF
|
|
681 }
|
|
682
|
278
|
683 { test "$extra_verbose" = "yes" && cat << \EOF
|
274
|
684 Defining ETCDIR_USER_DEFINED
|
|
685 EOF
|
|
686 cat >> confdefs.h <<\EOF
|
|
687 #define ETCDIR_USER_DEFINED 1
|
|
688 EOF
|
|
689 }
|
458
|
690
|
|
691 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
692 Defining DOCDIR_USER_DEFINED
|
|
693 EOF
|
|
694 cat >> confdefs.h <<\EOF
|
|
695 #define DOCDIR_USER_DEFINED 1
|
|
696 EOF
|
|
697 }
|
|
698
|
|
699 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
700 Defining ARCHLIBDIR_USER_DEFINED
|
|
701 EOF
|
|
702 cat >> confdefs.h <<\EOF
|
|
703 #define ARCHLIBDIR_USER_DEFINED 1
|
|
704 EOF
|
|
705 }
|
274
|
706 ;;
|
420
|
707 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
708 Defining DOCDIR_USER_DEFINED
|
|
709 EOF
|
|
710 cat >> confdefs.h <<\EOF
|
|
711 #define DOCDIR_USER_DEFINED 1
|
|
712 EOF
|
|
713 }
|
|
714 ;;
|
274
|
715 exec_prefix | libdir | archlibdir ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
716 Defining ARCHLIBDIR_USER_DEFINED
|
|
717 EOF
|
|
718 cat >> confdefs.h <<\EOF
|
|
719 #define ARCHLIBDIR_USER_DEFINED 1
|
|
720 EOF
|
|
721 }
|
|
722 ;;
|
149
|
723 esac
|
0
|
724 ;;
|
|
725
|
149
|
726 "no_create" ) ;;
|
|
727
|
215
|
728 "usage" | "help" ) ${PAGER-more} ${srcdir}/configure.usage; exit 0 ;;
|
149
|
729
|
380
|
730 "with_menubars" | \
|
|
731 "with_scrollbars" | \
|
442
|
732 "with_dialogs" | \
|
420
|
733 "with_widgets" )
|
149
|
734 case "$val" in
|
0
|
735 l | lu | luc | luci | lucid ) val=lucid ;;
|
|
736 m | mo | mot | moti | motif ) val=motif ;;
|
|
737 a | at | ath | athe | athen | athena ) val=athena ;;
|
442
|
738 n | no | non | none ) val=no ;;
|
|
739 y | ye | yes ) val=yes ;;
|
462
|
740 g | gt | gtk ) val=gtk ;;
|
|
741 m | ms | msw ) val=msw ;;
|
149
|
742 * ) (echo "$progname: Usage error:"
|
|
743 echo " " "The \`--$optname' option must have one of these values:
|
462
|
744 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
|
149
|
745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
746 esac
|
149
|
747 eval "$opt=\"$val\""
|
0
|
748 ;;
|
|
749
|
424
|
750 "use_minimal_tagbits" | \
|
|
751 "use_indexed_lrecord_implementation" | \
|
|
752 "run_in_place" | \
|
442
|
753 "const_is_losing" | \
|
380
|
754 "with_gnu_make" )
|
|
755 echo "configure: warning: Obsolete option \`--$optname' ignored." 1>&2
|
|
756 ;;
|
|
757
|
149
|
758 * ) (echo "$progname: Usage error:"
|
|
759 echo " " "Unrecognized option: $arg"
|
|
760 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
761
|
|
762 esac
|
|
763 ;;
|
|
764
|
243
|
765 *-*-*) configuration="$arg" ;;
|
|
766
|
|
767 *) (echo "$progname: Usage error:"
|
|
768 echo " " "Unrecognized argument: $arg"
|
|
769 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
|
0
|
770
|
|
771 esac
|
|
772 done
|
|
773
|
149
|
774
|
272
|
775 test -n "$cpp" && CPP="$cpp"
|
|
776 test -n "$cppflags" && CPPFLAGS="$cppflags"
|
|
777 test -n "$libs" && LIBS="$libs"
|
|
778 test -n "$ldflags" && LDFLAGS="$ldflags"
|
|
779
|
0
|
780 eval set x "$quoted_arguments"; shift
|
|
781
|
149
|
782 test "$extra_verbose" = "yes" && verbose=yes
|
|
783
|
|
784 test -n "$with_x" && with_x11="$with_x"
|
|
785
|
380
|
786 if test "$with_purify" = "yes" -o "$with_quantify" = "yes"; then
|
|
787 test "$with_system_malloc" = "default" && with_system_malloc=yes
|
|
788 fi
|
272
|
789
|
284
|
790
|
|
791
|
|
792 if test "$with_cde $with_tooltalk" = "yes no"; then
|
|
793 (echo "$progname: Usage error:"
|
|
794 echo " " "--with-cde requires --with-tooltalk"
|
|
795 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
796 elif test "$with_tooltalk" = "no" ; then with_cde=no
|
|
797 elif test "$with_cde" = "yes"; then with_tooltalk=yes
|
|
798 fi
|
|
799
|
|
800
|
149
|
801 case "$srcdir" in
|
|
802
|
|
803 "" )
|
70
|
804 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`" "." ".." ; do
|
120
|
805 if test -f "$dir/src/lisp.h" -a \
|
|
806 -f "$dir/lisp/version.el" ; then
|
149
|
807 srcdir="$dir"
|
70
|
808 break
|
|
809 fi
|
|
810 done
|
149
|
811 if test -z "$srcdir" ; then
|
|
812 (echo "$progname: Usage error:"
|
120
|
813 echo " " "Neither the current directory nor its parent seem to
|
|
814 contain the XEmacs sources. If you do not want to build XEmacs in its
|
149
|
815 source tree, you should run \`$progname' in the directory in which
|
120
|
816 you wish to build XEmacs, using the \`--srcdir' option to say where the
|
|
817 sources may be found."
|
149
|
818 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
120
|
819 fi
|
0
|
820 ;;
|
|
821
|
149
|
822 * )
|
243
|
823 if test ! -f "$srcdir/src/lisp.h" -o \
|
149
|
824 ! -f "$srcdir/lisp/version.el" ; then
|
|
825 (echo "$progname: Usage error:"
|
120
|
826 echo " " "The directory specified with the \`--srcdir' option,
|
149
|
827 \`$srcdir', doesn't seem to contain the XEmacs sources. You should
|
|
828 either run the \`$progname' script at the top of the XEmacs source
|
120
|
829 tree, or use the \`--srcdir' option to specify the XEmacs source directory."
|
149
|
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
0
|
831 fi
|
|
832 ;;
|
|
833 esac
|
|
834
|
243
|
835 if test -z "$configuration"; then
|
380
|
836 configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess`
|
|
837 if test -z "$configuration"; then
|
243
|
838 (echo "$progname: Usage error:"
|
|
839 echo " " "XEmacs has not been ported to this host type.
|
|
840 Try explicitly specifying the CONFIGURATION when rerunning configure."
|
|
841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
842 fi
|
|
843 fi
|
|
844
|
149
|
845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
462
|
846 echo "configure:847: checking whether ln -s works" >&5
|
149
|
847
|
0
|
848 rm -f conftestdata
|
|
849 if ln -s X conftestdata 2>/dev/null
|
|
850 then
|
|
851 rm -f conftestdata
|
149
|
852 ac_cv_prog_LN_S="ln -s"
|
|
853 else
|
|
854 ac_cv_prog_LN_S=ln
|
|
855 fi
|
|
856 LN_S="$ac_cv_prog_LN_S"
|
|
857 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
858 echo "$ac_t""yes" 1>&6
|
|
859 else
|
|
860 echo "$ac_t""no" 1>&6
|
|
861 fi
|
|
862
|
|
863
|
438
|
864 for dir in lisp etc man info tests; do
|
149
|
865 if test ! -d "$dir" ; then
|
|
866 echo Making symbolic link to "$srcdir/$dir"
|
157
|
867 ${LN_S} "$srcdir/$dir" "$dir"
|
0
|
868 fi
|
|
869 done
|
|
870
|
392
|
871
|
181
|
872 absolute_pwd="`pwd`";
|
187
|
873 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
|
181
|
874 then blddir="$PWD"
|
392
|
875 else blddir="$absolute_pwd"; if test -d "/net"; then
|
|
876 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
877 blddir=`echo "$blddir" | \
|
|
878 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
879 fi
|
181
|
880 fi
|
|
881
|
|
882
|
149
|
883 case "$srcdir" in
|
0
|
884 /* ) ;;
|
181
|
885 . ) srcdir="$blddir" ;;
|
392
|
886 * ) srcdir="`cd $srcdir && pwd`"; if test -d "/net"; then
|
|
887 if test -d "/tmp_mnt/net"; then tdir="tmp_mnt/net"; else tdir="tmp_mnt"; fi
|
|
888 srcdir=`echo "$srcdir" | \
|
|
889 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
|
|
890 fi ;;
|
0
|
891 esac
|
|
892
|
149
|
893 if test `pwd` != `sh -c cd $srcdir && pwd` \
|
|
894 && test -f "$srcdir/src/config.h"; then
|
|
895 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
|
0
|
896 echo " as a build directory right now; it has been configured in its own"
|
|
897 echo " right. To configure in another directory as well, you MUST"
|
|
898 echo " use GNU make. If you do not have GNU make, then you must"
|
149
|
899 echo " now do \`make distclean' in $srcdir,"
|
|
900 echo " and then run $progname again.") >&2
|
0
|
901 extrasub='/^VPATH[ ]*=/c\
|
|
902 vpath %.c $(srcdir)\
|
|
903 vpath %.h $(srcdir)\
|
|
904 vpath %.y $(srcdir)\
|
|
905 vpath %.l $(srcdir)\
|
|
906 vpath %.s $(srcdir)\
|
|
907 vpath %.in $(srcdir)'
|
|
908 fi
|
|
909
|
171
|
910 . "$srcdir/version.sh" || exit 1;
|
414
|
911 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
173
|
912 : "${extra_verbose=$beta}"
|
171
|
913 version="${emacs_major_version}.${emacs_minor_version}"
|
|
914 { test "$extra_verbose" = "yes" && cat << EOF
|
|
915 Defining EMACS_MAJOR_VERSION = $emacs_major_version
|
|
916 EOF
|
|
917 cat >> confdefs.h <<EOF
|
|
918 #define EMACS_MAJOR_VERSION $emacs_major_version
|
|
919 EOF
|
|
920 }
|
|
921
|
|
922 { test "$extra_verbose" = "yes" && cat << EOF
|
|
923 Defining EMACS_MINOR_VERSION = $emacs_minor_version
|
|
924 EOF
|
|
925 cat >> confdefs.h <<EOF
|
|
926 #define EMACS_MINOR_VERSION $emacs_minor_version
|
|
927 EOF
|
|
928 }
|
|
929
|
414
|
930 if test -n "$emacs_beta_version" ; then
|
|
931 if test "$beta" = "yes"; then
|
|
932 version="${version}-b${emacs_beta_version}"
|
|
933 { test "$extra_verbose" = "yes" && cat << EOF
|
171
|
934 Defining EMACS_BETA_VERSION = $emacs_beta_version
|
|
935 EOF
|
|
936 cat >> confdefs.h <<EOF
|
|
937 #define EMACS_BETA_VERSION $emacs_beta_version
|
|
938 EOF
|
|
939 }
|
|
940
|
414
|
941 else
|
|
942 version="${version}.${emacs_beta_version}"
|
|
943 { test "$extra_verbose" = "yes" && cat << EOF
|
|
944 Defining EMACS_PATCH_LEVEL = $emacs_beta_version
|
|
945 EOF
|
|
946 cat >> confdefs.h <<EOF
|
|
947 #define EMACS_PATCH_LEVEL $emacs_beta_version
|
|
948 EOF
|
|
949 }
|
|
950
|
|
951 fi
|
171
|
952 fi
|
|
953 { test "$extra_verbose" = "yes" && cat << EOF
|
|
954 Defining XEMACS_CODENAME = "$xemacs_codename"
|
|
955 EOF
|
|
956 cat >> confdefs.h <<EOF
|
|
957 #define XEMACS_CODENAME "$xemacs_codename"
|
|
958 EOF
|
|
959 }
|
|
960
|
|
961 { test "$extra_verbose" = "yes" && cat << EOF
|
|
962 Defining EMACS_VERSION = "$version"
|
|
963 EOF
|
|
964 cat >> confdefs.h <<EOF
|
|
965 #define EMACS_VERSION "$version"
|
|
966 EOF
|
|
967 }
|
|
968
|
|
969
|
280
|
970 if test "$with_infodock" = "yes"; then
|
420
|
971 if test ! -f ../../ID-INSTALL; then
|
280
|
972 echo "Cannot build InfoDock without InfoDock sources"
|
|
973 with_infodock=no
|
|
974 fi
|
|
975 fi
|
|
976
|
|
977 if test "$with_infodock" = "yes"; then
|
|
978 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
979 Defining INFODOCK_MAJOR_VERSION = $infodock_major_version
|
|
980 EOF
|
|
981 cat >> confdefs.h <<EOF
|
|
982 #define INFODOCK_MAJOR_VERSION $infodock_major_version
|
|
983 EOF
|
|
984 }
|
|
985
|
280
|
986 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
987 Defining INFODOCK_MINOR_VERSION = $infodock_minor_version
|
|
988 EOF
|
|
989 cat >> confdefs.h <<EOF
|
|
990 #define INFODOCK_MINOR_VERSION $infodock_minor_version
|
|
991 EOF
|
|
992 }
|
|
993
|
280
|
994 { test "$extra_verbose" = "yes" && cat << EOF
|
278
|
995 Defining INFODOCK_BUILD_VERSION = $infodock_build_version
|
|
996 EOF
|
|
997 cat >> confdefs.h <<EOF
|
|
998 #define INFODOCK_BUILD_VERSION $infodock_build_version
|
|
999 EOF
|
|
1000 }
|
|
1001
|
280
|
1002 version=${infodock_major_version}.${infodock_minor_version}.${infodock_build_version}
|
|
1003 PROGNAME=infodock
|
|
1004 CPPFLAGS="$CPPFLAGS -DINFODOCK"
|
|
1005 else
|
|
1006 PROGNAME=xemacs
|
|
1007 fi
|
278
|
1008
|
442
|
1009 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1010 Defining EMACS_PROGNAME = "$PROGNAME"
|
|
1011 EOF
|
|
1012 cat >> confdefs.h <<EOF
|
|
1013 #define EMACS_PROGNAME "$PROGNAME"
|
|
1014 EOF
|
|
1015 }
|
|
1016
|
|
1017
|
414
|
1018 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi
|
171
|
1019 test "${error_check_extents=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1020 Defining ERROR_CHECK_EXTENTS
|
|
1021 EOF
|
|
1022 cat >> confdefs.h <<\EOF
|
|
1023 #define ERROR_CHECK_EXTENTS 1
|
|
1024 EOF
|
|
1025 }
|
|
1026
|
|
1027 test "${error_check_typecheck=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1028 Defining ERROR_CHECK_TYPECHECK
|
|
1029 EOF
|
|
1030 cat >> confdefs.h <<\EOF
|
|
1031 #define ERROR_CHECK_TYPECHECK 1
|
|
1032 EOF
|
|
1033 }
|
|
1034
|
|
1035 test "${error_check_bufpos=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1036 Defining ERROR_CHECK_BUFPOS
|
|
1037 EOF
|
|
1038 cat >> confdefs.h <<\EOF
|
|
1039 #define ERROR_CHECK_BUFPOS 1
|
|
1040 EOF
|
|
1041 }
|
|
1042
|
|
1043 test "${error_check_gc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1044 Defining ERROR_CHECK_GC
|
|
1045 EOF
|
|
1046 cat >> confdefs.h <<\EOF
|
|
1047 #define ERROR_CHECK_GC 1
|
|
1048 EOF
|
|
1049 }
|
|
1050
|
|
1051 test "${error_check_malloc=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1052 Defining ERROR_CHECK_MALLOC
|
|
1053 EOF
|
|
1054 cat >> confdefs.h <<\EOF
|
|
1055 #define ERROR_CHECK_MALLOC 1
|
|
1056 EOF
|
|
1057 }
|
|
1058
|
414
|
1059 test "${error_check_byte_code=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1060 Defining ERROR_CHECK_BYTE_CODE
|
|
1061 EOF
|
|
1062 cat >> confdefs.h <<\EOF
|
|
1063 #define ERROR_CHECK_BYTE_CODE 1
|
|
1064 EOF
|
|
1065 }
|
|
1066
|
442
|
1067 test "${error_check_glyphs=$beta}" = yes && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1068 Defining ERROR_CHECK_GLYPHS
|
|
1069 EOF
|
|
1070 cat >> confdefs.h <<\EOF
|
|
1071 #define ERROR_CHECK_GLYPHS 1
|
|
1072 EOF
|
|
1073 }
|
|
1074
|
272
|
1075 if test "${debug:=$beta}" = "yes"; then
|
171
|
1076 use_assertions=yes memory_usage_stats=yes
|
|
1077 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
|
|
1078 echo " xemacs will be linked with \"debug.o\""
|
|
1079 fi
|
440
|
1080 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
|
|
1081 echo " xemacs will be linked with \"tests.o\""
|
|
1082 fi
|
171
|
1083 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1084 Defining DEBUG_XEMACS
|
|
1085 EOF
|
|
1086 cat >> confdefs.h <<\EOF
|
|
1087 #define DEBUG_XEMACS 1
|
|
1088 EOF
|
|
1089 }
|
|
1090
|
|
1091 fi
|
|
1092 test "$use_assertions" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1093 Defining USE_ASSERTIONS
|
|
1094 EOF
|
|
1095 cat >> confdefs.h <<\EOF
|
|
1096 #define USE_ASSERTIONS 1
|
|
1097 EOF
|
|
1098 }
|
|
1099
|
|
1100 test "$memory_usage_stats" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1101 Defining MEMORY_USAGE_STATS
|
|
1102 EOF
|
|
1103 cat >> confdefs.h <<\EOF
|
|
1104 #define MEMORY_USAGE_STATS 1
|
|
1105 EOF
|
|
1106 }
|
|
1107
|
|
1108
|
149
|
1109
|
380
|
1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
|
462
|
1111 echo "configure:1112: checking "host system type"" >&5
|
217
|
1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
|
380
|
1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
|
|
1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
|
|
1116 echo "$ac_t""$configuration" 1>&6
|
0
|
1117
|
149
|
1118
|
|
1119
|
|
1120
|
|
1121
|
151
|
1122 machine='' opsys=''
|
149
|
1123
|
|
1124 case "$canonical" in
|
|
1125 sparc-*-* ) machine=sparc ;;
|
373
|
1126 alpha*-*-* ) machine=alpha ;;
|
149
|
1127 vax-*-* ) machine=vax ;;
|
|
1128 mips-dec-* ) machine=pmax ;;
|
440
|
1129 mips-sgi-irix6* ) machine=iris6d ;;
|
149
|
1130 mips-sgi-* ) machine=iris4d ;;
|
424
|
1131 mips*-linux ) machine=mips ;;
|
149
|
1132 romp-ibm-* ) machine=ibmrt ;;
|
|
1133 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
|
|
1134 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
|
163
|
1135 powerpc*-* ) machine=powerpc ;;
|
149
|
1136 hppa-*-* ) machine=hp800 ;;
|
|
1137 m88k-dg-* ) machine=aviion ;;
|
|
1138 m68*-sony-* ) machine=news ;;
|
|
1139 mips-sony-* ) machine=news-risc ;;
|
|
1140 clipper-* ) machine=clipper ;;
|
442
|
1141 arm* ) machine=arm ;;
|
380
|
1142 ns32k-* ) machine=ns32000 ;;
|
149
|
1143 esac
|
|
1144
|
|
1145 case "$canonical" in
|
|
1146 *-*-linux* ) opsys=linux ;;
|
|
1147 *-*-netbsd* ) opsys=netbsd ;;
|
286
|
1148 *-*-openbsd* ) opsys=openbsd ;;
|
149
|
1149 *-*-nextstep* ) opsys=nextstep ;;
|
|
1150 *-*-vms ) opsys=vms ;;
|
|
1151
|
|
1152 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
|
|
1153 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
|
|
1154 *-dec-osf3.[2-9] ) opsys=decosf3-2 ;;
|
|
1155 *-dec-osf3* ) opsys=decosf3-1 ;;
|
444
|
1156 *-dec-osf[4-9]* ) opsys=decosf4-0 ;;
|
149
|
1157
|
|
1158 *-*-ultrix[0-3].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
|
|
1159 *-*-ultrix4.[12]* ) opsys=bsd4-3 ;;
|
|
1160 *-*-ultrix* ) opsys=ultrix4-3 ;;
|
|
1161
|
|
1162 *-*-aix3.1* ) opsys=aix3-1 ;;
|
|
1163 *-*-aix3.2.5 ) opsys=aix3-2-5 ;;
|
|
1164 *-*-aix3* ) opsys=aix3-2 ;;
|
373
|
1165 *-*-aix4.0* ) opsys=aix4 ;;
|
149
|
1166 *-*-aix4.1* ) opsys=aix4-1 ;;
|
373
|
1167 *-*-aix4* ) opsys=aix4-2 ;;
|
149
|
1168
|
|
1169 *-gnu* ) opsys=gnu ;;
|
|
1170 *-*-bsd4.[01] ) opsys=bsd4-1 ;;
|
|
1171 *-*-bsd4.2 ) opsys=bsd4-2 ;;
|
|
1172 *-*-bsd4.3 ) opsys=bsd4-3 ;;
|
|
1173 *-*-aos4.2 ) opsys=bsd4-2 ;;
|
|
1174 *-*-aos* ) opsys=bsd4-3 ;;
|
|
1175 *-*-sysv0 | *-*-sysvr0 ) opsys=usg5-0 ;;
|
|
1176 *-*-sysv2 | *-*-sysvr2 ) opsys=usg5-2 ;;
|
|
1177 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;;
|
|
1178 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;;
|
|
1179 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1180 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* )
|
|
1181 if test -z "$NON_GNU_CPP" ; then
|
151
|
1182 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do
|
|
1183 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi
|
|
1184 done
|
149
|
1185 fi
|
|
1186 opsys=usg5-4-2 ;;
|
|
1187 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
|
|
1188 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
|
|
1189 esac
|
|
1190
|
|
1191 case "$canonical" in
|
|
1192
|
|
1193 *-*-netbsd* )
|
|
1194 case "$canonical" in
|
0
|
1195 i[3-9]86-*-netbsd*) machine=intel386 ;;
|
|
1196 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
|
149
|
1197 machine=hp9000s300 ;;
|
70
|
1198 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
|
|
1199 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
|
0
|
1200 esac
|
|
1201 ;;
|
|
1202
|
286
|
1203 *-*-openbsd* )
|
|
1204 case "${canonical}" in
|
|
1205 i386-*-openbsd*) machine=intel386 ;;
|
|
1206 m68k-*-openbsd*) machine=hp9000s300 ;;
|
|
1207 mipsel-*-openbsd*) machine=pmax ;;
|
|
1208 esac
|
|
1209 ;;
|
|
1210
|
149
|
1211 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
|
70
|
1212 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
|
0
|
1213
|
149
|
1214 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
|
70
|
1215 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
|
0
|
1216
|
149
|
1217 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
|
|
1218
|
|
1219 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
|
|
1220
|
|
1221 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
|
|
1222
|
|
1223 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
|
|
1224
|
|
1225 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
|
|
1226
|
|
1227 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
|
74
|
1228 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
|
|
1229 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
|
0
|
1230
|
149
|
1231
|
|
1232 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
|
|
1233
|
|
1234 *-convex-bsd* | *-convex-convexos* )
|
0
|
1235 machine=convex opsys=bsd4-3
|
|
1236 NON_GNU_CPP="cc -E -P"
|
|
1237 ;;
|
|
1238
|
149
|
1239 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
|
|
1240
|
|
1241 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
|
|
1242 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
|
|
1243 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
|
|
1244 m88k-dg-dgux* ) opsys=dgux ;;
|
|
1245
|
|
1246 m68k-motorola-sysv* | m68000-motorola-sysv* ) machine=delta opsys=usg5-3 ;;
|
0
|
1247 m88k-motorola-sysv4* )
|
149
|
1248 machine=delta88k opsys=usg5-4-2
|
0
|
1249 ;;
|
70
|
1250 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
|
0
|
1251
|
149
|
1252 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
|
70
|
1253 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
|
0
|
1254
|
149
|
1255 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
|
|
1256
|
|
1257 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
|
70
|
1258 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
|
|
1259 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
|
0
|
1260
|
149
|
1261 m88k-harris-cxux* )
|
|
1262 case "`uname -r`" in
|
74
|
1263 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
|
70
|
1264 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
|
0
|
1265 esac
|
|
1266 NON_GNU_CPP="/lib/cpp"
|
|
1267 ;;
|
149
|
1268 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
|
|
1269 powerpc-harris-powerunix ) machine=nh6000 opsys=powerunix NON_GNU_CPP="cc -Xo -E -P" ;;
|
|
1270
|
|
1271 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
|
|
1272
|
|
1273 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
|
|
1274
|
|
1275 *-hp-hpux* )
|
|
1276 case "$canonical" in
|
70
|
1277 m68* ) machine=hp9000s300 ;;
|
|
1278 hppa* ) machine=hp800 ;;
|
|
1279 esac
|
|
1280
|
149
|
1281 case "$canonical" in
|
|
1282 *-hp-hpux7* ) opsys=hpux ;;
|
|
1283 *-hp-hpux8* ) opsys=hpux8 ;;
|
|
1284 *-hp-hpux9* ) opsys=hpux9 ;;
|
|
1285 *-hp-hpux10* ) opsys=hpux10 ;;
|
269
|
1286 *-hp-hpux11* ) opsys=hpux11 ;;
|
151
|
1287 * ) opsys=hpux ;;
|
0
|
1288 esac
|
72
|
1289
|
151
|
1290 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then
|
|
1291 echo " xemacs will be linked with \"strcat.o\""
|
|
1292 fi ;; esac
|
149
|
1293
|
269
|
1294 if test "$opsys" = "hpux10" -o "$opsys" = "hpux11"; then \
|
|
1295 ansi_flag="-Ae"; else ansi_flag="-Aa"; fi
|
149
|
1296 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E"
|
|
1297
|
|
1298 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
|
0
|
1299 ;;
|
|
1300
|
149
|
1301 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
|
70
|
1302 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
|
0
|
1303
|
149
|
1304 i[3-9]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
|
70
|
1305 i[3-9]86-ibm-aix1.[23]* | i[3-9]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
|
|
1306 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
|
149
|
1307 romp-ibm-aos* ) opsys=bsd4-3 ;;
|
|
1308 romp-ibm-bsd* ) opsys=bsd4-3 ;;
|
|
1309 romp-ibm-mach* ) opsys=mach-bsd4-3 ;;
|
|
1310
|
|
1311 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
|
70
|
1312 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
|
0
|
1313
|
149
|
1314 i[3-9]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
|
|
1315
|
|
1316 i[3-9]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
|
|
1317
|
|
1318 i[3-9]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
|
|
1319
|
|
1320 i[3-9]86-sequent-ptx* ) machine=sequent-ptx opsys=ptx NON_GNU_CPP="/lib/cpp" ;;
|
|
1321
|
|
1322 i[3-9]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
|
|
1323
|
|
1324 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
|
|
1325
|
|
1326 i860-*-sysv4* ) machine=i860 opsys=usg5-4 NON_GNU_CC="/bin/cc" NON_GNU_CPP="/usr/ccs/lib/cpp" ;;
|
|
1327
|
|
1328 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
|
|
1329
|
|
1330 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
|
|
1331
|
|
1332 mips-mips-usg* ) machine=mips4 ;;
|
70
|
1333 mips-mips-riscos4 )
|
|
1334 machine=mips4
|
0
|
1335 NON_GNU_CC="cc -systype bsd43"
|
|
1336 NON_GNU_CPP="cc -systype bsd43 -E"
|
149
|
1337 case "$canonical" in
|
70
|
1338 mips-mips-riscos4* ) opsys=bsd4-3 ;;
|
|
1339 mips-mips-riscos5* ) opsys=riscos5 ;;
|
|
1340 esac
|
0
|
1341 ;;
|
70
|
1342 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
|
|
1343 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
|
0
|
1344
|
149
|
1345 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
|
|
1346
|
|
1347 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
|
|
1348
|
|
1349 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
|
70
|
1350 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
|
0
|
1351
|
149
|
1352 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
|
|
1353
|
|
1354 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
|
|
1355
|
|
1356 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
|
|
1357
|
|
1358 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
|
|
1359
|
|
1360 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
|
70
|
1361 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
|
0
|
1362
|
149
|
1363 mips-siemens-sysv* | mips-sni-sysv*)
|
0
|
1364 machine=mips-siemens opsys=usg5-4
|
|
1365 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1366 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1367 ;;
|
|
1368
|
377
|
1369 mips-nec-sysv*)
|
|
1370 machine=mips-nec
|
|
1371 NON_GNU_CC=/usr/ccs/bin/cc
|
|
1372 NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1373 ;;
|
|
1374
|
149
|
1375 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
|
70
|
1376 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
|
149
|
1377 mips-sgi-irix3.* ) opsys=irix3-3 ;;
|
|
1378 mips-sgi-irix4.* ) opsys=irix4-0 ;;
|
207
|
1379 mips-sgi-irix6* ) opsys=irix6-0 ;;
|
149
|
1380 mips-sgi-irix5.1* ) opsys=irix5-1 ;;
|
|
1381 mips-sgi-irix5.2* ) opsys=irix5-2 ;;
|
|
1382 mips-sgi-irix5.* ) opsys=irix5-3 ;;
|
|
1383 mips-sgi-irix* ) opsys=irix5-0 ;;
|
|
1384
|
|
1385 *-sony-newsos[34]* | *-sony-news[34]* ) opsys=bsd4-3 ;;
|
|
1386 *-sony-news* ) opsys=newsos5 ;;
|
|
1387
|
|
1388 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
|
|
1389
|
|
1390 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
|
|
1391 case "$canonical" in
|
0
|
1392 m68*-sunos1* ) machine=sun1 ;;
|
|
1393 m68*-sunos2* ) machine=sun2 ;;
|
|
1394 m68* ) machine=sun3 ;;
|
163
|
1395 i*86*-sun-sunos[34]* ) machine=sun386 ;;
|
|
1396 i*86-*-* ) machine=intel386 ;;
|
0
|
1397 rs6000* ) machine=rs6000 ;;
|
|
1398 esac
|
149
|
1399
|
|
1400 case "$canonical" in *-sunos5*)
|
163
|
1401 canonical=`echo $canonical | sed -e s/sunos5/solaris2/`;;
|
0
|
1402 esac
|
|
1403
|
149
|
1404 case "$canonical" in
|
0
|
1405 *-sunos4* )
|
157
|
1406 #test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
|
|
1407 : ;;
|
70
|
1408 *-solaris2* )
|
157
|
1409 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
|
|
1410 RANLIB=':' ;;
|
151
|
1411 esac
|
149
|
1412
|
|
1413 case "$canonical" in
|
163
|
1414 *-solaris* )
|
|
1415 opsys=sol2
|
|
1416 os_release=`uname -r | sed -e 's/^\([0-9]\)\.\([0-9]\).*/\1\2/'`
|
|
1417 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1418 Defining OS_RELEASE = $os_release
|
|
1419 EOF
|
|
1420 cat >> confdefs.h <<EOF
|
|
1421 #define OS_RELEASE $os_release
|
|
1422 EOF
|
|
1423 }
|
|
1424 ;;
|
|
1425
|
|
1426 i*86-*-sunos4* ) opsys=sunos4-0 ;;
|
74
|
1427 *-sunos4.0* ) opsys=sunos4-0 ;;
|
|
1428 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
|
110
|
1429 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
|
120
|
1430 *-sunos4.1.[4-9]* ) opsys=sunos4-1-4 ;;
|
74
|
1431 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
|
|
1432 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1433 * ) opsys=bsd4-2 ;;
|
0
|
1434 esac
|
70
|
1435
|
149
|
1436 case "$canonical" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
|
|
1437
|
163
|
1438 test "$opsys $CC" = "sol2 /usr/ucb/cc" && CC=""
|
0
|
1439 ;;
|
70
|
1440
|
149
|
1441 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
|
|
1442
|
|
1443 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
|
70
|
1444 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
|
0
|
1445
|
149
|
1446 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
|
|
1447
|
|
1448 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
|
|
1449
|
|
1450 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
|
|
1451 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
|
|
1452
|
|
1453 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
|
|
1454
|
|
1455 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
|
|
1456
|
|
1457 vax-dec-* )
|
|
1458 case "$canonical" in
|
|
1459 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
|
|
1460 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
|
|
1461 *-mach* ) opsys=mach-bsd4-3 ;;
|
0
|
1462 esac
|
|
1463 ;;
|
|
1464
|
149
|
1465 ns16k-whitechapel-* ) machine=mg1 ;;
|
|
1466
|
|
1467 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
|
|
1468
|
|
1469 i[3-9]86-*-* )
|
0
|
1470 machine=intel386
|
149
|
1471 case "$canonical" in
|
120
|
1472 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
|
0
|
1473 *-isc2.2* ) opsys=isc2-2 ;;
|
|
1474 *-isc4.0* ) opsys=isc4-0 ;;
|
|
1475 *-isc4.* ) opsys=isc4-1
|
|
1476 GCC_TEST_OPTIONS=-posix
|
|
1477 NON_GCC_TEST_OPTIONS=-Xp
|
|
1478 ;;
|
|
1479 *-isc* ) opsys=isc3-0 ;;
|
149
|
1480 *-esix5* ) opsys=esix5r4 NON_GNU_CPP=/usr/lib/cpp ;;
|
0
|
1481 *-esix* ) opsys=esix ;;
|
|
1482 *-mach* ) opsys=mach-bsd4-3 ;;
|
|
1483 *-xenix* ) opsys=xenix ;;
|
149
|
1484 *-sco3.2v4* ) opsys=sco4 NON_GNU_CPP=/lib/cpp ;;
|
0
|
1485 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
|
392
|
1486 *-bsdi4* ) opsys=bsdos4 ;;
|
110
|
1487 *-bsdi3* ) opsys=bsdos3 ;;
|
0
|
1488 *-bsdi2.1* ) opsys=bsdos2-1 ;;
|
|
1489 *-bsdi2* ) opsys=bsdos2 ;;
|
460
|
1490 *-sco3.2v5* ) opsys=sco5 ;;
|
422
|
1491 *-sysv5* ) opsys=sco7 ;;
|
70
|
1492 *-386bsd* ) opsys=386bsd ;;
|
|
1493 *-freebsd* ) opsys=freebsd ;;
|
0
|
1494 *-nextstep* ) opsys=nextstep ;;
|
398
|
1495 *-pc-cygwin* ) opsys=cygwin32 ;;
|
|
1496 *-pc-mingw* ) opsys=mingw32 ;
|
|
1497 test -z "$with_tty" && with_tty="no";;
|
149
|
1498 esac
|
0
|
1499 ;;
|
|
1500
|
149
|
1501 m68k-*-linux* ) machine=m68k opsys=linux ;;
|
|
1502
|
0
|
1503 esac
|
|
1504
|
442
|
1505 test -z "$machine" && machine=`echo $canonical | sed 's/-.*$//'`
|
505
|
1506
|
|
1507 test -z "$opsys" && opsys=`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
442
|
1508
|
|
1509 if test -r "${srcdir}/src/m/${machine}.h"; then
|
|
1510 machfile="m/${machine}.h"
|
|
1511 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1512 Defining config_machfile = "$machfile"
|
|
1513 EOF
|
|
1514 cat >> confdefs.h <<EOF
|
|
1515 #define config_machfile "$machfile"
|
|
1516 EOF
|
|
1517 }
|
|
1518
|
|
1519 else
|
|
1520 echo "XEmacs has no builtin knowledge of \`$machine' machines."
|
|
1521 echo "Using configure-time autodetection only."
|
|
1522 fi
|
|
1523
|
|
1524 if test -r "${srcdir}/src/s/${opsys}.h"; then
|
|
1525 opsysfile="s/${opsys}.h"
|
|
1526 { test "$extra_verbose" = "yes" && cat << EOF
|
|
1527 Defining config_opsysfile = "$opsysfile"
|
|
1528 EOF
|
|
1529 cat >> confdefs.h <<EOF
|
|
1530 #define config_opsysfile "$opsysfile"
|
|
1531 EOF
|
|
1532 }
|
|
1533
|
|
1534 else
|
|
1535 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
|
|
1536 echo "Using configure-time autodetection only."
|
|
1537 fi
|
|
1538
|
0
|
1539
|
173
|
1540 if test -z "$dynamic"; then
|
|
1541 case "$opsys" in
|
388
|
1542 hpux* | sunos4* ) dynamic=no ;;
|
173
|
1543 *) dynamic=yes ;;
|
|
1544 esac
|
|
1545 fi
|
|
1546 if test "$dynamic" = "yes"; then
|
149
|
1547 case "$opsys" in
|
72
|
1548 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
|
173
|
1549 decosf* ) ld_call_shared="-call_shared" ;;
|
0
|
1550 esac
|
173
|
1551 else case "$opsys" in
|
187
|
1552 sol2 )
|
173
|
1553 echo "Static linking is not supported on Solaris 2."
|
|
1554 echo "Rerun configure without specifying --dynamic=no."
|
|
1555 exit 1 ;;
|
|
1556 linux ) ld_call_shared="-Bstatic" ;;
|
|
1557 decosf* ) ld_call_shared="-non_shared" ;;
|
0
|
1558 esac
|
|
1559 fi
|
|
1560
|
207
|
1561 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac
|
|
1562
|
280
|
1563 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
|
173
|
1564 { test "$extra_verbose" = "yes" && cat << EOF
|
177
|
1565 Defining STACK_TRACE_EYE_CATCHER = $stack_trace_eye_catcher
|
173
|
1566 EOF
|
|
1567 cat >> confdefs.h <<EOF
|
177
|
1568 #define STACK_TRACE_EYE_CATCHER $stack_trace_eye_catcher
|
173
|
1569 EOF
|
|
1570 }
|
|
1571
|
|
1572
|
0
|
1573
|
151
|
1574 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias
|
284
|
1575 if test "$with_workshop $with_tooltalk" = "yes no"; then
|
|
1576 (echo "$progname: Usage error:"
|
|
1577 echo " " "--with-workshop requires --with-tooltalk"
|
|
1578 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
1579 elif test "$with_tooltalk" = "no" ; then with_workshop=no
|
|
1580 elif test "$with_workshop" = "yes"; then with_tooltalk=yes
|
|
1581 fi
|
|
1582
|
151
|
1583 if test "$with_workshop" = "yes"; then
|
|
1584 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1585 Defining SUNPRO
|
|
1586 EOF
|
|
1587 cat >> confdefs.h <<\EOF
|
|
1588 #define SUNPRO 1
|
|
1589 EOF
|
|
1590 }
|
|
1591
|
|
1592 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then
|
|
1593 echo " xemacs will be linked with \"sunpro.o\""
|
|
1594 fi
|
|
1595 fi
|
|
1596
|
442
|
1597 if test "$with_clash_detection" != "no"; then
|
175
|
1598 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
1599 Defining CLASH_DETECTION
|
|
1600 EOF
|
|
1601 cat >> confdefs.h <<\EOF
|
|
1602 #define CLASH_DETECTION 1
|
|
1603 EOF
|
|
1604 }
|
|
1605
|
|
1606 extra_objs="$extra_objs filelock.o" && if test "$extra_verbose" = "yes"; then
|
|
1607 echo " xemacs will be linked with \"filelock.o\""
|
|
1608 fi
|
|
1609 fi
|
|
1610
|
169
|
1611 test -n "$compiler" && CC="$compiler"
|
|
1612 if test "$with_gcc" = "no"; then case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac
|
|
1613 fi
|
149
|
1614
|
272
|
1615 test "${cflags-unset}" != unset && CFLAGS="$cflags"
|
|
1616 if test "${CFLAGS-unset}" != unset
|
|
1617 then cflags_specified=yes;
|
|
1618 else cflags_specified=no;
|
|
1619 fi
|
|
1620
|
157
|
1621 xe_save_CFLAGS="$CFLAGS"
|
|
1622
|
149
|
1623 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1624 set dummy gcc; ac_word=$2
|
|
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1626 echo "configure:1627: checking for $ac_word" >&5
|
149
|
1627
|
|
1628 if test -n "$CC"; then
|
|
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1630 else
|
420
|
1631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1632 ac_dummy="$PATH"
|
|
1633 for ac_dir in $ac_dummy; do
|
149
|
1634 test -z "$ac_dir" && ac_dir=.
|
|
1635 if test -f $ac_dir/$ac_word; then
|
|
1636 ac_cv_prog_CC="gcc"
|
|
1637 break
|
|
1638 fi
|
|
1639 done
|
|
1640 IFS="$ac_save_ifs"
|
|
1641 fi
|
|
1642 CC="$ac_cv_prog_CC"
|
|
1643 if test -n "$CC"; then
|
|
1644 echo "$ac_t""$CC" 1>&6
|
|
1645 else
|
|
1646 echo "$ac_t""no" 1>&6
|
|
1647 fi
|
|
1648
|
|
1649 if test -z "$CC"; then
|
|
1650 # Extract the first word of "cc", so it can be a program name with args.
|
|
1651 set dummy cc; ac_word=$2
|
|
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1653 echo "configure:1654: checking for $ac_word" >&5
|
149
|
1654
|
|
1655 if test -n "$CC"; then
|
|
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1657 else
|
420
|
1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
1659 ac_prog_rejected=no
|
420
|
1660 ac_dummy="$PATH"
|
|
1661 for ac_dir in $ac_dummy; do
|
149
|
1662 test -z "$ac_dir" && ac_dir=.
|
|
1663 if test -f $ac_dir/$ac_word; then
|
|
1664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1665 ac_prog_rejected=yes
|
|
1666 continue
|
|
1667 fi
|
|
1668 ac_cv_prog_CC="cc"
|
|
1669 break
|
|
1670 fi
|
|
1671 done
|
|
1672 IFS="$ac_save_ifs"
|
|
1673 if test $ac_prog_rejected = yes; then
|
|
1674 # We found a bogon in the path, so make sure we never use it.
|
|
1675 set dummy $ac_cv_prog_CC
|
|
1676 shift
|
|
1677 if test $# -gt 0; then
|
|
1678 # We chose a different compiler from the bogus one.
|
|
1679 # However, it has the same basename, so the bogon will be chosen
|
|
1680 # first if we set CC to just the basename; use the full file name.
|
|
1681 shift
|
|
1682 set dummy "$ac_dir/$ac_word" "$@"
|
|
1683 shift
|
|
1684 ac_cv_prog_CC="$@"
|
|
1685 fi
|
|
1686 fi
|
|
1687 fi
|
|
1688 CC="$ac_cv_prog_CC"
|
|
1689 if test -n "$CC"; then
|
|
1690 echo "$ac_t""$CC" 1>&6
|
|
1691 else
|
|
1692 echo "$ac_t""no" 1>&6
|
|
1693 fi
|
|
1694
|
420
|
1695 if test -z "$CC"; then
|
|
1696 case "`uname -s`" in
|
|
1697 *win32* | *WIN32*)
|
|
1698 # Extract the first word of "cl", so it can be a program name with args.
|
|
1699 set dummy cl; ac_word=$2
|
|
1700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1701 echo "configure:1702: checking for $ac_word" >&5
|
420
|
1702
|
|
1703 if test -n "$CC"; then
|
|
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1705 else
|
|
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1707 ac_dummy="$PATH"
|
|
1708 for ac_dir in $ac_dummy; do
|
|
1709 test -z "$ac_dir" && ac_dir=.
|
|
1710 if test -f $ac_dir/$ac_word; then
|
|
1711 ac_cv_prog_CC="cl"
|
|
1712 break
|
|
1713 fi
|
|
1714 done
|
|
1715 IFS="$ac_save_ifs"
|
|
1716 fi
|
|
1717 CC="$ac_cv_prog_CC"
|
|
1718 if test -n "$CC"; then
|
|
1719 echo "$ac_t""$CC" 1>&6
|
|
1720 else
|
|
1721 echo "$ac_t""no" 1>&6
|
|
1722 fi
|
|
1723 ;;
|
|
1724 esac
|
|
1725 fi
|
149
|
1726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1727 fi
|
|
1728
|
|
1729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
505
|
1730 echo "configure:1731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
70
|
1731
|
0
|
1732 ac_ext=c
|
151
|
1733 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1734 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1735 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
1736 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
1737 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1738 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
1739 cross_compiling=no
|
|
1740
|
420
|
1741 cat > conftest.$ac_ext << EOF
|
|
1742
|
505
|
1743 #line 1744 "configure"
|
420
|
1744 #include "confdefs.h"
|
|
1745
|
149
|
1746 main(){return(0);}
|
|
1747 EOF
|
505
|
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
1749 ac_cv_prog_cc_works=yes
|
|
1750 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1751 if (./conftest; exit) 2>/dev/null; then
|
|
1752 ac_cv_prog_cc_cross=no
|
|
1753 else
|
|
1754 ac_cv_prog_cc_cross=yes
|
0
|
1755 fi
|
149
|
1756 else
|
|
1757 echo "configure: failed program was:" >&5
|
|
1758 cat conftest.$ac_ext >&5
|
|
1759 ac_cv_prog_cc_works=no
|
|
1760 fi
|
|
1761 rm -fr conftest*
|
420
|
1762 ac_ext=c
|
|
1763 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1764 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1765 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
1766 ac_cpp='$CPP '"$xe_cppflags"
|
|
1767 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1768 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1769 cross_compiling=no
|
149
|
1770
|
|
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1772 if test $ac_cv_prog_cc_works = no; then
|
|
1773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1774 fi
|
|
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
505
|
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
1777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1778 cross_compiling=$ac_cv_prog_cc_cross
|
|
1779
|
|
1780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
505
|
1781 echo "configure:1782: checking whether we are using GNU C" >&5
|
149
|
1782
|
|
1783 cat > conftest.c <<EOF
|
|
1784 #ifdef __GNUC__
|
|
1785 yes;
|
|
1786 #endif
|
|
1787 EOF
|
505
|
1788 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
1789 ac_cv_prog_gcc=yes
|
|
1790 else
|
|
1791 ac_cv_prog_gcc=no
|
|
1792 fi
|
|
1793
|
|
1794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1795
|
|
1796 if test $ac_cv_prog_gcc = yes; then
|
|
1797 GCC=yes
|
420
|
1798 else
|
|
1799 GCC=
|
|
1800 fi
|
|
1801
|
|
1802 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1803 ac_save_CFLAGS="$CFLAGS"
|
|
1804 CFLAGS=
|
|
1805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
505
|
1806 echo "configure:1807: checking whether ${CC-cc} accepts -g" >&5
|
149
|
1807
|
|
1808 echo 'void f(){}' > conftest.c
|
|
1809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1810 ac_cv_prog_cc_g=yes
|
|
1811 else
|
|
1812 ac_cv_prog_cc_g=no
|
|
1813 fi
|
|
1814 rm -f conftest*
|
|
1815
|
|
1816
|
|
1817 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
1818 if test "$ac_test_CFLAGS" = set; then
|
|
1819 CFLAGS="$ac_save_CFLAGS"
|
|
1820 elif test $ac_cv_prog_cc_g = yes; then
|
|
1821 if test "$GCC" = yes; then
|
149
|
1822 CFLAGS="-g -O2"
|
0
|
1823 else
|
420
|
1824 CFLAGS="-g"
|
|
1825 fi
|
|
1826 else
|
|
1827 if test "$GCC" = yes; then
|
149
|
1828 CFLAGS="-O2"
|
420
|
1829 else
|
|
1830 CFLAGS=
|
|
1831 fi
|
149
|
1832 fi
|
169
|
1833
|
|
1834 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
|
149
|
1835 CC=${NON_GNU_CC-cc}
|
|
1836 # Extract the first word of "gcc", so it can be a program name with args.
|
|
1837 set dummy gcc; ac_word=$2
|
|
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1839 echo "configure:1840: checking for $ac_word" >&5
|
149
|
1840
|
|
1841 if test -n "$CC"; then
|
|
1842 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1843 else
|
420
|
1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1845 ac_dummy="$PATH"
|
|
1846 for ac_dir in $ac_dummy; do
|
0
|
1847 test -z "$ac_dir" && ac_dir=.
|
|
1848 if test -f $ac_dir/$ac_word; then
|
149
|
1849 ac_cv_prog_CC="gcc"
|
|
1850 break
|
|
1851 fi
|
|
1852 done
|
|
1853 IFS="$ac_save_ifs"
|
|
1854 fi
|
|
1855 CC="$ac_cv_prog_CC"
|
|
1856 if test -n "$CC"; then
|
|
1857 echo "$ac_t""$CC" 1>&6
|
|
1858 else
|
|
1859 echo "$ac_t""no" 1>&6
|
|
1860 fi
|
|
1861
|
|
1862 if test -z "$CC"; then
|
|
1863 # Extract the first word of "cc", so it can be a program name with args.
|
|
1864 set dummy cc; ac_word=$2
|
|
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1866 echo "configure:1867: checking for $ac_word" >&5
|
157
|
1867
|
|
1868 if test -n "$CC"; then
|
|
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1870 else
|
420
|
1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
157
|
1872 ac_prog_rejected=no
|
420
|
1873 ac_dummy="$PATH"
|
|
1874 for ac_dir in $ac_dummy; do
|
157
|
1875 test -z "$ac_dir" && ac_dir=.
|
|
1876 if test -f $ac_dir/$ac_word; then
|
|
1877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
1878 ac_prog_rejected=yes
|
|
1879 continue
|
|
1880 fi
|
|
1881 ac_cv_prog_CC="cc"
|
|
1882 break
|
|
1883 fi
|
|
1884 done
|
|
1885 IFS="$ac_save_ifs"
|
|
1886 if test $ac_prog_rejected = yes; then
|
|
1887 # We found a bogon in the path, so make sure we never use it.
|
|
1888 set dummy $ac_cv_prog_CC
|
|
1889 shift
|
|
1890 if test $# -gt 0; then
|
|
1891 # We chose a different compiler from the bogus one.
|
|
1892 # However, it has the same basename, so the bogon will be chosen
|
|
1893 # first if we set CC to just the basename; use the full file name.
|
|
1894 shift
|
|
1895 set dummy "$ac_dir/$ac_word" "$@"
|
|
1896 shift
|
|
1897 ac_cv_prog_CC="$@"
|
|
1898 fi
|
|
1899 fi
|
|
1900 fi
|
|
1901 CC="$ac_cv_prog_CC"
|
|
1902 if test -n "$CC"; then
|
|
1903 echo "$ac_t""$CC" 1>&6
|
|
1904 else
|
|
1905 echo "$ac_t""no" 1>&6
|
|
1906 fi
|
|
1907
|
420
|
1908 if test -z "$CC"; then
|
|
1909 case "`uname -s`" in
|
|
1910 *win32* | *WIN32*)
|
|
1911 # Extract the first word of "cl", so it can be a program name with args.
|
|
1912 set dummy cl; ac_word=$2
|
|
1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
1914 echo "configure:1915: checking for $ac_word" >&5
|
420
|
1915
|
|
1916 if test -n "$CC"; then
|
|
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1918 else
|
|
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1920 ac_dummy="$PATH"
|
|
1921 for ac_dir in $ac_dummy; do
|
|
1922 test -z "$ac_dir" && ac_dir=.
|
|
1923 if test -f $ac_dir/$ac_word; then
|
|
1924 ac_cv_prog_CC="cl"
|
|
1925 break
|
|
1926 fi
|
|
1927 done
|
|
1928 IFS="$ac_save_ifs"
|
|
1929 fi
|
|
1930 CC="$ac_cv_prog_CC"
|
|
1931 if test -n "$CC"; then
|
|
1932 echo "$ac_t""$CC" 1>&6
|
|
1933 else
|
|
1934 echo "$ac_t""no" 1>&6
|
|
1935 fi
|
|
1936 ;;
|
|
1937 esac
|
|
1938 fi
|
157
|
1939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1940 fi
|
|
1941
|
|
1942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
505
|
1943 echo "configure:1944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
157
|
1944
|
|
1945 ac_ext=c
|
|
1946 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1947 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1948 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
157
|
1949 ac_cpp='$CPP '"$xe_cppflags"
|
|
1950 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1951 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1952 cross_compiling=no
|
|
1953
|
420
|
1954 cat > conftest.$ac_ext << EOF
|
|
1955
|
505
|
1956 #line 1957 "configure"
|
420
|
1957 #include "confdefs.h"
|
|
1958
|
157
|
1959 main(){return(0);}
|
|
1960 EOF
|
505
|
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
157
|
1962 ac_cv_prog_cc_works=yes
|
|
1963 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1964 if (./conftest; exit) 2>/dev/null; then
|
|
1965 ac_cv_prog_cc_cross=no
|
|
1966 else
|
|
1967 ac_cv_prog_cc_cross=yes
|
|
1968 fi
|
|
1969 else
|
|
1970 echo "configure: failed program was:" >&5
|
|
1971 cat conftest.$ac_ext >&5
|
|
1972 ac_cv_prog_cc_works=no
|
|
1973 fi
|
|
1974 rm -fr conftest*
|
420
|
1975 ac_ext=c
|
|
1976 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
1977 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
1978 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
1979 ac_cpp='$CPP '"$xe_cppflags"
|
|
1980 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
1981 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
1982 cross_compiling=no
|
157
|
1983
|
|
1984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1985 if test $ac_cv_prog_cc_works = no; then
|
|
1986 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1987 fi
|
|
1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
505
|
1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
157
|
1990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1991 cross_compiling=$ac_cv_prog_cc_cross
|
|
1992
|
|
1993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
505
|
1994 echo "configure:1995: checking whether we are using GNU C" >&5
|
157
|
1995
|
|
1996 cat > conftest.c <<EOF
|
|
1997 #ifdef __GNUC__
|
|
1998 yes;
|
|
1999 #endif
|
|
2000 EOF
|
505
|
2001 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
157
|
2002 ac_cv_prog_gcc=yes
|
|
2003 else
|
|
2004 ac_cv_prog_gcc=no
|
|
2005 fi
|
|
2006
|
|
2007 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2008
|
|
2009 if test $ac_cv_prog_gcc = yes; then
|
|
2010 GCC=yes
|
420
|
2011 else
|
|
2012 GCC=
|
|
2013 fi
|
|
2014
|
|
2015 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2016 ac_save_CFLAGS="$CFLAGS"
|
|
2017 CFLAGS=
|
|
2018 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
505
|
2019 echo "configure:2020: checking whether ${CC-cc} accepts -g" >&5
|
157
|
2020
|
|
2021 echo 'void f(){}' > conftest.c
|
|
2022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2023 ac_cv_prog_cc_g=yes
|
|
2024 else
|
|
2025 ac_cv_prog_cc_g=no
|
|
2026 fi
|
|
2027 rm -f conftest*
|
|
2028
|
|
2029
|
|
2030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2031 if test "$ac_test_CFLAGS" = set; then
|
|
2032 CFLAGS="$ac_save_CFLAGS"
|
|
2033 elif test $ac_cv_prog_cc_g = yes; then
|
|
2034 if test "$GCC" = yes; then
|
157
|
2035 CFLAGS="-g -O2"
|
|
2036 else
|
420
|
2037 CFLAGS="-g"
|
|
2038 fi
|
|
2039 else
|
|
2040 if test "$GCC" = yes; then
|
157
|
2041 CFLAGS="-O2"
|
420
|
2042 else
|
|
2043 CFLAGS=
|
|
2044 fi
|
157
|
2045 fi
|
|
2046
|
169
|
2047 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
|
157
|
2048 CC=gcc
|
|
2049 # Extract the first word of "gcc", so it can be a program name with args.
|
|
2050 set dummy gcc; ac_word=$2
|
|
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
2052 echo "configure:2053: checking for $ac_word" >&5
|
157
|
2053
|
|
2054 if test -n "$CC"; then
|
|
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2056 else
|
420
|
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2058 ac_dummy="$PATH"
|
|
2059 for ac_dir in $ac_dummy; do
|
157
|
2060 test -z "$ac_dir" && ac_dir=.
|
|
2061 if test -f $ac_dir/$ac_word; then
|
|
2062 ac_cv_prog_CC="gcc"
|
|
2063 break
|
|
2064 fi
|
|
2065 done
|
|
2066 IFS="$ac_save_ifs"
|
|
2067 fi
|
|
2068 CC="$ac_cv_prog_CC"
|
|
2069 if test -n "$CC"; then
|
|
2070 echo "$ac_t""$CC" 1>&6
|
|
2071 else
|
|
2072 echo "$ac_t""no" 1>&6
|
|
2073 fi
|
|
2074
|
|
2075 if test -z "$CC"; then
|
|
2076 # Extract the first word of "cc", so it can be a program name with args.
|
|
2077 set dummy cc; ac_word=$2
|
|
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
2079 echo "configure:2080: checking for $ac_word" >&5
|
149
|
2080
|
|
2081 if test -n "$CC"; then
|
|
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2083 else
|
420
|
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
149
|
2085 ac_prog_rejected=no
|
420
|
2086 ac_dummy="$PATH"
|
|
2087 for ac_dir in $ac_dummy; do
|
149
|
2088 test -z "$ac_dir" && ac_dir=.
|
|
2089 if test -f $ac_dir/$ac_word; then
|
|
2090 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
2091 ac_prog_rejected=yes
|
|
2092 continue
|
|
2093 fi
|
|
2094 ac_cv_prog_CC="cc"
|
|
2095 break
|
|
2096 fi
|
|
2097 done
|
|
2098 IFS="$ac_save_ifs"
|
|
2099 if test $ac_prog_rejected = yes; then
|
|
2100 # We found a bogon in the path, so make sure we never use it.
|
|
2101 set dummy $ac_cv_prog_CC
|
|
2102 shift
|
|
2103 if test $# -gt 0; then
|
|
2104 # We chose a different compiler from the bogus one.
|
|
2105 # However, it has the same basename, so the bogon will be chosen
|
|
2106 # first if we set CC to just the basename; use the full file name.
|
|
2107 shift
|
|
2108 set dummy "$ac_dir/$ac_word" "$@"
|
|
2109 shift
|
|
2110 ac_cv_prog_CC="$@"
|
|
2111 fi
|
|
2112 fi
|
|
2113 fi
|
|
2114 CC="$ac_cv_prog_CC"
|
|
2115 if test -n "$CC"; then
|
|
2116 echo "$ac_t""$CC" 1>&6
|
|
2117 else
|
|
2118 echo "$ac_t""no" 1>&6
|
|
2119 fi
|
|
2120
|
420
|
2121 if test -z "$CC"; then
|
|
2122 case "`uname -s`" in
|
|
2123 *win32* | *WIN32*)
|
|
2124 # Extract the first word of "cl", so it can be a program name with args.
|
|
2125 set dummy cl; ac_word=$2
|
|
2126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
505
|
2127 echo "configure:2128: checking for $ac_word" >&5
|
420
|
2128
|
|
2129 if test -n "$CC"; then
|
|
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
2131 else
|
|
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2133 ac_dummy="$PATH"
|
|
2134 for ac_dir in $ac_dummy; do
|
|
2135 test -z "$ac_dir" && ac_dir=.
|
|
2136 if test -f $ac_dir/$ac_word; then
|
|
2137 ac_cv_prog_CC="cl"
|
|
2138 break
|
|
2139 fi
|
|
2140 done
|
|
2141 IFS="$ac_save_ifs"
|
|
2142 fi
|
|
2143 CC="$ac_cv_prog_CC"
|
|
2144 if test -n "$CC"; then
|
|
2145 echo "$ac_t""$CC" 1>&6
|
|
2146 else
|
|
2147 echo "$ac_t""no" 1>&6
|
|
2148 fi
|
|
2149 ;;
|
|
2150 esac
|
|
2151 fi
|
149
|
2152 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
2153 fi
|
|
2154
|
|
2155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
505
|
2156 echo "configure:2157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
149
|
2157
|
|
2158 ac_ext=c
|
151
|
2159 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2160 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2161 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
149
|
2162 ac_cpp='$CPP '"$xe_cppflags"
|
151
|
2163 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2164 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
149
|
2165 cross_compiling=no
|
|
2166
|
420
|
2167 cat > conftest.$ac_ext << EOF
|
|
2168
|
505
|
2169 #line 2170 "configure"
|
420
|
2170 #include "confdefs.h"
|
|
2171
|
149
|
2172 main(){return(0);}
|
|
2173 EOF
|
505
|
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
2175 ac_cv_prog_cc_works=yes
|
|
2176 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
2177 if (./conftest; exit) 2>/dev/null; then
|
|
2178 ac_cv_prog_cc_cross=no
|
|
2179 else
|
|
2180 ac_cv_prog_cc_cross=yes
|
|
2181 fi
|
|
2182 else
|
|
2183 echo "configure: failed program was:" >&5
|
|
2184 cat conftest.$ac_ext >&5
|
|
2185 ac_cv_prog_cc_works=no
|
|
2186 fi
|
|
2187 rm -fr conftest*
|
420
|
2188 ac_ext=c
|
|
2189 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
|
|
2190 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
|
462
|
2191 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
|
420
|
2192 ac_cpp='$CPP '"$xe_cppflags"
|
|
2193 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
|
|
2194 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
2195 cross_compiling=no
|
149
|
2196
|
|
2197 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
2198 if test $ac_cv_prog_cc_works = no; then
|
|
2199 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
2200 fi
|
|
2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
505
|
2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
149
|
2203 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
2204 cross_compiling=$ac_cv_prog_cc_cross
|
|
2205
|
|
2206 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
505
|
2207 echo "configure:2208: checking whether we are using GNU C" >&5
|
149
|
2208
|
|
2209 cat > conftest.c <<EOF
|
|
2210 #ifdef __GNUC__
|
|
2211 yes;
|
|
2212 #endif
|
|
2213 EOF
|
505
|
2214 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
149
|
2215 ac_cv_prog_gcc=yes
|
|
2216 else
|
|
2217 ac_cv_prog_gcc=no
|
|
2218 fi
|
|
2219
|
|
2220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
2221
|
|
2222 if test $ac_cv_prog_gcc = yes; then
|
|
2223 GCC=yes
|
420
|
2224 else
|
|
2225 GCC=
|
|
2226 fi
|
|
2227
|
|
2228 ac_test_CFLAGS="${CFLAGS+set}"
|
|
2229 ac_save_CFLAGS="$CFLAGS"
|
|
2230 CFLAGS=
|
|
2231 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
505
|
2232 echo "configure:2233: checking whether ${CC-cc} accepts -g" >&5
|
149
|
2233
|
|
2234 echo 'void f(){}' > conftest.c
|
|
2235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
2236 ac_cv_prog_cc_g=yes
|
|
2237 else
|
|
2238 ac_cv_prog_cc_g=no
|
|
2239 fi
|
|
2240 rm -f conftest*
|
|
2241
|
|
2242
|
|
2243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
420
|
2244 if test "$ac_test_CFLAGS" = set; then
|
|
2245 CFLAGS="$ac_save_CFLAGS"
|
|
2246 elif test $ac_cv_prog_cc_g = yes; then
|
|
2247 if test "$GCC" = yes; then
|
149
|
2248 CFLAGS="-g -O2"
|
|
2249 else
|
420
|
2250 CFLAGS="-g"
|
|
2251 fi
|
|
2252 else
|
|
2253 if test "$GCC" = yes; then
|
149
|
2254 CFLAGS="-O2"
|
420
|
2255 else
|
|
2256 CFLAGS=
|
|
2257 fi
|
149
|
2258 fi
|
|
2259
|
157
|
2260 fi
|
|
2261 CFLAGS="$xe_save_CFLAGS"
|
149
|
2262
|
171
|
2263
|
|
2264 test -n "$CPP" -a -d "$CPP" && CPP=
|
|
2265
|
169
|
2266 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
|
149
|
2267
|
|
2268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
505
|
2269 echo "configure:2270: checking how to run the C preprocessor" >&5
|
149
|
2270 # On Suns, sometimes $CPP names a directory.
|
|
2271 if test -n "$CPP" && test -d "$CPP"; then
|
|
2272 CPP=
|
|
2273 fi
|
0
|
2274 if test -z "$CPP"; then
|
149
|
2275
|
0
|
2276 # This must be in double quotes, not single quotes, because CPP may get
|
149
|
2277 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
0
|
2278 CPP="${CC-cc} -E"
|
149
|
2279 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
2280 # not just through cpp.
|
|
2281 cat > conftest.$ac_ext <<EOF
|
505
|
2282 #line 2283 "configure"
|
149
|
2283 #include "confdefs.h"
|
|
2284 #include <assert.h>
|
0
|
2285 Syntax Error
|
|
2286 EOF
|
149
|
2287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
505
|
2288 { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
2290 if test -z "$ac_err"; then
|
|
2291 :
|
|
2292 else
|
|
2293 echo "$ac_err" >&5
|
|
2294 echo "configure: failed program was:" >&5
|
|
2295 cat conftest.$ac_ext >&5
|
|
2296 rm -rf conftest*
|
|
2297 CPP="${CC-cc} -E -traditional-cpp"
|
|
2298 cat > conftest.$ac_ext <<EOF
|
505
|
2299 #line 2300 "configure"
|
149
|
2300 #include "confdefs.h"
|
|
2301 #include <assert.h>
|
|
2302 Syntax Error
|
|
2303 EOF
|
|
2304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
505
|
2305 { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2307 if test -z "$ac_err"; then
|
|
2308 :
|
|
2309 else
|
|
2310 echo "$ac_err" >&5
|
|
2311 echo "configure: failed program was:" >&5
|
|
2312 cat conftest.$ac_ext >&5
|
|
2313 rm -rf conftest*
|
|
2314 CPP="${CC-cc} -nologo -E"
|
|
2315 cat > conftest.$ac_ext <<EOF
|
505
|
2316 #line 2317 "configure"
|
420
|
2317 #include "confdefs.h"
|
|
2318 #include <assert.h>
|
|
2319 Syntax Error
|
|
2320 EOF
|
|
2321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
505
|
2322 { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
2323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
2324 if test -z "$ac_err"; then
|
|
2325 :
|
|
2326 else
|
149
|
2327 echo "$ac_err" >&5
|
|
2328 echo "configure: failed program was:" >&5
|
|
2329 cat conftest.$ac_ext >&5
|
0
|
2330 rm -rf conftest*
|
|
2331 CPP=/lib/cpp
|
|
2332 fi
|
|
2333 rm -f conftest*
|
|
2334 fi
|
|
2335 rm -f conftest*
|
420
|
2336 fi
|
|
2337 rm -f conftest*
|
149
|
2338 ac_cv_prog_CPP="$CPP"
|
|
2339 CPP="$ac_cv_prog_CPP"
|
|
2340 else
|
|
2341 ac_cv_prog_CPP="$CPP"
|
|
2342 fi
|
|
2343 echo "$ac_t""$CPP" 1>&6
|
|
2344
|
|
2345
|
442
|
2346
|
157
|
2347 echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
505
|
2348 echo "configure:2349: checking for AIX" >&5
|
|
2349 cat > conftest.$ac_ext <<EOF
|
|
2350 #line 2351 "configure"
|
157
|
2351 #include "confdefs.h"
|
|
2352 #ifdef _AIX
|
|
2353 yes
|
|
2354 #endif
|
|
2355
|
|
2356 EOF
|
|
2357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2358 egrep "yes" >/dev/null 2>&1; then
|
|
2359 rm -rf conftest*
|
|
2360 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2361 Defining _ALL_SOURCE
|
|
2362 EOF
|
|
2363 cat >> confdefs.h <<\EOF
|
|
2364 #define _ALL_SOURCE 1
|
|
2365 EOF
|
|
2366 }
|
|
2367
|
|
2368 else
|
|
2369 rm -rf conftest*
|
|
2370 echo "$ac_t""no" 1>&6
|
|
2371 fi
|
|
2372 rm -f conftest*
|
|
2373
|
442
|
2374
|
410
|
2375
|
|
2376 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
|
505
|
2377 echo "configure:2378: checking for GNU libc" >&5
|
|
2378 cat > conftest.$ac_ext <<EOF
|
|
2379 #line 2380 "configure"
|
406
|
2380 #include "confdefs.h"
|
243
|
2381 #include <features.h>
|
|
2382 int main() {
|
|
2383
|
|
2384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
|
|
2385 #error Not a GNU libc system :-(
|
|
2386 ******* ======= ******** &&&&&&&&
|
|
2387 #endif
|
|
2388
|
|
2389 ; return 0; }
|
|
2390 EOF
|
505
|
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
243
|
2392 rm -rf conftest*
|
|
2393 have_glibc=yes
|
|
2394 else
|
|
2395 echo "configure: failed program was:" >&5
|
|
2396 cat conftest.$ac_ext >&5
|
|
2397 rm -rf conftest*
|
|
2398 have_glibc=no
|
|
2399 fi
|
|
2400 rm -f conftest*
|
|
2401 echo "$ac_t""$have_glibc" 1>&6
|
272
|
2402 test "$have_glibc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2403 Defining _GNU_SOURCE
|
|
2404 EOF
|
|
2405 cat >> confdefs.h <<\EOF
|
|
2406 #define _GNU_SOURCE 1
|
|
2407 EOF
|
|
2408 }
|
|
2409
|
243
|
2410
|
442
|
2411 case "$opsys" in
|
|
2412 sol2)
|
|
2413 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2414 Defining __EXTENSIONS__
|
|
2415 EOF
|
|
2416 cat >> confdefs.h <<\EOF
|
|
2417 #define __EXTENSIONS__ 1
|
|
2418 EOF
|
|
2419 }
|
|
2420
|
|
2421 if test "$os_release" -ge 55; then
|
|
2422 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2423 Defining _XOPEN_SOURCE = 500
|
|
2424 EOF
|
|
2425 cat >> confdefs.h <<\EOF
|
|
2426 #define _XOPEN_SOURCE 500
|
|
2427 EOF
|
|
2428 }
|
|
2429
|
|
2430 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2431 Defining _XOPEN_SOURCE_EXTENDED
|
|
2432 EOF
|
|
2433 cat >> confdefs.h <<\EOF
|
|
2434 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2435 EOF
|
|
2436 }
|
|
2437
|
|
2438 fi ;;
|
|
2439 linux)
|
|
2440 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2441 Defining _POSIX_C_SOURCE = 199506L
|
|
2442 EOF
|
|
2443 cat >> confdefs.h <<\EOF
|
|
2444 #define _POSIX_C_SOURCE 199506L
|
|
2445 EOF
|
|
2446 }
|
|
2447
|
|
2448 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2449 Defining _XOPEN_SOURCE = 500
|
|
2450 EOF
|
|
2451 cat >> confdefs.h <<\EOF
|
|
2452 #define _XOPEN_SOURCE 500
|
|
2453 EOF
|
|
2454 }
|
|
2455
|
|
2456 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2457 Defining _XOPEN_SOURCE_EXTENDED
|
|
2458 EOF
|
|
2459 cat >> confdefs.h <<\EOF
|
|
2460 #define _XOPEN_SOURCE_EXTENDED 1
|
|
2461 EOF
|
|
2462 }
|
|
2463
|
|
2464 ;;
|
|
2465 esac
|
|
2466
|
|
2467 cat > conftest.$ac_ext <<EOF
|
505
|
2468 #line 2469 "configure"
|
373
|
2469 #include "confdefs.h"
|
|
2470 int main () {
|
|
2471 #if defined __SUNPRO_C
|
|
2472 return 11;
|
|
2473 #elif defined __DECC
|
|
2474 return 12;
|
442
|
2475 #elif defined __USLC__ && defined __SCO_VERSION__
|
|
2476 return 13;
|
373
|
2477 #else
|
|
2478 return 0;
|
|
2479 #endif
|
|
2480 }
|
|
2481 EOF
|
505
|
2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
2483 then
|
|
2484 :
|
|
2485 else
|
|
2486 conftest_rc="$?"
|
|
2487 echo "configure: failed program was:" >&5
|
|
2488 cat conftest.$ac_ext >&5
|
|
2489 rm -fr conftest*
|
|
2490 case "$conftest_rc" in
|
|
2491 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;;
|
|
2492 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;;
|
442
|
2493 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;;
|
373
|
2494 esac
|
|
2495 fi
|
|
2496 rm -fr conftest*
|
|
2497
|
157
|
2498
|
0
|
2499
|
149
|
2500
|
|
2501 echo "Extracting information from the machine- and system-dependent headers..."
|
|
2502
|
|
2503 tempcname="conftest.c"
|
|
2504
|
|
2505
|
|
2506
|
442
|
2507 cat > $tempcname < confdefs.h
|
|
2508 cat >> $tempcname <<EOF
|
149
|
2509 #define NOT_C_CODE
|
|
2510 #define C_SWITCH_SITE
|
|
2511 #define C_SWITCH_X_SITE
|
|
2512 #define LD_SWITCH_SITE
|
|
2513 #define LD_SWITCH_X_SITE
|
|
2514 #define LD_SWITCH_X_SITE_AUX
|
284
|
2515 #define OS_RELEASE $os_release
|
442
|
2516
|
|
2517 #ifdef config_opsysfile
|
284
|
2518 #include "$srcdir/src/$opsysfile"
|
442
|
2519 #endif
|
|
2520
|
|
2521 #ifdef config_machfile
|
284
|
2522 #include "$srcdir/src/$machfile"
|
442
|
2523 #endif
|
149
|
2524
|
|
2525 #ifndef LIBS_MACHINE
|
151
|
2526 #define LIBS_MACHINE
|
149
|
2527 #endif
|
|
2528 configure___ libs_machine=LIBS_MACHINE
|
|
2529
|
|
2530 #ifndef LIBS_SYSTEM
|
151
|
2531 #define LIBS_SYSTEM
|
149
|
2532 #endif
|
|
2533 configure___ libs_system=LIBS_SYSTEM
|
|
2534
|
|
2535 #ifndef LIBS_TERMCAP
|
151
|
2536 #define LIBS_TERMCAP
|
149
|
2537 #endif
|
|
2538 configure___ libs_termcap=LIBS_TERMCAP
|
|
2539
|
|
2540 #ifndef LIB_STANDARD
|
151
|
2541 #define LIB_STANDARD
|
149
|
2542 #endif
|
|
2543 configure___ libs_standard=LIB_STANDARD
|
|
2544
|
|
2545
|
163
|
2546 #ifndef OBJECTS_MACHINE
|
|
2547 #define OBJECTS_MACHINE
|
|
2548 #endif
|
|
2549 configure___ objects_machine=OBJECTS_MACHINE
|
|
2550
|
|
2551 #ifndef OBJECTS_SYSTEM
|
|
2552 #define OBJECTS_SYSTEM
|
|
2553 #endif
|
|
2554 configure___ objects_system=OBJECTS_SYSTEM
|
|
2555
|
|
2556
|
149
|
2557 #ifndef C_SWITCH_MACHINE
|
151
|
2558 #define C_SWITCH_MACHINE
|
149
|
2559 #endif
|
|
2560 configure___ c_switch_machine=C_SWITCH_MACHINE
|
|
2561
|
157
|
2562 #ifndef C_SWITCH_SYSTEM
|
|
2563 #define C_SWITCH_SYSTEM
|
|
2564 #endif
|
|
2565 configure___ c_switch_system=C_SWITCH_SYSTEM
|
|
2566
|
|
2567
|
|
2568 #ifndef LD_SWITCH_MACHINE
|
|
2569 #define LD_SWITCH_MACHINE
|
|
2570 #endif
|
|
2571 configure___ ld_switch_machine=LD_SWITCH_MACHINE
|
|
2572
|
|
2573 #ifndef LD_SWITCH_SYSTEM
|
|
2574 #define LD_SWITCH_SYSTEM
|
|
2575 #endif
|
|
2576 configure___ ld_switch_system=LD_SWITCH_SYSTEM
|
|
2577
|
149
|
2578
|
|
2579 #ifndef UNEXEC
|
561
|
2580 #define UNEXEC
|
149
|
2581 #endif
|
|
2582 configure___ unexec=UNEXEC
|
|
2583
|
|
2584
|
561
|
2585 #ifndef SYSTEM_TYPE
|
|
2586 #define SYSTEM_TYPE
|
|
2587 #endif
|
|
2588 configure___ system_type=SYSTEM_TYPE
|
|
2589
|
|
2590
|
163
|
2591 #ifndef LD_SWITCH_SHARED
|
|
2592 #define LD_SWITCH_SHARED "-c"
|
|
2593 #endif
|
|
2594 configure___ ld_switch_shared=LD_SWITCH_SHARED
|
|
2595
|
|
2596
|
442
|
2597 #define ORDINARY_LD "\$(CC) \$(CFLAGS)"
|
|
2598 configure___ ordinary_ld=ORDINARY_LD
|
|
2599
|
163
|
2600 #ifdef ORDINARY_LINK
|
442
|
2601 #define LD ORDINARY_LD
|
163
|
2602 #else /* no ORDINARY LINK */
|
|
2603 #ifdef COFF_ENCAPSULATE
|
284
|
2604 #define LD "\$(CC) -nostdlib"
|
163
|
2605 #else /* not COFF_ENCAPSULATE */
|
|
2606 #ifdef LINKER
|
|
2607 #define LD LINKER
|
|
2608 #else /* ! defined (LINKER) */
|
|
2609 #define LD "ld"
|
|
2610 #endif /* ! defined (LINKER) */
|
|
2611 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2612 #endif /* not ORDINARY_LINK */
|
|
2613 configure___ ld=LD
|
|
2614
|
|
2615 #ifndef LIB_GCC
|
|
2616 #define LIB_GCC
|
|
2617 #endif
|
|
2618 configure___ lib_gcc=LIB_GCC
|
|
2619
|
|
2620 #ifndef LD_TEXT_START_ADDR
|
|
2621 #define LD_TEXT_START_ADDR
|
|
2622 #endif
|
|
2623 configure___ ld_text_start_addr=LD_TEXT_START_ADDR
|
|
2624
|
|
2625
|
|
2626 #if ! defined (ORDINARY_LINK) && !defined (START_FILES)
|
|
2627 #ifdef NO_REMAP
|
|
2628 #ifdef COFF_ENCAPSULATE
|
|
2629 #define START_FILES "pre-crt0.o /usr/local/lib/gcc-crt0.o"
|
|
2630 #else /* ! defined (COFF_ENCAPSULATE) */
|
|
2631 #define START_FILES "pre-crt0.o /lib/crt0.o"
|
|
2632 #endif /* ! defined (COFF_ENCAPSULATE) */
|
|
2633 #else /* ! defined (NO_REMAP) */
|
|
2634 #define START_FILES "ecrt0.o"
|
|
2635 #endif /* ! defined (NO_REMAP) */
|
|
2636 #endif /* no ORDINARY_LINK */
|
|
2637 #ifndef START_FILES
|
|
2638 #define START_FILES
|
|
2639 #endif
|
|
2640 configure___ start_files=START_FILES
|
|
2641
|
153
|
2642 #ifdef ORDINARY_LINK
|
|
2643 configure___ ordinary_link=yes
|
|
2644 #else
|
|
2645 configure___ ordinary_link=no
|
|
2646 #endif
|
|
2647
|
149
|
2648 #ifdef SYSTEM_MALLOC
|
|
2649 configure___ system_malloc=yes
|
|
2650 #else
|
|
2651 configure___ system_malloc=no
|
|
2652 #endif
|
|
2653
|
|
2654 #ifdef TERMINFO
|
|
2655 configure___ have_terminfo=yes
|
|
2656 #else
|
|
2657 configure___ have_terminfo=no
|
|
2658 #endif
|
|
2659
|
|
2660 #ifdef MAIL_USE_FLOCK
|
|
2661 configure___ mail_use_flock=yes
|
|
2662 #else
|
|
2663 configure___ mail_use_flock=no
|
|
2664 #endif
|
|
2665
|
|
2666 #ifdef MAIL_USE_LOCKF
|
|
2667 configure___ mail_use_lockf=yes
|
|
2668 #else
|
|
2669 configure___ mail_use_lockf=no
|
|
2670 #endif
|
|
2671
|
438
|
2672 #ifdef MAIL_USE_LOCKING
|
|
2673 configure___ mail_use_locking=yes
|
|
2674 #else
|
|
2675 configure___ mail_use_locking=no
|
|
2676 #endif
|
|
2677
|
398
|
2678 #ifdef HAVE_WIN32_PROCESSES
|
|
2679 configure___ win32_processes=yes
|
|
2680 #else
|
|
2681 configure___ win32_processes=no
|
|
2682 #endif
|
|
2683
|
284
|
2684 EOF
|
|
2685
|
380
|
2686 CPP=`eval "echo $CPP $CPPFLAGS"`
|
149
|
2687 eval `$CPP -Isrc $tempcname \
|
165
|
2688 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
|
153
|
2689
|
149
|
2690 rm $tempcname
|
|
2691
|
561
|
2692 test -z "$system_type" && \
|
|
2693 { test "$extra_verbose" = "yes" && cat << EOF
|
|
2694 Defining SYSTEM_TYPE = "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2695 EOF
|
|
2696 cat >> confdefs.h <<EOF
|
|
2697 #define SYSTEM_TYPE "`uname -s | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
|
|
2698 EOF
|
|
2699 }
|
|
2700
|
|
2701
|
|
2702 test -z "$unexec" && pdump=yes
|
|
2703
|
442
|
2704 if test "$pdump" = "yes"; then
|
|
2705 ordinary_link="yes"
|
|
2706 ld="${ordinary_ld}"
|
|
2707 start_files=
|
|
2708 libs_standard=
|
|
2709 unexec=
|
|
2710 lib_gcc=
|
|
2711 fi
|
|
2712
|
163
|
2713 test "$extra_verbose" = "yes" && \
|
201
|
2714 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo ""
|
163
|
2715
|
458
|
2716 case "$opsys" in mingw* | cygwin*)
|
452
|
2717 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
|
|
2718 cygwin_include=`eval "dirname $cygwin_include"` ;
|
|
2719 cygwin_include="-I$cygwin_include/../include" ;
|
462
|
2720 extra_includes="$cygwin_include/mingw $cygwin_include" ;
|
458
|
2721 case "$opsys" in mingw*)
|
452
|
2722 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
|
|
2723 esac
|
458
|
2724 ;;
|
438
|
2725 esac
|
|
2726
|
153
|
2727 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
|
|
2728
|
442
|
2729
|
|
2730 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
|
|
2731
|
|
2732 if test "$__USLC__" = yes; then
|
|
2733 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
|
561
|
2734 echo "configure:2735: checking for whether the -Kalloca compiler flag is needed" >&5
|
442
|
2735 need_kalloca=no
|
|
2736 cat > conftest.$ac_ext <<EOF
|
561
|
2737 #line 2738 "configure"
|
442
|
2738 #include "confdefs.h"
|
|
2739
|
|
2740 int main() {
|
|
2741 void *x = alloca(4);
|
|
2742 ; return 0; }
|
|
2743 EOF
|
561
|
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2745 rm -rf conftest*
|
|
2746 :
|
|
2747 else
|
|
2748 echo "configure: failed program was:" >&5
|
|
2749 cat conftest.$ac_ext >&5
|
|
2750 rm -rf conftest*
|
|
2751
|
|
2752 xe_save_c_switch_system="$c_switch_system"
|
|
2753 c_switch_system="$c_switch_system -Kalloca"
|
|
2754 cat > conftest.$ac_ext <<EOF
|
561
|
2755 #line 2756 "configure"
|
442
|
2756 #include "confdefs.h"
|
|
2757
|
|
2758 int main() {
|
|
2759 void *x = alloca(4);
|
|
2760 ; return 0; }
|
|
2761 EOF
|
561
|
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
2763 rm -rf conftest*
|
|
2764 need_kalloca=yes
|
|
2765 else
|
|
2766 echo "configure: failed program was:" >&5
|
|
2767 cat conftest.$ac_ext >&5
|
|
2768 fi
|
|
2769 rm -f conftest*
|
|
2770 c_switch_system="$xe_save_c_switch_system"
|
|
2771 fi
|
|
2772 rm -f conftest*
|
|
2773 echo "$ac_t""$need_kalloca" 1>&6
|
|
2774 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
|
|
2775 fi
|
373
|
2776
|
272
|
2777 if test "$cflags_specified" = "no"; then
|
157
|
2778 if test "$GCC" = "yes"; then
|
458
|
2779 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
|
464
|
2780 CFLAGS="$CFLAGS -Wsign-compare"
|
458
|
2781 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
|
398
|
2782 elif test "$__SUNPRO_C" = "yes"; then
|
157
|
2783 case "$opsys" in
|
163
|
2784 sol2 ) CFLAGS="-v -xO4" ;;
|
|
2785 sunos4* ) CFLAGS="-xO2";;
|
157
|
2786 esac
|
373
|
2787 elif test "$__DECC" = "yes"; then
|
|
2788 CFLAGS="-O3"
|
207
|
2789 elif test "$CC" = "xlc"; then
|
373
|
2790 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
|
|
2791 else
|
|
2792 CFLAGS="-O" ; fi
|
272
|
2793 fi
|
|
2794
|
442
|
2795 if test "$GCC" = "yes"; then
|
|
2796 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
|
561
|
2797 echo "configure:2798: checking for buggy gcc versions" >&5
|
442
|
2798 GCC_VERSION=`$CC --version`
|
|
2799 case `uname -s`:`uname -m`:$GCC_VERSION in
|
|
2800 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
|
|
2801 case "$CFLAGS" in
|
|
2802 *-O2*|*-O3*)
|
|
2803 case "$CFLAGS" in
|
|
2804 *-fno-schedule-insns*) ;;
|
|
2805 *)
|
|
2806 echo "$ac_t""yes" 1>&6
|
|
2807 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
|
|
2808 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
|
|
2809 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2810 ;;
|
|
2811 esac
|
|
2812 ;;
|
|
2813 esac
|
|
2814 ;;
|
|
2815 Linux:alpha:egcs-2.91.*)
|
|
2816 echo "$ac_t""yes" 1>&6
|
|
2817 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
|
|
2818 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
|
|
2819 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2820 ;;
|
|
2821 *:i*86*:2.7.2*)
|
448
|
2822 case "$CFLAGS" in
|
|
2823 *-O2*|*-O3*)
|
|
2824 case "$GCC_VERSION" in
|
|
2825 2.7.2)
|
442
|
2826 case "$CFLAGS" in
|
|
2827 *-fno-strength-reduce*) ;;
|
|
2828 *)
|
|
2829 echo "$ac_t""yes" 1>&6
|
|
2830 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2831 echo "configure: warning: -fno-strength-reduce." 1>&2
|
|
2832 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2833 ;;
|
|
2834 esac
|
|
2835 ;;
|
|
2836 esac
|
448
|
2837 case "$CFLAGS" in
|
|
2838 *-fno-caller-saves*) ;;
|
|
2839 *)
|
|
2840 echo "$ac_t""yes" 1>&6
|
|
2841 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
|
|
2842 echo "configure: warning: -fno-caller-saves." 1>&2
|
|
2843 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
|
|
2844 ;;
|
|
2845 esac
|
442
|
2846 ;;
|
|
2847 esac
|
|
2848 ;;
|
|
2849 esac
|
|
2850 echo "$ac_t""no" 1>&6
|
|
2851 fi
|
|
2852
|
272
|
2853
|
|
2854 if test "$GCC" = "yes"; then
|
|
2855 set x $ld_switch_system; shift; ld_switch_system=""
|
|
2856 while test -n "$1"; do
|
|
2857 case $1 in
|
380
|
2858 -L | -l | -u ) ld_switch_system="$ld_switch_system $1 $2"; shift ;;
|
|
2859 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_system="$ld_switch_system $1" ;;
|
272
|
2860 -Xlinker* ) ;;
|
|
2861 * ) ld_switch_system="$ld_switch_system -Xlinker $1" ;;
|
|
2862 esac
|
|
2863 shift
|
|
2864 done
|
157
|
2865 fi
|
151
|
2866
|
163
|
2867 if test "$GCC" = "yes"; then
|
272
|
2868 set x $ld_switch_machine; shift; ld_switch_machine=""
|
|
2869 while test -n "$1"; do
|
|
2870 case $1 in
|
380
|
2871 -L | -l | -u ) ld_switch_machine="$ld_switch_machine $1 $2"; shift ;;
|
|
2872 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_machine="$ld_switch_machine $1" ;;
|
163
|
2873 -Xlinker* ) ;;
|
272
|
2874 * ) ld_switch_machine="$ld_switch_machine -Xlinker $1" ;;
|
163
|
2875 esac
|
272
|
2876 shift
|
163
|
2877 done
|
272
|
2878 fi
|
|
2879
|
|
2880 if test "$GCC" = "yes"; then
|
|
2881 set x $LDFLAGS; shift; LDFLAGS=""
|
|
2882 while test -n "$1"; do
|
|
2883 case $1 in
|
380
|
2884 -L | -l | -u ) LDFLAGS="$LDFLAGS $1 $2"; shift ;;
|
|
2885 -L* | -l* | -u* | -Wl* | -pg ) LDFLAGS="$LDFLAGS $1" ;;
|
163
|
2886 -Xlinker* ) ;;
|
272
|
2887 * ) LDFLAGS="$LDFLAGS -Xlinker $1" ;;
|
163
|
2888 esac
|
272
|
2889 shift
|
163
|
2890 done
|
272
|
2891 fi
|
|
2892
|
|
2893 if test "$GCC" = "yes"; then
|
|
2894 set x $ld_call_shared; shift; ld_call_shared=""
|
|
2895 while test -n "$1"; do
|
|
2896 case $1 in
|
380
|
2897 -L | -l | -u ) ld_call_shared="$ld_call_shared $1 $2"; shift ;;
|
|
2898 -L* | -l* | -u* | -Wl* | -pg ) ld_call_shared="$ld_call_shared $1" ;;
|
173
|
2899 -Xlinker* ) ;;
|
272
|
2900 * ) ld_call_shared="$ld_call_shared -Xlinker $1" ;;
|
173
|
2901 esac
|
272
|
2902 shift
|
173
|
2903 done
|
163
|
2904 fi
|
|
2905
|
|
2906 test -n "$objects_machine" && extra_objs="$extra_objs $objects_machine" && if test "$extra_verbose" = "yes"; then
|
|
2907 echo " xemacs will be linked with \"$objects_machine\""
|
|
2908 fi
|
|
2909 test -n "$objects_system" && extra_objs="$extra_objs $objects_system" && if test "$extra_verbose" = "yes"; then
|
|
2910 echo " xemacs will be linked with \"$objects_system\""
|
|
2911 fi
|
442
|
2912 test -n "$unexec" && test ! "$pdump" = "yes" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
|
151
|
2913 echo " xemacs will be linked with \"$unexec\""
|
|
2914 fi
|
442
|
2915 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
|
|
2916 echo " xemacs will be linked with \"dumper.o\""
|
|
2917 fi
|
151
|
2918
|
163
|
2919 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
|
561
|
2920 echo "configure:2921: checking for dynodump" >&5
|
163
|
2921 if test "$unexec" != "unexsol2.o"; then
|
|
2922 echo "$ac_t""no" 1>&6
|
|
2923 else
|
|
2924 echo "$ac_t""yes" 1>&6
|
|
2925 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
2926 Defining DYNODUMP
|
|
2927 EOF
|
|
2928 cat >> confdefs.h <<\EOF
|
|
2929 #define DYNODUMP 1
|
|
2930 EOF
|
|
2931 }
|
|
2932
|
|
2933 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi
|
175
|
2934 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$SRC_SUBDIR_DEPS"; fi
|
163
|
2935 case "$machine" in
|
|
2936 sparc ) dynodump_arch=sparc ;;
|
|
2937 *86* ) dynodump_arch=i386 ;;
|
|
2938 powerpc ) dynodump_arch=ppc ;;
|
|
2939 esac
|
|
2940 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi
|
|
2941 fi
|
|
2942
|
|
2943
|
274
|
2944 test "$machine$opsys" = "powerpclinux" && start_flags="-T $srcdir/src/ppc.ldscript"
|
272
|
2945
|
207
|
2946 if test "$unexec" = "unexaix.o"; then
|
219
|
2947 if test "$dynamic" = "no"; then
|
207
|
2948 start_flags="-Wl,-bnso,-bnodelcsect"
|
209
|
2949 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}"
|
272
|
2950 for f in "/lib/syscalls.exp" "/lib/threads.exp"; do
|
207
|
2951 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi
|
|
2952 done
|
|
2953 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
|
|
2954 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
|
|
2955 done
|
294
|
2956
|
|
2957 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
|
561
|
2958 echo "configure:2959: checking for terminateAndUnload in -lC" >&5
|
294
|
2959 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
|
|
2960
|
|
2961 xe_check_libs=" -lC "
|
|
2962 cat > conftest.$ac_ext <<EOF
|
561
|
2963 #line 2964 "configure"
|
294
|
2964 #include "confdefs.h"
|
|
2965 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2966 /* We use char because int might match the return type of a gcc2
|
|
2967 builtin and then its argument prototype would still apply. */
|
|
2968 char terminateAndUnload();
|
|
2969
|
|
2970 int main() {
|
|
2971 terminateAndUnload()
|
|
2972 ; return 0; }
|
|
2973 EOF
|
561
|
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
294
|
2975 rm -rf conftest*
|
|
2976 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
2977 else
|
|
2978 echo "configure: failed program was:" >&5
|
|
2979 cat conftest.$ac_ext >&5
|
|
2980 rm -rf conftest*
|
|
2981 eval "ac_cv_lib_$ac_lib_var=no"
|
|
2982 fi
|
|
2983 rm -f conftest*
|
|
2984 xe_check_libs=""
|
|
2985
|
|
2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
2987 echo "$ac_t""yes" 1>&6
|
|
2988 libs_system="$libs_system -lC" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lC\" to \$libs_system"; fi
|
|
2989 else
|
|
2990 echo "$ac_t""no" 1>&6
|
|
2991 fi
|
|
2992
|
|
2993
|
272
|
2994 fi
|
207
|
2995 elif test -n "$ld_text_start_addr"; then
|
|
2996 start_flags="-T $ld_text_start_addr -e __start"
|
|
2997 fi
|
|
2998
|
|
2999
|
|
3000
|
163
|
3001
|
|
3002 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then
|
|
3003 test -z "$linker" && linker='$(CC) -nostdlib'
|
175
|
3004 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`'
|
163
|
3005 fi
|
|
3006 test "$GCC" != "yes" && lib_gcc=
|
|
3007
|
|
3008
|
|
3009
|
151
|
3010
|
209
|
3011
|
380
|
3012 case "$site_libraries" in *:* ) site_libraries="`echo '' $site_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
151
|
3013 if test -n "$site_libraries"; then
|
|
3014 for arg in $site_libraries; do
|
380
|
3015 case "$arg" in
|
|
3016 -* ) ;;
|
|
3017 * ) test -d "$arg" || \
|
384
|
3018 { echo "Error:" "Invalid site library \`$arg': no such directory" >&2; exit 1; }
|
380
|
3019 arg="-L${arg}" ;;
|
|
3020 esac
|
151
|
3021 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi
|
|
3022 done
|
|
3023 fi
|
|
3024
|
380
|
3025 case "$site_includes" in *:* ) site_includes="`echo '' $site_includes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3026 if test -n "$site_includes"; then
|
151
|
3027 for arg in $site_includes; do
|
380
|
3028 case "$arg" in
|
|
3029 -* ) ;;
|
|
3030 * ) test -d "$arg" || \
|
384
|
3031 { echo "Error:" "Invalid site include \`$arg': no such directory" >&2; exit 1; }
|
380
|
3032 arg="-I${arg}" ;;
|
|
3033 esac
|
151
|
3034 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi
|
|
3035 done
|
|
3036 fi
|
|
3037
|
380
|
3038 case "$site_prefixes" in *:* ) site_prefixes="`echo '' $site_prefixes | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
|
3039 if test -n "$site_prefixes"; then
|
|
3040 for dir in $site_prefixes; do
|
398
|
3041 lib_dir="${dir}/lib"
|
416
|
3042 inc_dir="${dir}/include"
|
380
|
3043 if test ! -d "$dir"; then
|
384
|
3044 { echo "Error:" "Invalid site prefix \`$dir': no such directory" >&2; exit 1; }
|
380
|
3045 elif test ! -d "$lib_dir"; then
|
384
|
3046 { echo "Error:" "Invalid site prefix \`$dir': no such directory \`$lib_dir'" >&2; exit 1; }
|
380
|
3047 else
|
414
|
3048 if test -d "$inc_dir"; then
|
|
3049 c_switch_site="$c_switch_site "-I$inc_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-I$inc_dir"\" to \$c_switch_site"; fi
|
|
3050 fi
|
380
|
3051 ld_switch_site="$ld_switch_site "-L$lib_dir"" && if test "$extra_verbose" = "yes"; then echo " Appending \""-L$lib_dir"\" to \$ld_switch_site"; fi
|
|
3052 fi
|
|
3053 done
|
|
3054 fi
|
|
3055
|
157
|
3056
|
151
|
3057 for dir in "/usr/ccs/lib"; do
|
440
|
3058 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
|
151
|
3059 done
|
|
3060
|
380
|
3061 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
|
272
|
3062 if test -n "$site_runtime_libraries"; then
|
165
|
3063 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
|
151
|
3064 export LD_RUN_PATH
|
|
3065 fi
|
|
3066
|
|
3067
|
440
|
3068
|
|
3069
|
|
3070
|
|
3071 if test -n "$add_runtime_path"; then :;
|
|
3072 elif test "$dynamic" = "no"; then add_runtime_path=no
|
151
|
3073 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
|
163
|
3074 else case "$opsys" in
|
373
|
3075 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
|
151
|
3076 * ) add_runtime_path=no ;;
|
|
3077 esac
|
|
3078 fi
|
|
3079
|
|
3080 if test "$add_runtime_path" = "yes"; then
|
|
3081 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
|
561
|
3082 echo "configure:3083: checking "for runtime libraries flag"" >&5
|
373
|
3083 case "$opsys" in
|
377
|
3084 sol2 ) dash_r="-R" ;;
|
392
|
3085 decosf* | linux* | irix*) dash_r="-rpath " ;;
|
373
|
3086 *)
|
|
3087 dash_r=""
|
|
3088 for try_dash_r in "-R" "-R " "-rpath "; do
|
|
3089 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
|
|
3090
|
272
|
3091 if test "$GCC" = "yes"; then
|
|
3092 set x $xe_check_libs; shift; xe_check_libs=""
|
|
3093 while test -n "$1"; do
|
|
3094 case $1 in
|
380
|
3095 -L | -l | -u ) xe_check_libs="$xe_check_libs $1 $2"; shift ;;
|
|
3096 -L* | -l* | -u* | -Wl* | -pg ) xe_check_libs="$xe_check_libs $1" ;;
|
272
|
3097 -Xlinker* ) ;;
|
|
3098 * ) xe_check_libs="$xe_check_libs -Xlinker $1" ;;
|
|
3099 esac
|
|
3100 shift
|
|
3101 done
|
|
3102 fi
|
373
|
3103 cat > conftest.$ac_ext <<EOF
|
561
|
3104 #line 3105 "configure"
|
|
3105 #include "confdefs.h"
|
|
3106
|
|
3107 int main() {
|
|
3108
|
|
3109 ; return 0; }
|
|
3110 EOF
|
|
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
3112 rm -rf conftest*
|
|
3113 dash_r="$try_dash_r"
|
|
3114 else
|
|
3115 echo "configure: failed program was:" >&5
|
|
3116 cat conftest.$ac_ext >&5
|
|
3117 fi
|
|
3118 rm -f conftest*
|
373
|
3119 xe_check_libs=""
|
|
3120 test -n "$dash_r" && break
|
|
3121 done ;;
|
|
3122 esac
|
151
|
3123 if test -n "$dash_r";
|
|
3124 then echo "$ac_t"""\"${dash_r}\""" 1>&6
|
|
3125 else echo "$ac_t""NONE" 1>&6
|
|
3126 fi
|
|
3127 fi
|
|
3128
|
163
|
3129 xe_add_unique_runpath_dir='
|
|
3130 xe_add_p=yes
|
|
3131 for xe_dir in $runpath_dirs; do test "$xe_dir" = "$xe_runpath_dir" && xe_add_p=no
|
|
3132 done
|
|
3133 if test "$xe_add_p" = "yes"; then
|
|
3134 test -n "$runpath" && runpath="${runpath}:"
|
|
3135 runpath="${runpath}${xe_runpath_dir}"
|
|
3136 runpath_dirs="$runpath_dirs $xe_runpath_dir"
|
|
3137 fi'
|
|
3138
|
|
3139
|
151
|
3140
|
155
|
3141
|
151
|
3142 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
3143 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
3144 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
3145
|
163
|
3146 runpath="" runpath_dirs=""
|
155
|
3147 if test -n "$LD_RUN_PATH"; then
|
151
|
3148 runpath="$LD_RUN_PATH"
|
155
|
3149 elif test "$GCC" = "yes"; then
|
163
|
3150 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
3151 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
3152 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
3153 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
3154 case "$arg" in P,* | -L* | -R* )
|
159
|
3155 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
3156 {
|
155
|
3157 xe_runpath_dir="$dir"
|
163
|
3158 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3159 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3160 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3161 eval "$xe_add_unique_runpath_dir"
|
|
3162 }
|
155
|
3163 done ;;
|
|
3164 esac
|
|
3165 done
|
163
|
3166 ld_switch_run="$ld_switch_run_save"
|
155
|
3167 rm -f conftest*
|
151
|
3168 else
|
155
|
3169 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
3170 case "$arg" in -L*) {
|
159
|
3171 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
3172 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
3173 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
3174 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
3175 eval "$xe_add_unique_runpath_dir"
|
|
3176 };; esac
|
151
|
3177 done
|
163
|
3178 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
3179 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
3180 eval "$xe_add_unique_runpath_dir";
|
|
3181 fi
|
155
|
3182 fi
|
151
|
3183 if test -n "$runpath"; then
|
|
3184 ld_switch_run="${dash_r}${runpath}"
|
272
|
3185
|
|
3186 if test "$GCC" = "yes"; then
|
|
3187 set x $ld_switch_run; shift; ld_switch_run=""
|
|
3188 while test -n "$1"; do
|
|
3189 case $1 in
|
380
|
3190 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
3191 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
3192 -Xlinker* ) ;;
|
|
3193 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
3194 esac
|
|
3195 shift
|
|
3196 done
|
|
3197 fi
|
151
|
3198 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
3199 fi
|
|
3200 fi
|
|
3201
|
|
3202
|
149
|
3203
|
|
3204 GNU_MALLOC=yes
|
261
|
3205 if test "$with_dlmalloc" != "no"; then
|
|
3206 doug_lea_malloc=yes
|
|
3207 else
|
|
3208 doug_lea_malloc=no
|
|
3209 fi
|
259
|
3210 after_morecore_hook_exists=yes
|
255
|
3211 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
|
561
|
3212 echo "configure:3213: checking for malloc_set_state" >&5
|
|
3213
|
|
3214 cat > conftest.$ac_ext <<EOF
|
|
3215 #line 3216 "configure"
|
255
|
3216 #include "confdefs.h"
|
|
3217 /* System header to define __stub macros and hopefully few prototypes,
|
|
3218 which can conflict with char malloc_set_state(); below. */
|
|
3219 #include <assert.h>
|
|
3220 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3221 /* We use char because int might match the return type of a gcc2
|
|
3222 builtin and then its argument prototype would still apply. */
|
|
3223 char malloc_set_state();
|
|
3224
|
|
3225 int main() {
|
|
3226
|
|
3227 /* The GNU C library defines this for functions which it implements
|
|
3228 to always fail with ENOSYS. Some functions are actually named
|
|
3229 something starting with __ and the normal name is an alias. */
|
|
3230 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
|
|
3231 choke me
|
|
3232 #else
|
|
3233 malloc_set_state();
|
|
3234 #endif
|
|
3235
|
|
3236 ; return 0; }
|
|
3237 EOF
|
561
|
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
255
|
3239 rm -rf conftest*
|
|
3240 eval "ac_cv_func_malloc_set_state=yes"
|
|
3241 else
|
|
3242 echo "configure: failed program was:" >&5
|
|
3243 cat conftest.$ac_ext >&5
|
|
3244 rm -rf conftest*
|
|
3245 eval "ac_cv_func_malloc_set_state=no"
|
|
3246 fi
|
|
3247 rm -f conftest*
|
|
3248
|
|
3249 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
|
|
3250 echo "$ac_t""yes" 1>&6
|
|
3251 :
|
|
3252 else
|
|
3253 echo "$ac_t""no" 1>&6
|
|
3254 doug_lea_malloc=no
|
|
3255 fi
|
|
3256
|
|
3257 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
|
561
|
3258 echo "configure:3259: checking whether __after_morecore_hook exists" >&5
|
|
3259 cat > conftest.$ac_ext <<EOF
|
|
3260 #line 3261 "configure"
|
255
|
3261 #include "confdefs.h"
|
|
3262 extern void (* __after_morecore_hook)();
|
|
3263 int main() {
|
|
3264 __after_morecore_hook = 0
|
|
3265 ; return 0; }
|
|
3266 EOF
|
561
|
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
3268 rm -rf conftest*
|
|
3269 echo "$ac_t""yes" 1>&6
|
|
3270 else
|
|
3271 echo "configure: failed program was:" >&5
|
|
3272 cat conftest.$ac_ext >&5
|
|
3273 rm -rf conftest*
|
|
3274 echo "$ac_t""no" 1>&6
|
|
3275 after_morecore_hook_exists=no
|
255
|
3276 fi
|
|
3277 rm -f conftest*
|
149
|
3278 if test "$system_malloc" = "yes" ; then
|
|
3279 GNU_MALLOC=no
|
|
3280 GNU_MALLOC_reason="
|
442
|
3281 - The GNU allocators don't work with this system configuration."
|
181
|
3282 elif test "$with_system_malloc" = "yes" ; then
|
149
|
3283 GNU_MALLOC=no
|
|
3284 GNU_MALLOC_reason="
|
442
|
3285 - User chose not to use GNU allocators."
|
181
|
3286 elif test "$with_debug_malloc" = "yes" ; then
|
177
|
3287 GNU_MALLOC=no
|
|
3288 GNU_MALLOC_reason="
|
442
|
3289 - User chose to use Debugging Malloc."
|
|
3290 fi
|
|
3291
|
|
3292 if test "$doug_lea_malloc" = "yes" -a "$GNU_MALLOC" = "yes" ; then
|
|
3293 GNU_MALLOC_reason="
|
|
3294 - Using Doug Lea's new malloc from the GNU C Library."
|
255
|
3295 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3296 Defining DOUG_LEA_MALLOC
|
|
3297 EOF
|
|
3298 cat >> confdefs.h <<\EOF
|
|
3299 #define DOUG_LEA_MALLOC 1
|
|
3300 EOF
|
|
3301 }
|
|
3302
|
259
|
3303 if test "$after_morecore_hook_exists" = "no" ; then
|
|
3304 GNU_MALLOC_reason="
|
442
|
3305 - Using Doug Lea's new malloc from the Linux C Library."
|
259
|
3306 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3307 Defining _NO_MALLOC_WARNING_
|
|
3308 EOF
|
|
3309 cat >> confdefs.h <<\EOF
|
|
3310 #define _NO_MALLOC_WARNING_ 1
|
|
3311 EOF
|
|
3312 }
|
|
3313
|
|
3314 fi
|
255
|
3315 fi
|
|
3316
|
149
|
3317
|
267
|
3318
|
|
3319
|
149
|
3320 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
3321 set dummy ranlib; ac_word=$2
|
|
3322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
561
|
3323 echo "configure:3324: checking for $ac_word" >&5
|
149
|
3324
|
|
3325 if test -n "$RANLIB"; then
|
|
3326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
3327 else
|
420
|
3328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3329 ac_dummy="$PATH"
|
|
3330 for ac_dir in $ac_dummy; do
|
0
|
3331 test -z "$ac_dir" && ac_dir=.
|
|
3332 if test -f $ac_dir/$ac_word; then
|
149
|
3333 ac_cv_prog_RANLIB="ranlib"
|
0
|
3334 break
|
|
3335 fi
|
|
3336 done
|
|
3337 IFS="$ac_save_ifs"
|
149
|
3338 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
3339 fi
|
|
3340 RANLIB="$ac_cv_prog_RANLIB"
|
|
3341 if test -n "$RANLIB"; then
|
|
3342 echo "$ac_t""$RANLIB" 1>&6
|
|
3343 else
|
|
3344 echo "$ac_t""no" 1>&6
|
|
3345 fi
|
|
3346
|
|
3347 ac_aux_dir=
|
|
3348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
3349 if test -f $ac_dir/install-sh; then
|
|
3350 ac_aux_dir=$ac_dir
|
|
3351 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
3352 break
|
|
3353 elif test -f $ac_dir/install.sh; then
|
|
3354 ac_aux_dir=$ac_dir
|
|
3355 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
3356 break
|
|
3357 fi
|
|
3358 done
|
|
3359 if test -z "$ac_aux_dir"; then
|
|
3360 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
3361 fi
|
|
3362 ac_config_guess=$ac_aux_dir/config.guess
|
|
3363 ac_config_sub=$ac_aux_dir/config.sub
|
|
3364 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
3365
|
|
3366 # Find a good install program. We prefer a C program (faster),
|
|
3367 # so one script is as good as another. But avoid the broken or
|
|
3368 # incompatible versions:
|
|
3369 # SysV /etc/install, /usr/sbin/install
|
|
3370 # SunOS /usr/etc/install
|
|
3371 # IRIX /sbin/install
|
|
3372 # AIX /bin/install
|
420
|
3373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
149
|
3374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
3375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
3376 # ./install, which can be erroneously created by make from ./install.sh.
|
|
3377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
561
|
3378 echo "configure:3379: checking for a BSD compatible install" >&5
|
149
|
3379 if test -z "$INSTALL"; then
|
|
3380
|
420
|
3381 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
0
|
3382 for ac_dir in $PATH; do
|
149
|
3383 # Account for people who put trailing slashes in PATH elements.
|
|
3384 case "$ac_dir/" in
|
|
3385 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
0
|
3386 *)
|
|
3387 # OSF1 and SCO ODT 3.0 have their own names for install.
|
420
|
3388 # Don't use installbsd from OSF since it installs stuff as root
|
|
3389 # by default.
|
|
3390 for ac_prog in ginstall scoinst install; do
|
0
|
3391 if test -f $ac_dir/$ac_prog; then
|
|
3392 if test $ac_prog = install &&
|
|
3393 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
3394 # AIX install. It has an incompatible calling convention.
|
|
3395 :
|
|
3396 else
|
149
|
3397 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
0
|
3398 break 2
|
|
3399 fi
|
|
3400 fi
|
|
3401 done
|
|
3402 ;;
|
|
3403 esac
|
|
3404 done
|
149
|
3405 IFS="$ac_save_IFS"
|
|
3406
|
|
3407 if test "${ac_cv_path_install+set}" = set; then
|
|
3408 INSTALL="$ac_cv_path_install"
|
|
3409 else
|
|
3410 # As a last resort, use the slow shell script. We don't cache a
|
|
3411 # path for INSTALL within a source directory, because that will
|
|
3412 # break other packages using the cache if that directory is
|
|
3413 # removed, or if the path is relative.
|
|
3414 INSTALL="$ac_install_sh"
|
|
3415 fi
|
|
3416 fi
|
|
3417 echo "$ac_t""$INSTALL" 1>&6
|
|
3418
|
|
3419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
0
|
3420 # It thinks the first close brace ends the variable substitution.
|
|
3421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
3422
|
420
|
3423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
3424
|
0
|
3425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
3426
|
|
3427 for ac_prog in 'bison -y' byacc
|
|
3428 do
|
149
|
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
3430 set dummy $ac_prog; ac_word=$2
|
|
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
561
|
3432 echo "configure:3433: checking for $ac_word" >&5
|
149
|
3433
|
|
3434 if test -n "$YACC"; then
|
|
3435 ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|
3436 else
|
420
|
3437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3438 ac_dummy="$PATH"
|
|
3439 for ac_dir in $ac_dummy; do
|
0
|
3440 test -z "$ac_dir" && ac_dir=.
|
|
3441 if test -f $ac_dir/$ac_word; then
|
149
|
3442 ac_cv_prog_YACC="$ac_prog"
|
0
|
3443 break
|
|
3444 fi
|
|
3445 done
|
|
3446 IFS="$ac_save_ifs"
|
|
3447 fi
|
149
|
3448 YACC="$ac_cv_prog_YACC"
|
|
3449 if test -n "$YACC"; then
|
|
3450 echo "$ac_t""$YACC" 1>&6
|
|
3451 else
|
|
3452 echo "$ac_t""no" 1>&6
|
|
3453 fi
|
0
|
3454
|
|
3455 test -n "$YACC" && break
|
|
3456 done
|
|
3457 test -n "$YACC" || YACC="yacc"
|
|
3458
|
|
3459
|
460
|
3460 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h
|
120
|
3461 do
|
149
|
3462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
3463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
3464 echo "configure:3465: checking for $ac_hdr" >&5
|
|
3465
|
|
3466 cat > conftest.$ac_ext <<EOF
|
|
3467 #line 3468 "configure"
|
149
|
3468 #include "confdefs.h"
|
|
3469 #include <$ac_hdr>
|
|
3470 EOF
|
|
3471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
3472 { (eval echo configure:3473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3474 if test -z "$ac_err"; then
|
|
3475 rm -rf conftest*
|
149
|
3476 eval "ac_cv_header_$ac_safe=yes"
|
|
3477 else
|
|
3478 echo "$ac_err" >&5
|
|
3479 echo "configure: failed program was:" >&5
|
|
3480 cat conftest.$ac_ext >&5
|
|
3481 rm -rf conftest*
|
|
3482 eval "ac_cv_header_$ac_safe=no"
|
|
3483 fi
|
|
3484 rm -f conftest*
|
|
3485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
3486 echo "$ac_t""yes" 1>&6
|
|
3487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
3488 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3489 Defining $ac_tr_hdr
|
|
3490 EOF
|
|
3491 cat >> confdefs.h <<EOF
|
|
3492 #define $ac_tr_hdr 1
|
|
3493 EOF
|
|
3494 }
|
|
3495
|
|
3496 else
|
|
3497 echo "$ac_t""no" 1>&6
|
|
3498 fi
|
0
|
3499 done
|
|
3500
|
155
|
3501 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
561
|
3502 echo "configure:3503: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
3503
|
|
3504 cat > conftest.$ac_ext <<EOF
|
|
3505 #line 3506 "configure"
|
155
|
3506 #include "confdefs.h"
|
|
3507 #include <sys/types.h>
|
|
3508 #include <sys/wait.h>
|
|
3509 #ifndef WEXITSTATUS
|
|
3510 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
3511 #endif
|
|
3512 #ifndef WIFEXITED
|
|
3513 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
3514 #endif
|
|
3515 int main() {
|
|
3516 int s;
|
|
3517 wait (&s);
|
|
3518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
3519 ; return 0; }
|
|
3520 EOF
|
561
|
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
155
|
3522 rm -rf conftest*
|
|
3523 ac_cv_header_sys_wait_h=yes
|
|
3524 else
|
|
3525 echo "configure: failed program was:" >&5
|
|
3526 cat conftest.$ac_ext >&5
|
|
3527 rm -rf conftest*
|
|
3528 ac_cv_header_sys_wait_h=no
|
|
3529 fi
|
|
3530 rm -f conftest*
|
|
3531
|
|
3532 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
3533 if test $ac_cv_header_sys_wait_h = yes; then
|
|
3534 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3535 Defining HAVE_SYS_WAIT_H
|
|
3536 EOF
|
|
3537 cat >> confdefs.h <<\EOF
|
|
3538 #define HAVE_SYS_WAIT_H 1
|
|
3539 EOF
|
|
3540 }
|
|
3541
|
|
3542 fi
|
|
3543
|
149
|
3544 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
561
|
3545 echo "configure:3546: checking for ANSI C header files" >&5
|
|
3546
|
|
3547 cat > conftest.$ac_ext <<EOF
|
|
3548 #line 3549 "configure"
|
0
|
3549 #include "confdefs.h"
|
|
3550 #include <stdlib.h>
|
|
3551 #include <stdarg.h>
|
|
3552 #include <string.h>
|
|
3553 #include <float.h>
|
|
3554 EOF
|
149
|
3555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
3556 { (eval echo configure:3557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
3557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
3558 if test -z "$ac_err"; then
|
|
3559 rm -rf conftest*
|
149
|
3560 ac_cv_header_stdc=yes
|
|
3561 else
|
|
3562 echo "$ac_err" >&5
|
|
3563 echo "configure: failed program was:" >&5
|
|
3564 cat conftest.$ac_ext >&5
|
|
3565 rm -rf conftest*
|
|
3566 ac_cv_header_stdc=no
|
|
3567 fi
|
|
3568 rm -f conftest*
|
|
3569
|
|
3570 if test $ac_cv_header_stdc = yes; then
|
0
|
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
149
|
3572 cat > conftest.$ac_ext <<EOF
|
561
|
3573 #line 3574 "configure"
|
149
|
3574 #include "confdefs.h"
|
|
3575 #include <string.h>
|
|
3576 EOF
|
|
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3578 egrep "memchr" >/dev/null 2>&1; then
|
|
3579 :
|
|
3580 else
|
|
3581 rm -rf conftest*
|
|
3582 ac_cv_header_stdc=no
|
|
3583 fi
|
|
3584 rm -f conftest*
|
|
3585
|
|
3586 fi
|
|
3587
|
|
3588 if test $ac_cv_header_stdc = yes; then
|
|
3589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
3590 cat > conftest.$ac_ext <<EOF
|
561
|
3591 #line 3592 "configure"
|
149
|
3592 #include "confdefs.h"
|
|
3593 #include <stdlib.h>
|
|
3594 EOF
|
|
3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3596 egrep "free" >/dev/null 2>&1; then
|
|
3597 :
|
|
3598 else
|
|
3599 rm -rf conftest*
|
|
3600 ac_cv_header_stdc=no
|
|
3601 fi
|
|
3602 rm -f conftest*
|
|
3603
|
|
3604 fi
|
|
3605
|
|
3606 if test $ac_cv_header_stdc = yes; then
|
|
3607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
3608 cat > conftest.$ac_ext <<EOF
|
561
|
3609 #line 3610 "configure"
|
0
|
3610 #include "confdefs.h"
|
|
3611 #include <ctype.h>
|
|
3612 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
3613 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
149
|
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
0
|
3615 int main () { int i; for (i = 0; i < 256; i++)
|
|
3616 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
3617 exit (0); }
|
|
3618
|
|
3619 EOF
|
561
|
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
3621 then
|
|
3622 :
|
|
3623 else
|
373
|
3624 conftest_rc="$?"
|
149
|
3625 echo "configure: failed program was:" >&5
|
|
3626 cat conftest.$ac_ext >&5
|
|
3627 rm -fr conftest*
|
|
3628 ac_cv_header_stdc=no
|
0
|
3629 fi
|
|
3630 rm -fr conftest*
|
149
|
3631 fi
|
|
3632
|
|
3633 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
3634 if test $ac_cv_header_stdc = yes; then
|
|
3635 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3636 Defining STDC_HEADERS
|
|
3637 EOF
|
|
3638 cat >> confdefs.h <<\EOF
|
|
3639 #define STDC_HEADERS 1
|
|
3640 EOF
|
|
3641 }
|
|
3642
|
|
3643 fi
|
|
3644
|
|
3645 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
561
|
3646 echo "configure:3647: checking whether time.h and sys/time.h may both be included" >&5
|
|
3647
|
|
3648 cat > conftest.$ac_ext <<EOF
|
|
3649 #line 3650 "configure"
|
0
|
3650 #include "confdefs.h"
|
|
3651 #include <sys/types.h>
|
|
3652 #include <sys/time.h>
|
|
3653 #include <time.h>
|
149
|
3654 int main() {
|
|
3655 struct tm *tp;
|
|
3656 ; return 0; }
|
|
3657 EOF
|
561
|
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3659 rm -rf conftest*
|
|
3660 ac_cv_header_time=yes
|
|
3661 else
|
|
3662 echo "configure: failed program was:" >&5
|
|
3663 cat conftest.$ac_ext >&5
|
|
3664 rm -rf conftest*
|
|
3665 ac_cv_header_time=no
|
|
3666 fi
|
|
3667 rm -f conftest*
|
|
3668
|
|
3669 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
3670 if test $ac_cv_header_time = yes; then
|
|
3671 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3672 Defining TIME_WITH_SYS_TIME
|
|
3673 EOF
|
|
3674 cat >> confdefs.h <<\EOF
|
|
3675 #define TIME_WITH_SYS_TIME 1
|
|
3676 EOF
|
|
3677 }
|
|
3678
|
|
3679 fi
|
|
3680
|
|
3681 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
|
561
|
3682 echo "configure:3683: checking for sys_siglist declaration in signal.h or unistd.h" >&5
|
|
3683
|
|
3684 cat > conftest.$ac_ext <<EOF
|
|
3685 #line 3686 "configure"
|
149
|
3686 #include "confdefs.h"
|
|
3687 #include <sys/types.h>
|
0
|
3688 #include <signal.h>
|
149
|
3689 /* NetBSD declares sys_siglist in unistd.h. */
|
0
|
3690 #ifdef HAVE_UNISTD_H
|
|
3691 #include <unistd.h>
|
|
3692 #endif
|
149
|
3693 int main() {
|
|
3694 char *msg = *(sys_siglist + 1);
|
|
3695 ; return 0; }
|
|
3696 EOF
|
561
|
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3698 rm -rf conftest*
|
|
3699 ac_cv_decl_sys_siglist=yes
|
|
3700 else
|
|
3701 echo "configure: failed program was:" >&5
|
|
3702 cat conftest.$ac_ext >&5
|
|
3703 rm -rf conftest*
|
|
3704 ac_cv_decl_sys_siglist=no
|
|
3705 fi
|
|
3706 rm -f conftest*
|
|
3707
|
|
3708 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
|
|
3709 if test $ac_cv_decl_sys_siglist = yes; then
|
|
3710 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3711 Defining SYS_SIGLIST_DECLARED
|
|
3712 EOF
|
|
3713 cat >> confdefs.h <<\EOF
|
|
3714 #define SYS_SIGLIST_DECLARED 1
|
|
3715 EOF
|
|
3716 }
|
|
3717
|
|
3718 fi
|
|
3719
|
|
3720
|
460
|
3721
|
|
3722 echo $ac_n "checking for utime""... $ac_c" 1>&6
|
561
|
3723 echo "configure:3724: checking for utime" >&5
|
|
3724 cat > conftest.$ac_ext <<EOF
|
|
3725 #line 3726 "configure"
|
460
|
3726 #include "confdefs.h"
|
|
3727 #include <sys/types.h>
|
0
|
3728 #include <utime.h>
|
460
|
3729 int main() {
|
|
3730 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
|
|
3731 ; return 0; }
|
|
3732 EOF
|
561
|
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3734 rm -rf conftest*
|
|
3735 echo "$ac_t""yes" 1>&6
|
|
3736 { test "$extra_verbose" = "yes" && cat << \EOF
|
460
|
3737 Defining HAVE_UTIME
|
|
3738 EOF
|
|
3739 cat >> confdefs.h <<\EOF
|
|
3740 #define HAVE_UTIME 1
|
|
3741 EOF
|
|
3742 }
|
|
3743
|
|
3744 else
|
|
3745 echo "configure: failed program was:" >&5
|
|
3746 cat conftest.$ac_ext >&5
|
|
3747 rm -rf conftest*
|
|
3748 echo "$ac_t""no" 1>&6
|
|
3749 for ac_func in utimes
|
|
3750 do
|
|
3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
3752 echo "configure:3753: checking for $ac_func" >&5
|
|
3753
|
|
3754 cat > conftest.$ac_ext <<EOF
|
|
3755 #line 3756 "configure"
|
460
|
3756 #include "confdefs.h"
|
|
3757 /* System header to define __stub macros and hopefully few prototypes,
|
|
3758 which can conflict with char $ac_func(); below. */
|
|
3759 #include <assert.h>
|
|
3760 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3761 /* We use char because int might match the return type of a gcc2
|
|
3762 builtin and then its argument prototype would still apply. */
|
|
3763 char $ac_func();
|
|
3764
|
|
3765 int main() {
|
|
3766
|
|
3767 /* The GNU C library defines this for functions which it implements
|
|
3768 to always fail with ENOSYS. Some functions are actually named
|
|
3769 something starting with __ and the normal name is an alias. */
|
|
3770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
3771 choke me
|
|
3772 #else
|
|
3773 $ac_func();
|
|
3774 #endif
|
|
3775
|
|
3776 ; return 0; }
|
|
3777 EOF
|
561
|
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
460
|
3779 rm -rf conftest*
|
|
3780 eval "ac_cv_func_$ac_func=yes"
|
|
3781 else
|
|
3782 echo "configure: failed program was:" >&5
|
|
3783 cat conftest.$ac_ext >&5
|
|
3784 rm -rf conftest*
|
|
3785 eval "ac_cv_func_$ac_func=no"
|
|
3786 fi
|
|
3787 rm -f conftest*
|
|
3788
|
|
3789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
3790 echo "$ac_t""yes" 1>&6
|
|
3791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
3792 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3793 Defining $ac_tr_func
|
|
3794 EOF
|
|
3795 cat >> confdefs.h <<EOF
|
|
3796 #define $ac_tr_func 1
|
|
3797 EOF
|
|
3798 }
|
|
3799
|
|
3800 else
|
|
3801 echo "$ac_t""no" 1>&6
|
|
3802 fi
|
|
3803 done
|
|
3804
|
|
3805 fi
|
|
3806 rm -f conftest*
|
|
3807
|
149
|
3808
|
|
3809 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
561
|
3810 echo "configure:3811: checking return type of signal handlers" >&5
|
|
3811
|
|
3812 cat > conftest.$ac_ext <<EOF
|
|
3813 #line 3814 "configure"
|
0
|
3814 #include "confdefs.h"
|
|
3815 #include <sys/types.h>
|
|
3816 #include <signal.h>
|
|
3817 #ifdef signal
|
|
3818 #undef signal
|
|
3819 #endif
|
149
|
3820 #ifdef __cplusplus
|
|
3821 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
3822 #else
|
|
3823 void (*signal ()) ();
|
|
3824 #endif
|
|
3825
|
|
3826 int main() {
|
|
3827 int i;
|
|
3828 ; return 0; }
|
|
3829 EOF
|
561
|
3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
3831 rm -rf conftest*
|
|
3832 ac_cv_type_signal=void
|
|
3833 else
|
|
3834 echo "configure: failed program was:" >&5
|
|
3835 cat conftest.$ac_ext >&5
|
|
3836 rm -rf conftest*
|
|
3837 ac_cv_type_signal=int
|
|
3838 fi
|
|
3839 rm -f conftest*
|
|
3840
|
|
3841 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
3842 { test "$extra_verbose" = "yes" && cat << EOF
|
|
3843 Defining RETSIGTYPE = $ac_cv_type_signal
|
|
3844 EOF
|
|
3845 cat >> confdefs.h <<EOF
|
|
3846 #define RETSIGTYPE $ac_cv_type_signal
|
|
3847 EOF
|
|
3848 }
|
|
3849
|
|
3850
|
163
|
3851 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
561
|
3852 echo "configure:3853: checking for size_t" >&5
|
|
3853
|
|
3854 cat > conftest.$ac_ext <<EOF
|
|
3855 #line 3856 "configure"
|
163
|
3856 #include "confdefs.h"
|
|
3857 #include <sys/types.h>
|
|
3858 #if STDC_HEADERS
|
|
3859 #include <stdlib.h>
|
|
3860 #include <stddef.h>
|
|
3861 #endif
|
|
3862 EOF
|
|
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3864 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3865 rm -rf conftest*
|
|
3866 ac_cv_type_size_t=yes
|
|
3867 else
|
|
3868 rm -rf conftest*
|
|
3869 ac_cv_type_size_t=no
|
|
3870 fi
|
|
3871 rm -f conftest*
|
|
3872
|
|
3873 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
3874 if test $ac_cv_type_size_t = no; then
|
|
3875 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3876 Defining size_t = unsigned
|
|
3877 EOF
|
|
3878 cat >> confdefs.h <<\EOF
|
|
3879 #define size_t unsigned
|
|
3880 EOF
|
|
3881 }
|
|
3882
|
|
3883 fi
|
|
3884
|
|
3885 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
561
|
3886 echo "configure:3887: checking for pid_t" >&5
|
|
3887
|
|
3888 cat > conftest.$ac_ext <<EOF
|
|
3889 #line 3890 "configure"
|
163
|
3890 #include "confdefs.h"
|
|
3891 #include <sys/types.h>
|
|
3892 #if STDC_HEADERS
|
|
3893 #include <stdlib.h>
|
|
3894 #include <stddef.h>
|
|
3895 #endif
|
|
3896 EOF
|
|
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3898 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3899 rm -rf conftest*
|
|
3900 ac_cv_type_pid_t=yes
|
|
3901 else
|
|
3902 rm -rf conftest*
|
|
3903 ac_cv_type_pid_t=no
|
|
3904 fi
|
|
3905 rm -f conftest*
|
|
3906
|
|
3907 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
3908 if test $ac_cv_type_pid_t = no; then
|
|
3909 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3910 Defining pid_t = int
|
|
3911 EOF
|
|
3912 cat >> confdefs.h <<\EOF
|
|
3913 #define pid_t int
|
|
3914 EOF
|
|
3915 }
|
|
3916
|
|
3917 fi
|
|
3918
|
|
3919 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
561
|
3920 echo "configure:3921: checking for uid_t in sys/types.h" >&5
|
|
3921
|
|
3922 cat > conftest.$ac_ext <<EOF
|
|
3923 #line 3924 "configure"
|
163
|
3924 #include "confdefs.h"
|
|
3925 #include <sys/types.h>
|
|
3926 EOF
|
|
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
3928 egrep "uid_t" >/dev/null 2>&1; then
|
|
3929 rm -rf conftest*
|
|
3930 ac_cv_type_uid_t=yes
|
|
3931 else
|
|
3932 rm -rf conftest*
|
|
3933 ac_cv_type_uid_t=no
|
|
3934 fi
|
|
3935 rm -f conftest*
|
|
3936
|
|
3937
|
|
3938 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
3939 if test $ac_cv_type_uid_t = no; then
|
|
3940 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3941 Defining uid_t = int
|
|
3942 EOF
|
|
3943 cat >> confdefs.h <<\EOF
|
|
3944 #define uid_t int
|
|
3945 EOF
|
|
3946 }
|
|
3947
|
|
3948 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3949 Defining gid_t = int
|
|
3950 EOF
|
|
3951 cat >> confdefs.h <<\EOF
|
|
3952 #define gid_t int
|
|
3953 EOF
|
|
3954 }
|
|
3955
|
|
3956 fi
|
|
3957
|
|
3958 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
561
|
3959 echo "configure:3960: checking for mode_t" >&5
|
|
3960
|
|
3961 cat > conftest.$ac_ext <<EOF
|
|
3962 #line 3963 "configure"
|
163
|
3963 #include "confdefs.h"
|
|
3964 #include <sys/types.h>
|
|
3965 #if STDC_HEADERS
|
|
3966 #include <stdlib.h>
|
|
3967 #include <stddef.h>
|
|
3968 #endif
|
|
3969 EOF
|
|
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
3971 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
3972 rm -rf conftest*
|
|
3973 ac_cv_type_mode_t=yes
|
|
3974 else
|
|
3975 rm -rf conftest*
|
|
3976 ac_cv_type_mode_t=no
|
|
3977 fi
|
|
3978 rm -f conftest*
|
|
3979
|
|
3980 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
3981 if test $ac_cv_type_mode_t = no; then
|
|
3982 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
3983 Defining mode_t = int
|
|
3984 EOF
|
|
3985 cat >> confdefs.h <<\EOF
|
|
3986 #define mode_t int
|
|
3987 EOF
|
|
3988 }
|
|
3989
|
|
3990 fi
|
|
3991
|
|
3992 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
561
|
3993 echo "configure:3994: checking for off_t" >&5
|
|
3994
|
|
3995 cat > conftest.$ac_ext <<EOF
|
|
3996 #line 3997 "configure"
|
163
|
3997 #include "confdefs.h"
|
|
3998 #include <sys/types.h>
|
|
3999 #if STDC_HEADERS
|
|
4000 #include <stdlib.h>
|
|
4001 #include <stddef.h>
|
|
4002 #endif
|
|
4003 EOF
|
|
4004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
420
|
4005 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
163
|
4006 rm -rf conftest*
|
|
4007 ac_cv_type_off_t=yes
|
|
4008 else
|
|
4009 rm -rf conftest*
|
|
4010 ac_cv_type_off_t=no
|
|
4011 fi
|
|
4012 rm -f conftest*
|
|
4013
|
|
4014 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4015 if test $ac_cv_type_off_t = no; then
|
|
4016 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4017 Defining off_t = long
|
|
4018 EOF
|
|
4019 cat >> confdefs.h <<\EOF
|
|
4020 #define off_t long
|
|
4021 EOF
|
|
4022 }
|
|
4023
|
|
4024 fi
|
|
4025
|
426
|
4026 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
561
|
4027 echo "configure:4028: checking for ssize_t" >&5
|
|
4028
|
|
4029 cat > conftest.$ac_ext <<EOF
|
|
4030 #line 4031 "configure"
|
426
|
4031 #include "confdefs.h"
|
|
4032 #include <sys/types.h>
|
|
4033 #if STDC_HEADERS
|
|
4034 #include <stdlib.h>
|
|
4035 #include <stddef.h>
|
|
4036 #endif
|
|
4037 EOF
|
|
4038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4039 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4040 rm -rf conftest*
|
|
4041 ac_cv_type_ssize_t=yes
|
|
4042 else
|
|
4043 rm -rf conftest*
|
|
4044 ac_cv_type_ssize_t=no
|
|
4045 fi
|
|
4046 rm -f conftest*
|
|
4047
|
|
4048 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
|
|
4049 if test $ac_cv_type_ssize_t = no; then
|
|
4050 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4051 Defining ssize_t = int
|
|
4052 EOF
|
|
4053 cat >> confdefs.h <<\EOF
|
|
4054 #define ssize_t int
|
|
4055 EOF
|
|
4056 }
|
|
4057
|
|
4058 fi
|
|
4059
|
410
|
4060
|
442
|
4061 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
561
|
4062 echo "configure:4063: checking for socklen_t" >&5
|
|
4063 cat > conftest.$ac_ext <<EOF
|
|
4064 #line 4065 "configure"
|
442
|
4065 #include "confdefs.h"
|
|
4066 #include <sys/socket.h>
|
|
4067 socklen_t x;
|
|
4068
|
|
4069 int main() {
|
|
4070
|
|
4071 ; return 0; }
|
|
4072 EOF
|
561
|
4073 if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4074 rm -rf conftest*
|
|
4075 echo "$ac_t""yes" 1>&6
|
|
4076 else
|
|
4077 echo "configure: failed program was:" >&5
|
|
4078 cat conftest.$ac_ext >&5
|
|
4079 rm -rf conftest*
|
|
4080
|
|
4081 cat > conftest.$ac_ext <<EOF
|
561
|
4082 #line 4083 "configure"
|
442
|
4083 #include "confdefs.h"
|
|
4084 #include <sys/socket.h>
|
|
4085 int accept (int, struct sockaddr *, size_t *);
|
|
4086
|
|
4087 int main() {
|
|
4088
|
|
4089 ; return 0; }
|
|
4090 EOF
|
561
|
4091 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
4092 rm -rf conftest*
|
|
4093
|
|
4094 echo "$ac_t""size_t" 1>&6
|
|
4095 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4096 Defining socklen_t = size_t
|
|
4097 EOF
|
|
4098 cat >> confdefs.h <<\EOF
|
|
4099 #define socklen_t size_t
|
|
4100 EOF
|
|
4101 }
|
|
4102
|
|
4103 else
|
|
4104 echo "configure: failed program was:" >&5
|
|
4105 cat conftest.$ac_ext >&5
|
|
4106 rm -rf conftest*
|
|
4107
|
|
4108 echo "$ac_t""int" 1>&6
|
|
4109 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4110 Defining socklen_t = int
|
|
4111 EOF
|
|
4112 cat >> confdefs.h <<\EOF
|
|
4113 #define socklen_t int
|
|
4114 EOF
|
|
4115 }
|
|
4116
|
|
4117 fi
|
|
4118 rm -f conftest*
|
|
4119 fi
|
|
4120 rm -f conftest*
|
|
4121
|
149
|
4122 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
|
561
|
4123 echo "configure:4124: checking for struct timeval" >&5
|
|
4124 cat > conftest.$ac_ext <<EOF
|
|
4125 #line 4126 "configure"
|
0
|
4126 #include "confdefs.h"
|
|
4127 #ifdef TIME_WITH_SYS_TIME
|
|
4128 #include <sys/time.h>
|
|
4129 #include <time.h>
|
|
4130 #else
|
|
4131 #ifdef HAVE_SYS_TIME_H
|
|
4132 #include <sys/time.h>
|
|
4133 #else
|
|
4134 #include <time.h>
|
|
4135 #endif
|
|
4136 #endif
|
149
|
4137 int main() {
|
|
4138 static struct timeval x; x.tv_sec = x.tv_usec;
|
|
4139 ; return 0; }
|
|
4140 EOF
|
561
|
4141 if { (eval echo configure:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4142 rm -rf conftest*
|
|
4143 echo "$ac_t""yes" 1>&6
|
0
|
4144 HAVE_TIMEVAL=yes
|
149
|
4145 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4146 Defining HAVE_TIMEVAL
|
|
4147 EOF
|
|
4148 cat >> confdefs.h <<\EOF
|
|
4149 #define HAVE_TIMEVAL 1
|
|
4150 EOF
|
|
4151 }
|
|
4152
|
|
4153 else
|
|
4154 echo "configure: failed program was:" >&5
|
|
4155 cat conftest.$ac_ext >&5
|
|
4156 rm -rf conftest*
|
|
4157 echo "$ac_t""no" 1>&6
|
|
4158 HAVE_TIMEVAL=no
|
|
4159 fi
|
|
4160 rm -f conftest*
|
|
4161
|
|
4162 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
561
|
4163 echo "configure:4164: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
4164
|
|
4165 cat > conftest.$ac_ext <<EOF
|
|
4166 #line 4167 "configure"
|
0
|
4167 #include "confdefs.h"
|
|
4168 #include <sys/types.h>
|
|
4169 #include <time.h>
|
149
|
4170 int main() {
|
|
4171 struct tm *tp; tp->tm_sec;
|
|
4172 ; return 0; }
|
|
4173 EOF
|
561
|
4174 if { (eval echo configure:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4175 rm -rf conftest*
|
|
4176 ac_cv_struct_tm=time.h
|
|
4177 else
|
|
4178 echo "configure: failed program was:" >&5
|
|
4179 cat conftest.$ac_ext >&5
|
|
4180 rm -rf conftest*
|
|
4181 ac_cv_struct_tm=sys/time.h
|
|
4182 fi
|
|
4183 rm -f conftest*
|
|
4184
|
|
4185 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
4186 if test $ac_cv_struct_tm = sys/time.h; then
|
|
4187 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4188 Defining TM_IN_SYS_TIME
|
|
4189 EOF
|
|
4190 cat >> confdefs.h <<\EOF
|
|
4191 #define TM_IN_SYS_TIME 1
|
|
4192 EOF
|
|
4193 }
|
|
4194
|
|
4195 fi
|
|
4196
|
|
4197 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
561
|
4198 echo "configure:4199: checking for tm_zone in struct tm" >&5
|
|
4199
|
|
4200 cat > conftest.$ac_ext <<EOF
|
|
4201 #line 4202 "configure"
|
149
|
4202 #include "confdefs.h"
|
|
4203 #include <sys/types.h>
|
|
4204 #include <$ac_cv_struct_tm>
|
|
4205 int main() {
|
|
4206 struct tm tm; tm.tm_zone;
|
|
4207 ; return 0; }
|
|
4208 EOF
|
561
|
4209 if { (eval echo configure:4210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4210 rm -rf conftest*
|
|
4211 ac_cv_struct_tm_zone=yes
|
|
4212 else
|
|
4213 echo "configure: failed program was:" >&5
|
|
4214 cat conftest.$ac_ext >&5
|
|
4215 rm -rf conftest*
|
|
4216 ac_cv_struct_tm_zone=no
|
|
4217 fi
|
|
4218 rm -f conftest*
|
|
4219
|
|
4220 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
|
|
4221 if test "$ac_cv_struct_tm_zone" = yes; then
|
|
4222 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4223 Defining HAVE_TM_ZONE
|
|
4224 EOF
|
|
4225 cat >> confdefs.h <<\EOF
|
|
4226 #define HAVE_TM_ZONE 1
|
|
4227 EOF
|
|
4228 }
|
|
4229
|
|
4230 else
|
|
4231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
561
|
4232 echo "configure:4233: checking for tzname" >&5
|
|
4233
|
|
4234 cat > conftest.$ac_ext <<EOF
|
|
4235 #line 4236 "configure"
|
0
|
4236 #include "confdefs.h"
|
|
4237 #include <time.h>
|
|
4238 #ifndef tzname /* For SGI. */
|
149
|
4239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
0
|
4240 #endif
|
149
|
4241 int main() {
|
|
4242 atoi(*tzname);
|
|
4243 ; return 0; }
|
|
4244 EOF
|
561
|
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4246 rm -rf conftest*
|
|
4247 ac_cv_var_tzname=yes
|
|
4248 else
|
|
4249 echo "configure: failed program was:" >&5
|
|
4250 cat conftest.$ac_ext >&5
|
|
4251 rm -rf conftest*
|
|
4252 ac_cv_var_tzname=no
|
|
4253 fi
|
|
4254 rm -f conftest*
|
|
4255
|
|
4256 echo "$ac_t""$ac_cv_var_tzname" 1>&6
|
|
4257 if test $ac_cv_var_tzname = yes; then
|
|
4258 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4259 Defining HAVE_TZNAME
|
|
4260 EOF
|
|
4261 cat >> confdefs.h <<\EOF
|
|
4262 #define HAVE_TZNAME 1
|
|
4263 EOF
|
|
4264 }
|
|
4265
|
|
4266 fi
|
|
4267 fi
|
|
4268
|
|
4269
|
|
4270 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
561
|
4271 echo "configure:4272: checking for working const" >&5
|
|
4272
|
|
4273 cat > conftest.$ac_ext <<EOF
|
|
4274 #line 4275 "configure"
|
149
|
4275 #include "confdefs.h"
|
|
4276
|
|
4277 int main() {
|
|
4278
|
|
4279 /* Ultrix mips cc rejects this. */
|
0
|
4280 typedef int charset[2]; const charset x;
|
|
4281 /* SunOS 4.1.1 cc rejects this. */
|
|
4282 char const *const *ccp;
|
|
4283 char **p;
|
149
|
4284 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
4285 struct point {int x, y;};
|
|
4286 static struct point const zero = {0,0};
|
0
|
4287 /* AIX XL C 1.02.0.0 rejects this.
|
|
4288 It does not let you subtract one const X* pointer from another in an arm
|
|
4289 of an if-expression whose if-part is not a constant expression */
|
|
4290 const char *g = "string";
|
|
4291 ccp = &g + (g ? g-g : 0);
|
|
4292 /* HPUX 7.0 cc rejects these. */
|
|
4293 ++ccp;
|
|
4294 p = (char**) ccp;
|
|
4295 ccp = (char const *const *) p;
|
|
4296 { /* SCO 3.2v4 cc rejects this. */
|
|
4297 char *t;
|
|
4298 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
4299
|
|
4300 *t++ = 0;
|
|
4301 }
|
|
4302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
149
|
4303 int x[] = {25, 17};
|
0
|
4304 const int *foo = &x[0];
|
|
4305 ++foo;
|
|
4306 }
|
|
4307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
4308 typedef const int *iptr;
|
|
4309 iptr p = 0;
|
|
4310 ++p;
|
|
4311 }
|
|
4312 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
4313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
4314 struct s { int j; const int *ap[3]; };
|
|
4315 struct s *b; b->j = 5;
|
|
4316 }
|
|
4317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
4318 const int foo = 10;
|
149
|
4319 }
|
|
4320
|
|
4321 ; return 0; }
|
|
4322 EOF
|
561
|
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4324 rm -rf conftest*
|
|
4325 ac_cv_c_const=yes
|
|
4326 else
|
|
4327 echo "configure: failed program was:" >&5
|
|
4328 cat conftest.$ac_ext >&5
|
|
4329 rm -rf conftest*
|
|
4330 ac_cv_c_const=no
|
|
4331 fi
|
|
4332 rm -f conftest*
|
|
4333
|
|
4334 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
4335 if test $ac_cv_c_const = no; then
|
|
4336 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4337 Defining const =
|
|
4338 EOF
|
|
4339 cat >> confdefs.h <<\EOF
|
|
4340 #define const
|
|
4341 EOF
|
|
4342 }
|
|
4343
|
|
4344 fi
|
|
4345
|
|
4346
|
|
4347 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
561
|
4348 echo "configure:4349: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
149
|
4349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
4350
|
|
4351 cat > conftestmake <<\EOF
|
0
|
4352 all:
|
|
4353 @echo 'ac_maketemp="${MAKE}"'
|
|
4354 EOF
|
|
4355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
4356 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
149
|
4357 if test -n "$ac_maketemp"; then
|
|
4358 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
4359 else
|
|
4360 eval ac_cv_prog_make_${ac_make}_set=no
|
|
4361 fi
|
0
|
4362 rm -f conftestmake
|
149
|
4363 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
4364 echo "$ac_t""yes" 1>&6
|
|
4365 SET_MAKE=
|
|
4366 else
|
|
4367 echo "$ac_t""no" 1>&6
|
|
4368 SET_MAKE="MAKE=${MAKE-make}"
|
|
4369 fi
|
|
4370
|
|
4371
|
|
4372 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
561
|
4373 echo "configure:4374: checking whether byte ordering is bigendian" >&5
|
149
|
4374
|
|
4375 ac_cv_c_bigendian=unknown
|
|
4376 # See if sys/param.h defines the BYTE_ORDER macro.
|
|
4377 cat > conftest.$ac_ext <<EOF
|
561
|
4378 #line 4379 "configure"
|
149
|
4379 #include "confdefs.h"
|
|
4380 #include <sys/types.h>
|
|
4381 #include <sys/param.h>
|
|
4382 int main() {
|
|
4383
|
|
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
4385 bogus endian macros
|
|
4386 #endif
|
|
4387 ; return 0; }
|
|
4388 EOF
|
561
|
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4390 rm -rf conftest*
|
|
4391 # It does; now see whether it defined to BIG_ENDIAN or not.
|
|
4392 cat > conftest.$ac_ext <<EOF
|
561
|
4393 #line 4394 "configure"
|
149
|
4394 #include "confdefs.h"
|
|
4395 #include <sys/types.h>
|
|
4396 #include <sys/param.h>
|
|
4397 int main() {
|
|
4398
|
|
4399 #if BYTE_ORDER != BIG_ENDIAN
|
|
4400 not big endian
|
|
4401 #endif
|
|
4402 ; return 0; }
|
|
4403 EOF
|
561
|
4404 if { (eval echo configure:4405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
4405 rm -rf conftest*
|
|
4406 ac_cv_c_bigendian=yes
|
|
4407 else
|
|
4408 echo "configure: failed program was:" >&5
|
|
4409 cat conftest.$ac_ext >&5
|
|
4410 rm -rf conftest*
|
|
4411 ac_cv_c_bigendian=no
|
|
4412 fi
|
|
4413 rm -f conftest*
|
|
4414 else
|
|
4415 echo "configure: failed program was:" >&5
|
|
4416 cat conftest.$ac_ext >&5
|
|
4417 fi
|
|
4418 rm -f conftest*
|
|
4419 if test $ac_cv_c_bigendian = unknown; then
|
|
4420 cat > conftest.$ac_ext <<EOF
|
561
|
4421 #line 4422 "configure"
|
0
|
4422 #include "confdefs.h"
|
|
4423 main () {
|
|
4424 /* Are we little or big endian? From Harbison&Steele. */
|
|
4425 union
|
|
4426 {
|
|
4427 long l;
|
|
4428 char c[sizeof (long)];
|
|
4429 } u;
|
|
4430 u.l = 1;
|
|
4431 exit (u.c[sizeof (long) - 1] == 1);
|
|
4432 }
|
|
4433 EOF
|
561
|
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
4435 then
|
|
4436 ac_cv_c_bigendian=no
|
|
4437 else
|
373
|
4438 conftest_rc="$?"
|
149
|
4439 echo "configure: failed program was:" >&5
|
|
4440 cat conftest.$ac_ext >&5
|
|
4441 rm -fr conftest*
|
|
4442 ac_cv_c_bigendian=yes
|
0
|
4443 fi
|
|
4444 rm -fr conftest*
|
149
|
4445 fi
|
|
4446
|
|
4447 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
4448 if test $ac_cv_c_bigendian = yes; then
|
|
4449 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4450 Defining WORDS_BIGENDIAN
|
|
4451 EOF
|
|
4452 cat >> confdefs.h <<\EOF
|
|
4453 #define WORDS_BIGENDIAN 1
|
|
4454 EOF
|
|
4455 }
|
|
4456
|
|
4457 fi
|
|
4458
|
|
4459
|
151
|
4460 echo $ac_n "checking size of short""... $ac_c" 1>&6
|
561
|
4461 echo "configure:4462: checking size of short" >&5
|
|
4462
|
|
4463 cat > conftest.$ac_ext <<EOF
|
|
4464 #line 4465 "configure"
|
151
|
4465 #include "confdefs.h"
|
|
4466 #include <stdio.h>
|
|
4467 main()
|
|
4468 {
|
|
4469 FILE *f=fopen("conftestval", "w");
|
|
4470 if (!f) exit(1);
|
|
4471 fprintf(f, "%d\n", sizeof(short));
|
|
4472 exit(0);
|
|
4473 }
|
|
4474 EOF
|
561
|
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4476 then
|
|
4477 ac_cv_sizeof_short=`cat conftestval`
|
|
4478 else
|
373
|
4479 conftest_rc="$?"
|
151
|
4480 echo "configure: failed program was:" >&5
|
|
4481 cat conftest.$ac_ext >&5
|
|
4482 rm -fr conftest*
|
|
4483 ac_cv_sizeof_short=0
|
|
4484 fi
|
|
4485 rm -fr conftest*
|
|
4486 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
4487 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4488 Defining SIZEOF_SHORT = $ac_cv_sizeof_short
|
|
4489 EOF
|
|
4490 cat >> confdefs.h <<EOF
|
|
4491 #define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
4492 EOF
|
|
4493 }
|
|
4494
|
|
4495
|
163
|
4496 if test "$ac_cv_sizeof_short" = 0; then
|
|
4497 echo ""
|
|
4498 echo "*** PANIC *** Configure tests are not working - compiler is broken."
|
|
4499 echo "*** PANIC *** Please examine config.log for compilation errors."
|
|
4500 exit 1
|
|
4501 fi
|
151
|
4502 echo $ac_n "checking size of int""... $ac_c" 1>&6
|
561
|
4503 echo "configure:4504: checking size of int" >&5
|
|
4504
|
|
4505 cat > conftest.$ac_ext <<EOF
|
|
4506 #line 4507 "configure"
|
151
|
4507 #include "confdefs.h"
|
|
4508 #include <stdio.h>
|
|
4509 main()
|
|
4510 {
|
|
4511 FILE *f=fopen("conftestval", "w");
|
|
4512 if (!f) exit(1);
|
|
4513 fprintf(f, "%d\n", sizeof(int));
|
|
4514 exit(0);
|
|
4515 }
|
|
4516 EOF
|
561
|
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4518 then
|
|
4519 ac_cv_sizeof_int=`cat conftestval`
|
|
4520 else
|
373
|
4521 conftest_rc="$?"
|
151
|
4522 echo "configure: failed program was:" >&5
|
|
4523 cat conftest.$ac_ext >&5
|
|
4524 rm -fr conftest*
|
|
4525 ac_cv_sizeof_int=0
|
|
4526 fi
|
|
4527 rm -fr conftest*
|
|
4528 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
4529 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4530 Defining SIZEOF_INT = $ac_cv_sizeof_int
|
|
4531 EOF
|
|
4532 cat >> confdefs.h <<EOF
|
|
4533 #define SIZEOF_INT $ac_cv_sizeof_int
|
|
4534 EOF
|
|
4535 }
|
|
4536
|
|
4537
|
|
4538 echo $ac_n "checking size of long""... $ac_c" 1>&6
|
561
|
4539 echo "configure:4540: checking size of long" >&5
|
|
4540
|
|
4541 cat > conftest.$ac_ext <<EOF
|
|
4542 #line 4543 "configure"
|
151
|
4543 #include "confdefs.h"
|
|
4544 #include <stdio.h>
|
|
4545 main()
|
|
4546 {
|
|
4547 FILE *f=fopen("conftestval", "w");
|
|
4548 if (!f) exit(1);
|
|
4549 fprintf(f, "%d\n", sizeof(long));
|
|
4550 exit(0);
|
|
4551 }
|
|
4552 EOF
|
561
|
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
151
|
4554 then
|
|
4555 ac_cv_sizeof_long=`cat conftestval`
|
|
4556 else
|
373
|
4557 conftest_rc="$?"
|
151
|
4558 echo "configure: failed program was:" >&5
|
|
4559 cat conftest.$ac_ext >&5
|
|
4560 rm -fr conftest*
|
|
4561 ac_cv_sizeof_long=0
|
|
4562 fi
|
|
4563 rm -fr conftest*
|
|
4564 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
4565 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4566 Defining SIZEOF_LONG = $ac_cv_sizeof_long
|
|
4567 EOF
|
|
4568 cat >> confdefs.h <<EOF
|
|
4569 #define SIZEOF_LONG $ac_cv_sizeof_long
|
|
4570 EOF
|
|
4571 }
|
|
4572
|
|
4573
|
163
|
4574 echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
561
|
4575 echo "configure:4576: checking size of long long" >&5
|
|
4576
|
|
4577 cat > conftest.$ac_ext <<EOF
|
|
4578 #line 4579 "configure"
|
163
|
4579 #include "confdefs.h"
|
|
4580 #include <stdio.h>
|
|
4581 main()
|
|
4582 {
|
|
4583 FILE *f=fopen("conftestval", "w");
|
|
4584 if (!f) exit(1);
|
|
4585 fprintf(f, "%d\n", sizeof(long long));
|
|
4586 exit(0);
|
|
4587 }
|
|
4588 EOF
|
561
|
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4590 then
|
|
4591 ac_cv_sizeof_long_long=`cat conftestval`
|
|
4592 else
|
373
|
4593 conftest_rc="$?"
|
163
|
4594 echo "configure: failed program was:" >&5
|
|
4595 cat conftest.$ac_ext >&5
|
|
4596 rm -fr conftest*
|
|
4597 ac_cv_sizeof_long_long=0
|
|
4598 fi
|
|
4599 rm -fr conftest*
|
|
4600 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
4601 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4602 Defining SIZEOF_LONG_LONG = $ac_cv_sizeof_long_long
|
|
4603 EOF
|
|
4604 cat >> confdefs.h <<EOF
|
|
4605 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
4606 EOF
|
|
4607 }
|
|
4608
|
|
4609
|
|
4610 echo $ac_n "checking size of void *""... $ac_c" 1>&6
|
561
|
4611 echo "configure:4612: checking size of void *" >&5
|
|
4612
|
|
4613 cat > conftest.$ac_ext <<EOF
|
|
4614 #line 4615 "configure"
|
163
|
4615 #include "confdefs.h"
|
|
4616 #include <stdio.h>
|
|
4617 main()
|
|
4618 {
|
|
4619 FILE *f=fopen("conftestval", "w");
|
|
4620 if (!f) exit(1);
|
|
4621 fprintf(f, "%d\n", sizeof(void *));
|
|
4622 exit(0);
|
|
4623 }
|
|
4624 EOF
|
561
|
4625 if { (eval echo configure:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
4626 then
|
|
4627 ac_cv_sizeof_void_p=`cat conftestval`
|
|
4628 else
|
373
|
4629 conftest_rc="$?"
|
163
|
4630 echo "configure: failed program was:" >&5
|
|
4631 cat conftest.$ac_ext >&5
|
|
4632 rm -fr conftest*
|
|
4633 ac_cv_sizeof_void_p=0
|
|
4634 fi
|
|
4635 rm -fr conftest*
|
|
4636 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
|
|
4637 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4638 Defining SIZEOF_VOID_P = $ac_cv_sizeof_void_p
|
|
4639 EOF
|
|
4640 cat >> confdefs.h <<EOF
|
|
4641 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
4642 EOF
|
|
4643 }
|
|
4644
|
|
4645
|
151
|
4646
|
149
|
4647 echo $ac_n "checking for long file names""... $ac_c" 1>&6
|
561
|
4648 echo "configure:4649: checking for long file names" >&5
|
149
|
4649
|
|
4650 ac_cv_sys_long_file_names=yes
|
0
|
4651 # Test for long file names in all the places we know might matter:
|
|
4652 # . the current directory, where building will happen
|
149
|
4653 # $prefix/lib where we will be installing things
|
|
4654 # $exec_prefix/lib likewise
|
|
4655 # eval it to expand exec_prefix.
|
|
4656 # $TMPDIR if set, where it might want to write temporary files
|
|
4657 # if $TMPDIR is not set:
|
0
|
4658 # /tmp where it might want to write temporary files
|
|
4659 # /var/tmp likewise
|
|
4660 # /usr/tmp likewise
|
149
|
4661 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
|
|
4662 ac_tmpdirs="$TMPDIR"
|
|
4663 else
|
|
4664 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
|
|
4665 fi
|
|
4666 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
|
0
|
4667 test -d $ac_dir || continue
|
149
|
4668 test -w $ac_dir || continue # It is less confusing to not echo anything here.
|
0
|
4669 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
|
|
4670 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
|
|
4671 val=`cat $ac_dir/conftest9012345 2>/dev/null`
|
149
|
4672 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
|
|
4673 ac_cv_sys_long_file_names=no
|
|
4674 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4675 break
|
0
|
4676 fi
|
149
|
4677 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
|
|
4678 done
|
|
4679
|
|
4680 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
|
|
4681 if test $ac_cv_sys_long_file_names = yes; then
|
|
4682 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4683 Defining HAVE_LONG_FILE_NAMES
|
|
4684 EOF
|
|
4685 cat >> confdefs.h <<\EOF
|
|
4686 #define HAVE_LONG_FILE_NAMES 1
|
|
4687 EOF
|
|
4688 }
|
|
4689
|
|
4690 fi
|
|
4691
|
|
4692
|
398
|
4693 echo $ac_n "checking for sin""... $ac_c" 1>&6
|
561
|
4694 echo "configure:4695: checking for sin" >&5
|
|
4695
|
|
4696 cat > conftest.$ac_ext <<EOF
|
|
4697 #line 4698 "configure"
|
398
|
4698 #include "confdefs.h"
|
|
4699 /* System header to define __stub macros and hopefully few prototypes,
|
|
4700 which can conflict with char sin(); below. */
|
|
4701 #include <assert.h>
|
|
4702 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4703 /* We use char because int might match the return type of a gcc2
|
|
4704 builtin and then its argument prototype would still apply. */
|
|
4705 char sin();
|
|
4706
|
|
4707 int main() {
|
|
4708
|
|
4709 /* The GNU C library defines this for functions which it implements
|
|
4710 to always fail with ENOSYS. Some functions are actually named
|
|
4711 something starting with __ and the normal name is an alias. */
|
|
4712 #if defined (__stub_sin) || defined (__stub___sin)
|
|
4713 choke me
|
|
4714 #else
|
|
4715 sin();
|
|
4716 #endif
|
|
4717
|
|
4718 ; return 0; }
|
|
4719 EOF
|
561
|
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
4721 rm -rf conftest*
|
|
4722 eval "ac_cv_func_sin=yes"
|
|
4723 else
|
|
4724 echo "configure: failed program was:" >&5
|
|
4725 cat conftest.$ac_ext >&5
|
|
4726 rm -rf conftest*
|
|
4727 eval "ac_cv_func_sin=no"
|
|
4728 fi
|
|
4729 rm -f conftest*
|
|
4730
|
|
4731 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
|
|
4732 echo "$ac_t""yes" 1>&6
|
|
4733 :
|
|
4734 else
|
|
4735 echo "$ac_t""no" 1>&6
|
149
|
4736
|
207
|
4737 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
561
|
4738 echo "configure:4739: checking for sin in -lm" >&5
|
207
|
4739 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
149
|
4740
|
|
4741 xe_check_libs=" -lm "
|
|
4742 cat > conftest.$ac_ext <<EOF
|
561
|
4743 #line 4744 "configure"
|
149
|
4744 #include "confdefs.h"
|
|
4745 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4746 /* We use char because int might match the return type of a gcc2
|
|
4747 builtin and then its argument prototype would still apply. */
|
207
|
4748 char sin();
|
149
|
4749
|
|
4750 int main() {
|
207
|
4751 sin()
|
149
|
4752 ; return 0; }
|
|
4753 EOF
|
561
|
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
4755 rm -rf conftest*
|
|
4756 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4757 else
|
|
4758 echo "configure: failed program was:" >&5
|
|
4759 cat conftest.$ac_ext >&5
|
|
4760 rm -rf conftest*
|
|
4761 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4762 fi
|
|
4763 rm -f conftest*
|
|
4764 xe_check_libs=""
|
|
4765
|
151
|
4766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
4767 echo "$ac_t""yes" 1>&6
|
398
|
4768 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
|
149
|
4769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4770 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4771 Defining $ac_tr_lib
|
|
4772 EOF
|
|
4773 cat >> confdefs.h <<EOF
|
|
4774 #define $ac_tr_lib 1
|
|
4775 EOF
|
|
4776 }
|
|
4777
|
151
|
4778 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi
|
|
4779
|
|
4780 else
|
|
4781 echo "$ac_t""no" 1>&6
|
|
4782 fi
|
|
4783
|
|
4784
|
398
|
4785 fi
|
|
4786
|
151
|
4787
|
|
4788 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4789 Defining LISP_FLOAT_TYPE
|
|
4790 EOF
|
|
4791 cat >> confdefs.h <<\EOF
|
|
4792 #define LISP_FLOAT_TYPE 1
|
|
4793 EOF
|
|
4794 }
|
149
|
4795
|
|
4796
|
243
|
4797 cat > conftest.$ac_ext <<EOF
|
561
|
4798 #line 4799 "configure"
|
243
|
4799 #include "confdefs.h"
|
|
4800 #include <math.h>
|
|
4801 int main() {
|
|
4802 return atanh(1.0) + asinh(1.0) + acosh(1.0);
|
|
4803 ; return 0; }
|
|
4804 EOF
|
561
|
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
243
|
4806 rm -rf conftest*
|
|
4807 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4808 Defining HAVE_INVERSE_HYPERBOLIC
|
|
4809 EOF
|
|
4810 cat >> confdefs.h <<\EOF
|
|
4811 #define HAVE_INVERSE_HYPERBOLIC 1
|
|
4812 EOF
|
|
4813 }
|
|
4814
|
|
4815 else
|
|
4816 echo "configure: failed program was:" >&5
|
|
4817 cat conftest.$ac_ext >&5
|
|
4818 fi
|
|
4819 rm -f conftest*
|
|
4820
|
149
|
4821 echo "checking type of mail spool file locking" 1>&6
|
561
|
4822 echo "configure:4823: checking type of mail spool file locking" >&5
|
438
|
4823 for ac_func in lockf flock
|
|
4824 do
|
|
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
4826 echo "configure:4827: checking for $ac_func" >&5
|
|
4827
|
|
4828 cat > conftest.$ac_ext <<EOF
|
|
4829 #line 4830 "configure"
|
438
|
4830 #include "confdefs.h"
|
|
4831 /* System header to define __stub macros and hopefully few prototypes,
|
|
4832 which can conflict with char $ac_func(); below. */
|
|
4833 #include <assert.h>
|
|
4834 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4835 /* We use char because int might match the return type of a gcc2
|
|
4836 builtin and then its argument prototype would still apply. */
|
|
4837 char $ac_func();
|
|
4838
|
|
4839 int main() {
|
|
4840
|
|
4841 /* The GNU C library defines this for functions which it implements
|
|
4842 to always fail with ENOSYS. Some functions are actually named
|
|
4843 something starting with __ and the normal name is an alias. */
|
|
4844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4845 choke me
|
|
4846 #else
|
|
4847 $ac_func();
|
|
4848 #endif
|
|
4849
|
|
4850 ; return 0; }
|
|
4851 EOF
|
561
|
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
438
|
4853 rm -rf conftest*
|
|
4854 eval "ac_cv_func_$ac_func=yes"
|
|
4855 else
|
|
4856 echo "configure: failed program was:" >&5
|
|
4857 cat conftest.$ac_ext >&5
|
|
4858 rm -rf conftest*
|
|
4859 eval "ac_cv_func_$ac_func=no"
|
|
4860 fi
|
|
4861 rm -f conftest*
|
|
4862
|
|
4863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4864 echo "$ac_t""yes" 1>&6
|
|
4865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4866 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4867 Defining $ac_tr_func
|
|
4868 EOF
|
|
4869 cat >> confdefs.h <<EOF
|
|
4870 #define $ac_tr_func 1
|
|
4871 EOF
|
|
4872 }
|
|
4873
|
|
4874 else
|
|
4875 echo "$ac_t""no" 1>&6
|
|
4876 fi
|
|
4877 done
|
|
4878
|
149
|
4879 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
|
|
4880 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
|
438
|
4881 test -z "$mail_locking" -a "$mail_use_locking" = "yes" && mail_locking=locking
|
442
|
4882 if test -z "$mail_locking"; then
|
|
4883 case "$opsys" in cygwin* | mingw*)
|
|
4884 mail_locking=pop ;;
|
|
4885 esac
|
|
4886 fi
|
|
4887
|
149
|
4888 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
4889 Defining MAIL_LOCK_LOCKF
|
|
4890 EOF
|
|
4891 cat >> confdefs.h <<\EOF
|
|
4892 #define MAIL_LOCK_LOCKF 1
|
149
|
4893 EOF
|
|
4894 }
|
|
4895
|
|
4896 elif test "$mail_locking" = "flock"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
438
|
4897 Defining MAIL_LOCK_FLOCK
|
|
4898 EOF
|
|
4899 cat >> confdefs.h <<\EOF
|
|
4900 #define MAIL_LOCK_FLOCK 1
|
|
4901 EOF
|
|
4902 }
|
|
4903
|
|
4904 elif test "$mail_locking" = "locking"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4905 Defining MAIL_LOCK_LOCKING
|
|
4906 EOF
|
|
4907 cat >> confdefs.h <<\EOF
|
|
4908 #define MAIL_LOCK_LOCKING 1
|
|
4909 EOF
|
|
4910 }
|
|
4911
|
442
|
4912 elif test "$mail_locking" = "pop"; then
|
|
4913 with_pop=yes
|
|
4914 mail_locking=
|
438
|
4915 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
4916 Defining MAIL_LOCK_DOT
|
|
4917 EOF
|
|
4918 cat >> confdefs.h <<\EOF
|
|
4919 #define MAIL_LOCK_DOT 1
|
|
4920 EOF
|
|
4921 }
|
|
4922
|
|
4923 fi
|
|
4924 test "$mail_locking" = "lockf" -a "$ac_cv_func_lockf" != "yes" && \
|
|
4925 { echo "Error:" "lockf mail locking requested but not available." >&2; exit 1; }
|
|
4926 test "$mail_locking" = "flock" -a "$ac_cv_func_flock" != "yes" && \
|
|
4927 { echo "Error:" "flock mail locking requested but not available." >&2; exit 1; }
|
|
4928 test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \
|
|
4929 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
|
151
|
4930
|
278
|
4931 case "$opsys" in decosf*)
|
|
4932
|
151
|
4933 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
|
561
|
4934 echo "configure:4935: checking for cma_open in -lpthreads" >&5
|
151
|
4935 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
|
|
4936
|
|
4937 xe_check_libs=" -lpthreads "
|
|
4938 cat > conftest.$ac_ext <<EOF
|
561
|
4939 #line 4940 "configure"
|
151
|
4940 #include "confdefs.h"
|
|
4941 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4942 /* We use char because int might match the return type of a gcc2
|
|
4943 builtin and then its argument prototype would still apply. */
|
|
4944 char cma_open();
|
|
4945
|
|
4946 int main() {
|
|
4947 cma_open()
|
|
4948 ; return 0; }
|
|
4949 EOF
|
561
|
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
4951 rm -rf conftest*
|
|
4952 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4953 else
|
|
4954 echo "configure: failed program was:" >&5
|
|
4955 cat conftest.$ac_ext >&5
|
|
4956 rm -rf conftest*
|
|
4957 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4958 fi
|
|
4959 rm -f conftest*
|
|
4960 xe_check_libs=""
|
|
4961
|
|
4962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
4963 echo "$ac_t""yes" 1>&6
|
|
4964 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
4965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
4966 { test "$extra_verbose" = "yes" && cat << EOF
|
|
4967 Defining $ac_tr_lib
|
|
4968 EOF
|
|
4969 cat >> confdefs.h <<EOF
|
|
4970 #define $ac_tr_lib 1
|
|
4971 EOF
|
|
4972 }
|
|
4973
|
|
4974 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi
|
|
4975
|
|
4976 else
|
|
4977 echo "$ac_t""no" 1>&6
|
|
4978 fi
|
|
4979
|
|
4980
|
278
|
4981 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
|
|
4982 c_switch_site="$c_switch_site -threads" ;;
|
|
4983 esac
|
151
|
4984
|
|
4985 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
|
561
|
4986 echo "configure:4987: checking whether the -xildoff compiler flag is required" >&5
|
151
|
4987 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
|
|
4988 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
|
|
4989 then echo "$ac_t""no" 1>&6;
|
|
4990 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
|
|
4991 fi
|
|
4992 else echo "$ac_t""no" 1>&6
|
|
4993 fi
|
|
4994
|
442
|
4995 if test "$opsys" = "sol2"; then
|
|
4996 if test "$os_release" -ge 56; then
|
|
4997 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
|
561
|
4998 echo "configure:4999: checking for \"-z ignore\" linker flag" >&5
|
442
|
4999 case "`ld -h 2>&1`" in
|
|
5000 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
|
|
5001 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
|
|
5002 *) echo "$ac_t""no" 1>&6 ;;
|
|
5003 esac
|
|
5004 fi
|
163
|
5005 fi
|
155
|
5006
|
149
|
5007
|
|
5008 echo "checking "for specified window system"" 1>&6
|
561
|
5009 echo "configure:5010: checking "for specified window system"" >&5
|
462
|
5010
|
|
5011
|
|
5012 GNOME_CONFIG=no
|
|
5013 GTK_CONFIG=no
|
|
5014
|
|
5015 if test "$with_gnome" != "no"; then
|
|
5016 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
|
561
|
5017 echo "configure:5018: checking for GNOME configuration script" >&5
|
462
|
5018 for possible in gnome-config
|
|
5019 do
|
|
5020 possible_version=`${possible} --version 2> /dev/null`
|
|
5021 if test "x${possible_version}" != "x"; then
|
|
5022 GNOME_CONFIG="${possible}"
|
|
5023 with_gnome=yes
|
|
5024 with_gtk=yes
|
|
5025 break
|
|
5026 fi
|
|
5027 done
|
|
5028 echo "$ac_t""${GNOME_CONFIG}" 1>&6
|
|
5029 fi
|
|
5030
|
|
5031 if test "${GNOME_CONFIG}" != "no"; then
|
|
5032 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
|
|
5033 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
|
|
5034 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5035 Defining HAVE_GNOME
|
|
5036 EOF
|
|
5037 cat >> confdefs.h <<\EOF
|
|
5038 #define HAVE_GNOME 1
|
|
5039 EOF
|
|
5040 }
|
|
5041
|
|
5042 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
|
|
5043 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5044 fi
|
|
5045
|
|
5046 if test "$with_gtk" != "no";then
|
|
5047 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
|
561
|
5048 echo "configure:5049: checking for GTK configuration script" >&5
|
462
|
5049 for possible in gtk12-config gtk14-config gtk-config
|
|
5050 do
|
|
5051 possible_version=`${possible} --version 2> /dev/null`
|
|
5052 if test "x${possible_version}" != "x"; then
|
|
5053 GTK_CONFIG="${possible}"
|
527
|
5054 case "${possible_version}" in
|
|
5055 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
|
|
5056 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
|
|
5057 1.2.*)
|
|
5058 with_gtk=yes
|
|
5059 break
|
|
5060 ;;
|
|
5061 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
|
|
5062 esac
|
462
|
5063 fi
|
|
5064 done
|
|
5065 echo "$ac_t""${GTK_CONFIG}" 1>&6
|
|
5066 fi
|
|
5067
|
|
5068 if test "${GTK_CONFIG}" != "no"; then
|
|
5069 echo $ac_n "checking gtk version""... $ac_c" 1>&6
|
561
|
5070 echo "configure:5071: checking gtk version" >&5
|
462
|
5071 GTK_VERSION=`${GTK_CONFIG} --version`
|
|
5072 echo "$ac_t""${GTK_VERSION}" 1>&6
|
|
5073
|
|
5074 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
|
561
|
5075 echo "configure:5076: checking gtk libs" >&5
|
462
|
5076 GTK_LIBS=`${GTK_CONFIG} --libs`
|
|
5077 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
|
|
5078 echo "$ac_t""${GTK_LIBS}" 1>&6
|
|
5079
|
|
5080 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
|
561
|
5081 echo "configure:5082: checking gtk cflags" >&5
|
462
|
5082 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
|
|
5083 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
|
|
5084 echo "$ac_t""${GTK_CFLAGS}" 1>&6
|
|
5085
|
|
5086
|
|
5087 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
|
561
|
5088 echo "configure:5089: checking for main in -lgdk_imlib" >&5
|
462
|
5089 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
|
|
5090
|
|
5091 xe_check_libs=" -lgdk_imlib "
|
|
5092 cat > conftest.$ac_ext <<EOF
|
561
|
5093 #line 5094 "configure"
|
462
|
5094 #include "confdefs.h"
|
|
5095
|
|
5096 int main() {
|
|
5097 main()
|
|
5098 ; return 0; }
|
|
5099 EOF
|
561
|
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5101 rm -rf conftest*
|
|
5102 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5103 else
|
|
5104 echo "configure: failed program was:" >&5
|
|
5105 cat conftest.$ac_ext >&5
|
|
5106 rm -rf conftest*
|
|
5107 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5108 fi
|
|
5109 rm -f conftest*
|
|
5110 xe_check_libs=""
|
|
5111
|
|
5112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5113 echo "$ac_t""yes" 1>&6
|
|
5114 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
|
|
5115 else
|
|
5116 echo "$ac_t""no" 1>&6
|
|
5117 fi
|
|
5118
|
|
5119
|
|
5120
|
|
5121 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
|
561
|
5122 echo "configure:5123: checking for Imlib_init in -lImlib" >&5
|
462
|
5123 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
|
|
5124
|
|
5125 xe_check_libs=" -lImlib "
|
|
5126 cat > conftest.$ac_ext <<EOF
|
561
|
5127 #line 5128 "configure"
|
462
|
5128 #include "confdefs.h"
|
|
5129 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5130 /* We use char because int might match the return type of a gcc2
|
|
5131 builtin and then its argument prototype would still apply. */
|
|
5132 char Imlib_init();
|
|
5133
|
|
5134 int main() {
|
|
5135 Imlib_init()
|
|
5136 ; return 0; }
|
|
5137 EOF
|
561
|
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5139 rm -rf conftest*
|
|
5140 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5141 else
|
|
5142 echo "configure: failed program was:" >&5
|
|
5143 cat conftest.$ac_ext >&5
|
|
5144 rm -rf conftest*
|
|
5145 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5146 fi
|
|
5147 rm -f conftest*
|
|
5148 xe_check_libs=""
|
|
5149
|
|
5150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5151 echo "$ac_t""yes" 1>&6
|
|
5152 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
|
|
5153 else
|
|
5154 echo "$ac_t""no" 1>&6
|
|
5155 fi
|
|
5156
|
|
5157
|
|
5158 for ac_func in gdk_imlib_init
|
|
5159 do
|
|
5160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
5161 echo "configure:5162: checking for $ac_func" >&5
|
|
5162
|
|
5163 cat > conftest.$ac_ext <<EOF
|
|
5164 #line 5165 "configure"
|
462
|
5165 #include "confdefs.h"
|
|
5166 /* System header to define __stub macros and hopefully few prototypes,
|
|
5167 which can conflict with char $ac_func(); below. */
|
|
5168 #include <assert.h>
|
|
5169 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5170 /* We use char because int might match the return type of a gcc2
|
|
5171 builtin and then its argument prototype would still apply. */
|
|
5172 char $ac_func();
|
|
5173
|
|
5174 int main() {
|
|
5175
|
|
5176 /* The GNU C library defines this for functions which it implements
|
|
5177 to always fail with ENOSYS. Some functions are actually named
|
|
5178 something starting with __ and the normal name is an alias. */
|
|
5179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
5180 choke me
|
|
5181 #else
|
|
5182 $ac_func();
|
|
5183 #endif
|
|
5184
|
|
5185 ; return 0; }
|
|
5186 EOF
|
561
|
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5188 rm -rf conftest*
|
|
5189 eval "ac_cv_func_$ac_func=yes"
|
|
5190 else
|
|
5191 echo "configure: failed program was:" >&5
|
|
5192 cat conftest.$ac_ext >&5
|
|
5193 rm -rf conftest*
|
|
5194 eval "ac_cv_func_$ac_func=no"
|
|
5195 fi
|
|
5196 rm -f conftest*
|
|
5197
|
|
5198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
5199 echo "$ac_t""yes" 1>&6
|
|
5200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
5201 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5202 Defining $ac_tr_func
|
|
5203 EOF
|
|
5204 cat >> confdefs.h <<EOF
|
|
5205 #define $ac_tr_func 1
|
|
5206 EOF
|
|
5207 }
|
|
5208
|
|
5209 else
|
|
5210 echo "$ac_t""no" 1>&6
|
|
5211 fi
|
|
5212 done
|
|
5213
|
|
5214
|
|
5215 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5216 Defining HAVE_XPM
|
|
5217 EOF
|
|
5218 cat >> confdefs.h <<\EOF
|
|
5219 #define HAVE_XPM 1
|
|
5220 EOF
|
|
5221 }
|
|
5222
|
|
5223 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5224 Defining HAVE_GTK
|
|
5225 EOF
|
|
5226 cat >> confdefs.h <<\EOF
|
|
5227 #define HAVE_GTK 1
|
|
5228 EOF
|
|
5229 }
|
|
5230
|
|
5231
|
|
5232
|
|
5233 window_system=gtk
|
|
5234 with_gtk=yes
|
|
5235 with_x11=no
|
|
5236
|
|
5237 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
|
|
5238 test "${with_toolbars}" != no && with_toolbars=gtk
|
|
5239 test "${with_menubars}" != "no" && with_menubars=gtk
|
|
5240 test "${with_dialogs}" != "no" && with_dialogs=gtk
|
|
5241 test "${with_widgets}" != "no" && with_widgets=gtk
|
|
5242
|
|
5243 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
5244 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
|
|
5245 fi
|
|
5246 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
5247 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
|
|
5248 fi
|
|
5249 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
5250 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
|
|
5251 fi
|
|
5252 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
5253 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
|
|
5254 fi
|
|
5255
|
|
5256 OLD_CFLAGS="${CFLAGS}"
|
|
5257 OLD_LDFLAGS="${LDFLAGS}"
|
|
5258 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
|
|
5259 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
|
|
5260 for ac_hdr in glade/glade.h glade.h
|
|
5261 do
|
|
5262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
5263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
5264 echo "configure:5265: checking for $ac_hdr" >&5
|
|
5265
|
|
5266 cat > conftest.$ac_ext <<EOF
|
|
5267 #line 5268 "configure"
|
462
|
5268 #include "confdefs.h"
|
|
5269 #include <$ac_hdr>
|
|
5270 EOF
|
|
5271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
5272 { (eval echo configure:5273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
5273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
5274 if test -z "$ac_err"; then
|
|
5275 rm -rf conftest*
|
|
5276 eval "ac_cv_header_$ac_safe=yes"
|
|
5277 else
|
|
5278 echo "$ac_err" >&5
|
|
5279 echo "configure: failed program was:" >&5
|
|
5280 cat conftest.$ac_ext >&5
|
|
5281 rm -rf conftest*
|
|
5282 eval "ac_cv_header_$ac_safe=no"
|
|
5283 fi
|
|
5284 rm -f conftest*
|
|
5285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
5286 echo "$ac_t""yes" 1>&6
|
|
5287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
5288 { test "$extra_verbose" = "yes" && cat << EOF
|
|
5289 Defining $ac_tr_hdr
|
|
5290 EOF
|
|
5291 cat >> confdefs.h <<EOF
|
|
5292 #define $ac_tr_hdr 1
|
|
5293 EOF
|
|
5294 }
|
|
5295
|
|
5296 else
|
|
5297 echo "$ac_t""no" 1>&6
|
|
5298 fi
|
|
5299 done
|
|
5300
|
|
5301
|
|
5302 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
|
561
|
5303 echo "configure:5304: checking for main in -lxml" >&5
|
462
|
5304 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
|
|
5305
|
|
5306 xe_check_libs=" -lxml "
|
|
5307 cat > conftest.$ac_ext <<EOF
|
561
|
5308 #line 5309 "configure"
|
462
|
5309 #include "confdefs.h"
|
|
5310
|
|
5311 int main() {
|
|
5312 main()
|
|
5313 ; return 0; }
|
|
5314 EOF
|
561
|
5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5316 rm -rf conftest*
|
|
5317 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5318 else
|
|
5319 echo "configure: failed program was:" >&5
|
|
5320 cat conftest.$ac_ext >&5
|
|
5321 rm -rf conftest*
|
|
5322 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5323 fi
|
|
5324 rm -f conftest*
|
|
5325 xe_check_libs=""
|
|
5326
|
|
5327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5328 echo "$ac_t""yes" 1>&6
|
|
5329 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
|
|
5330 else
|
|
5331 echo "$ac_t""no" 1>&6
|
|
5332 fi
|
|
5333
|
|
5334
|
|
5335
|
|
5336 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
|
561
|
5337 echo "configure:5338: checking for main in -lglade" >&5
|
462
|
5338 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
|
|
5339
|
|
5340 xe_check_libs=" -lglade "
|
|
5341 cat > conftest.$ac_ext <<EOF
|
561
|
5342 #line 5343 "configure"
|
462
|
5343 #include "confdefs.h"
|
|
5344
|
|
5345 int main() {
|
|
5346 main()
|
|
5347 ; return 0; }
|
|
5348 EOF
|
561
|
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5350 rm -rf conftest*
|
|
5351 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5352 else
|
|
5353 echo "configure: failed program was:" >&5
|
|
5354 cat conftest.$ac_ext >&5
|
|
5355 rm -rf conftest*
|
|
5356 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5357 fi
|
|
5358 rm -f conftest*
|
|
5359 xe_check_libs=""
|
|
5360
|
|
5361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5362 echo "$ac_t""yes" 1>&6
|
|
5363 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
|
|
5364 else
|
|
5365 echo "$ac_t""no" 1>&6
|
|
5366 fi
|
|
5367
|
|
5368
|
|
5369
|
|
5370 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
|
561
|
5371 echo "configure:5372: checking for main in -lglade-gnome" >&5
|
462
|
5372 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
|
|
5373
|
|
5374 xe_check_libs=" -lglade-gnome "
|
|
5375 cat > conftest.$ac_ext <<EOF
|
561
|
5376 #line 5377 "configure"
|
462
|
5377 #include "confdefs.h"
|
|
5378
|
|
5379 int main() {
|
|
5380 main()
|
|
5381 ; return 0; }
|
|
5382 EOF
|
561
|
5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
5384 rm -rf conftest*
|
|
5385 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5386 else
|
|
5387 echo "configure: failed program was:" >&5
|
|
5388 cat conftest.$ac_ext >&5
|
|
5389 rm -rf conftest*
|
|
5390 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5391 fi
|
|
5392 rm -f conftest*
|
|
5393 xe_check_libs=""
|
|
5394
|
|
5395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
5396 echo "$ac_t""yes" 1>&6
|
|
5397 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
|
|
5398 else
|
|
5399 echo "$ac_t""no" 1>&6
|
|
5400 fi
|
|
5401
|
|
5402
|
|
5403 cat > conftest.$ac_ext <<EOF
|
561
|
5404 #line 5405 "configure"
|
462
|
5405 #include "confdefs.h"
|
|
5406 #include <glade/glade-xml.h>
|
|
5407 EOF
|
|
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
5409 egrep "char \*txtdomain;" >/dev/null 2>&1; then
|
|
5410 rm -rf conftest*
|
|
5411 echo "$ac_t""yes" 1>&6
|
|
5412 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5413 Defining LIBGLADE_XML_TXTDOMAIN = 1
|
|
5414 EOF
|
|
5415 cat >> confdefs.h <<\EOF
|
|
5416 #define LIBGLADE_XML_TXTDOMAIN 1
|
|
5417 EOF
|
|
5418 }
|
|
5419
|
|
5420 else
|
|
5421 rm -rf conftest*
|
|
5422 echo "$ac_t""no" 1>&6
|
|
5423 fi
|
|
5424 rm -f conftest*
|
|
5425
|
|
5426 CFLAGS="${OLD_CFLAGS}"
|
|
5427 LDFLAGS="${OLD_LDFLAGS}"
|
|
5428 fi
|
|
5429
|
149
|
5430
|
187
|
5431 if test "$with_x11" != "no"; then
|
|
5432 test "$x_includes $x_libraries" != "NONE NONE" && \
|
|
5433 window_system=x11 with_x11=yes
|
|
5434
|
272
|
5435
|
|
5436 if test "$x_includes $x_libraries" = "NONE NONE" \
|
|
5437 -a -n "$OPENWINHOME" \
|
|
5438 -a "$OPENWINHOME" != "/usr/openwin" \
|
|
5439 -a -d "$OPENWINHOME"; then
|
187
|
5440 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
|
|
5441 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
|
|
5442 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
|
272
|
5443 fi
|
|
5444
|
|
5445 if test "$x_includes" = "NONE"; then
|
|
5446 for dir in "/usr/X11" "/usr/X11R6"; do
|
|
5447 if test -d "$dir/include/X11"; then x_includes="$dir/include"; break; fi
|
|
5448 done
|
|
5449 fi
|
|
5450
|
|
5451 if test "$x_libraries" = "NONE"; then
|
|
5452 for dir in "/usr/X11/lib" "/usr/X11R6/lib" "/usr/lib/X11R6"; do
|
|
5453 if test -r "$dir/libX11.a"; then x_libraries="$dir"; break; fi
|
|
5454 done
|
149
|
5455 fi
|
187
|
5456
|
149
|
5457 # If we find X, set shell vars x_includes and x_libraries to the
|
|
5458 # paths, otherwise set no_x=yes.
|
|
5459 # Uses ac_ vars as temps to allow command line to override cache and checks.
|
|
5460 # --without-x overrides everything else, but does not touch the cache.
|
|
5461 echo $ac_n "checking for X""... $ac_c" 1>&6
|
561
|
5462 echo "configure:5463: checking for X" >&5
|
149
|
5463
|
|
5464 # Check whether --with-x or --without-x was given.
|
|
5465 if test "${with_x+set}" = set; then
|
|
5466 withval="$with_x"
|
|
5467 :
|
|
5468 fi
|
|
5469
|
|
5470 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
|
5471 if test "x$with_x" = xno; then
|
|
5472 # The user explicitly disabled X.
|
|
5473 have_x=disabled
|
|
5474 else
|
|
5475 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
|
5476 # Both variables are already set.
|
|
5477 have_x=yes
|
|
5478 else
|
|
5479
|
|
5480 # One or both of the vars are not set, and there is no cached value.
|
|
5481 ac_x_includes=NO ac_x_libraries=NO
|
0
|
5482 rm -fr conftestdir
|
|
5483 if mkdir conftestdir; then
|
|
5484 cd conftestdir
|
|
5485 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
|
5486 cat > Imakefile <<'EOF'
|
|
5487 acfindx:
|
|
5488 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
|
5489 EOF
|
|
5490 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
5491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
149
|
5492 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
0
|
5493 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
149
|
5494 for ac_extension in a so sl; do
|
|
5495 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
|
5496 test -f $ac_im_libdir/libX11.$ac_extension; then
|
|
5497 ac_im_usrlibdir=$ac_im_libdir; break
|
|
5498 fi
|
|
5499 done
|
|
5500 # Screen out bogus values from the imake configuration. They are
|
|
5501 # bogus both because they are the default anyway, and because
|
|
5502 # using them would break gcc on systems where it needs fixed includes.
|
0
|
5503 case "$ac_im_incroot" in
|
|
5504 /usr/include) ;;
|
149
|
5505 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
0
|
5506 esac
|
|
5507 case "$ac_im_usrlibdir" in
|
|
5508 /usr/lib | /lib) ;;
|
149
|
5509 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
0
|
5510 esac
|
|
5511 fi
|
|
5512 cd ..
|
|
5513 rm -fr conftestdir
|
|
5514 fi
|
|
5515
|
149
|
5516 if test "$ac_x_includes" = NO; then
|
|
5517 # Guess where to find include files, by looking for this one X11 .h file.
|
|
5518 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
|
5519
|
|
5520 # First, try using that file with no special directory specified.
|
|
5521 cat > conftest.$ac_ext <<EOF
|
561
|
5522 #line 5523 "configure"
|
0
|
5523 #include "confdefs.h"
|
|
5524 #include <$x_direct_test_include>
|
|
5525 EOF
|
149
|
5526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
5527 { (eval echo configure:5528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
5528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
5529 if test -z "$ac_err"; then
|
|
5530 rm -rf conftest*
|
149
|
5531 # We can compile using X headers with no special include directory.
|
|
5532 ac_x_includes=
|
|
5533 else
|
|
5534 echo "$ac_err" >&5
|
|
5535 echo "configure: failed program was:" >&5
|
|
5536 cat conftest.$ac_ext >&5
|
|
5537 rm -rf conftest*
|
|
5538 # Look for the header file in a standard set of common directories.
|
|
5539 # Check X11 before X11Rn because it is often a symlink to the current release.
|
0
|
5540 for ac_dir in \
|
149
|
5541 /usr/X11/include \
|
0
|
5542 /usr/X11R6/include \
|
|
5543 /usr/X11R5/include \
|
|
5544 /usr/X11R4/include \
|
|
5545 \
|
149
|
5546 /usr/include/X11 \
|
0
|
5547 /usr/include/X11R6 \
|
|
5548 /usr/include/X11R5 \
|
|
5549 /usr/include/X11R4 \
|
|
5550 \
|
149
|
5551 /usr/local/X11/include \
|
0
|
5552 /usr/local/X11R6/include \
|
|
5553 /usr/local/X11R5/include \
|
|
5554 /usr/local/X11R4/include \
|
|
5555 \
|
149
|
5556 /usr/local/include/X11 \
|
0
|
5557 /usr/local/include/X11R6 \
|
|
5558 /usr/local/include/X11R5 \
|
|
5559 /usr/local/include/X11R4 \
|
|
5560 \
|
|
5561 /usr/X386/include \
|
|
5562 /usr/x386/include \
|
|
5563 /usr/XFree86/include/X11 \
|
|
5564 \
|
|
5565 /usr/include \
|
|
5566 /usr/local/include \
|
|
5567 /usr/unsupported/include \
|
|
5568 /usr/athena/include \
|
|
5569 /usr/local/x11r5/include \
|
|
5570 /usr/lpp/Xamples/include \
|
|
5571 \
|
|
5572 /usr/openwin/include \
|
|
5573 /usr/openwin/share/include \
|
|
5574 ; \
|
|
5575 do
|
|
5576 if test -r "$ac_dir/$x_direct_test_include"; then
|
149
|
5577 ac_x_includes=$ac_dir
|
0
|
5578 break
|
|
5579 fi
|
|
5580 done
|
|
5581 fi
|
|
5582 rm -f conftest*
|
149
|
5583 fi # $ac_x_includes = NO
|
|
5584
|
|
5585 if test "$ac_x_libraries" = NO; then
|
|
5586 # Check for the libraries.
|
|
5587
|
|
5588 test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
|
5589 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
|
5590
|
|
5591 # See if we find them without any special options.
|
|
5592 # Don't add to $LIBS permanently.
|
|
5593 ac_save_LIBS="$LIBS"
|
|
5594 LIBS="-l$x_direct_test_library $LIBS"
|
|
5595 cat > conftest.$ac_ext <<EOF
|
561
|
5596 #line 5597 "configure"
|
149
|
5597 #include "confdefs.h"
|
|
5598
|
|
5599 int main() {
|
|
5600 ${x_direct_test_function}()
|
|
5601 ; return 0; }
|
|
5602 EOF
|
561
|
5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5604 rm -rf conftest*
|
|
5605 LIBS="$ac_save_LIBS"
|
|
5606 # We can link X programs with no special library path.
|
|
5607 ac_x_libraries=
|
|
5608 else
|
|
5609 echo "configure: failed program was:" >&5
|
|
5610 cat conftest.$ac_ext >&5
|
|
5611 rm -rf conftest*
|
|
5612 LIBS="$ac_save_LIBS"
|
|
5613 # First see if replacing the include by lib works.
|
|
5614 # Check X11 before X11Rn because it is often a symlink to the current release.
|
|
5615 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
|
5616 /usr/X11/lib \
|
0
|
5617 /usr/X11R6/lib \
|
|
5618 /usr/X11R5/lib \
|
|
5619 /usr/X11R4/lib \
|
|
5620 \
|
149
|
5621 /usr/lib/X11 \
|
0
|
5622 /usr/lib/X11R6 \
|
|
5623 /usr/lib/X11R5 \
|
|
5624 /usr/lib/X11R4 \
|
|
5625 \
|
149
|
5626 /usr/local/X11/lib \
|
0
|
5627 /usr/local/X11R6/lib \
|
|
5628 /usr/local/X11R5/lib \
|
|
5629 /usr/local/X11R4/lib \
|
|
5630 \
|
149
|
5631 /usr/local/lib/X11 \
|
0
|
5632 /usr/local/lib/X11R6 \
|
|
5633 /usr/local/lib/X11R5 \
|
|
5634 /usr/local/lib/X11R4 \
|
|
5635 \
|
|
5636 /usr/X386/lib \
|
|
5637 /usr/x386/lib \
|
|
5638 /usr/XFree86/lib/X11 \
|
|
5639 \
|
|
5640 /usr/lib \
|
|
5641 /usr/local/lib \
|
|
5642 /usr/unsupported/lib \
|
|
5643 /usr/athena/lib \
|
|
5644 /usr/local/x11r5/lib \
|
|
5645 /usr/lpp/Xamples/lib \
|
149
|
5646 /lib/usr/lib/X11 \
|
0
|
5647 \
|
|
5648 /usr/openwin/lib \
|
|
5649 /usr/openwin/share/lib \
|
|
5650 ; \
|
|
5651 do
|
|
5652 for ac_extension in a so sl; do
|
|
5653 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
149
|
5654 ac_x_libraries=$ac_dir
|
0
|
5655 break 2
|
|
5656 fi
|
|
5657 done
|
|
5658 done
|
|
5659 fi
|
149
|
5660 rm -f conftest*
|
|
5661 fi # $ac_x_libraries = NO
|
|
5662
|
|
5663 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
|
|
5664 # Didn't find X anywhere. Cache the known absence of X.
|
|
5665 ac_cv_have_x="have_x=no"
|
|
5666 else
|
|
5667 # Record where we found X for the cache.
|
|
5668 ac_cv_have_x="have_x=yes \
|
|
5669 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
|
5670 fi
|
|
5671 fi
|
|
5672 eval "$ac_cv_have_x"
|
|
5673 fi # $with_x != no
|
|
5674
|
|
5675 if test "$have_x" != yes; then
|
|
5676 echo "$ac_t""$have_x" 1>&6
|
|
5677 no_x=yes
|
|
5678 else
|
|
5679 # If each of the values was on the command line, it overrides each guess.
|
|
5680 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
|
5681 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
|
5682 # Update the cache value to reflect the command line values.
|
|
5683 ac_cv_have_x="have_x=yes \
|
|
5684 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
|
5685 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
|
|
5686 fi
|
|
5687
|
|
5688 if test "$no_x" = yes; then
|
|
5689 # Not all programs may use this symbol, but it does not hurt to define it.
|
|
5690 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
5691 Defining X_DISPLAY_MISSING
|
|
5692 EOF
|
|
5693 cat >> confdefs.h <<\EOF
|
|
5694 #define X_DISPLAY_MISSING 1
|
|
5695 EOF
|
|
5696 }
|
|
5697
|
|
5698 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
|
5699 else
|
|
5700 if test -n "$x_includes"; then
|
|
5701 X_CFLAGS="$X_CFLAGS -I$x_includes"
|
|
5702 fi
|
|
5703
|
|
5704 # It would also be nice to do this for all -L options, not just this one.
|
|
5705 if test -n "$x_libraries"; then
|
|
5706 X_LIBS="$X_LIBS -L$x_libraries"
|
|
5707 # For Solaris; some versions of Sun CC require a space after -R and
|
|
5708 # others require no space. Words are not sufficient . . . .
|
|
5709 case "`(uname -sr) 2>/dev/null`" in
|
|
5710 "SunOS 5"*)
|
|
5711 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
|
561
|
5712 echo "configure:5713: checking whether -R must be followed by a space" >&5
|
149
|
5713 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
|
|
5714 cat > conftest.$ac_ext <<EOF
|
561
|
5715 #line 5716 "configure"
|
|
5716 #include "confdefs.h"
|
|
5717
|
|
5718 int main() {
|
|
5719
|
|
5720 ; return 0; }
|
|
5721 EOF
|
|
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5723 rm -rf conftest*
|
|
5724 ac_R_nospace=yes
|
|
5725 else
|
|
5726 echo "configure: failed program was:" >&5
|
|
5727 cat conftest.$ac_ext >&5
|
|
5728 rm -rf conftest*
|
|
5729 ac_R_nospace=no
|
|
5730 fi
|
|
5731 rm -f conftest*
|
|
5732 if test $ac_R_nospace = yes; then
|
|
5733 echo "$ac_t""no" 1>&6
|
|
5734 X_LIBS="$X_LIBS -R$x_libraries"
|
|
5735 else
|
|
5736 LIBS="$ac_xsave_LIBS -R $x_libraries"
|
|
5737 cat > conftest.$ac_ext <<EOF
|
561
|
5738 #line 5739 "configure"
|
|
5739 #include "confdefs.h"
|
|
5740
|
|
5741 int main() {
|
|
5742
|
|
5743 ; return 0; }
|
|
5744 EOF
|
|
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5746 rm -rf conftest*
|
|
5747 ac_R_space=yes
|
|
5748 else
|
|
5749 echo "configure: failed program was:" >&5
|
|
5750 cat conftest.$ac_ext >&5
|
|
5751 rm -rf conftest*
|
|
5752 ac_R_space=no
|
|
5753 fi
|
|
5754 rm -f conftest*
|
|
5755 if test $ac_R_space = yes; then
|
|
5756 echo "$ac_t""yes" 1>&6
|
|
5757 X_LIBS="$X_LIBS -R $x_libraries"
|
|
5758 else
|
|
5759 echo "$ac_t""neither works" 1>&6
|
|
5760 fi
|
|
5761 fi
|
|
5762 LIBS="$ac_xsave_LIBS"
|
|
5763 esac
|
|
5764 fi
|
|
5765
|
|
5766 # Check for system-dependent libraries X programs must link with.
|
|
5767 # Do this before checking for the system-independent R6 libraries
|
|
5768 # (-lICE), since we may need -lsocket or whatever for X linking.
|
|
5769
|
|
5770 if test "$ISC" = yes; then
|
|
5771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
|
5772 else
|
|
5773 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
|
|
5774 # libraries were built with DECnet support. And karl@cs.umb.edu says
|
|
5775 # the Alpha needs dnet_stub (dnet does not exist).
|
151
|
5776 if test "$with_dnet" = "no" ; then
|
149
|
5777 ac_cv_lib_dnet_dnet_ntoa=no
|
|
5778 else
|
|
5779
|
|
5780 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
561
|
5781 echo "configure:5782: checking for dnet_ntoa in -ldnet" >&5
|
149
|
5782 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5783
|
|
5784 xe_check_libs=" -ldnet "
|
|
5785 cat > conftest.$ac_ext <<EOF
|
561
|
5786 #line 5787 "configure"
|
149
|
5787 #include "confdefs.h"
|
|
5788 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5789 /* We use char because int might match the return type of a gcc2
|
|
5790 builtin and then its argument prototype would still apply. */
|
|
5791 char dnet_ntoa();
|
|
5792
|
|
5793 int main() {
|
|
5794 dnet_ntoa()
|
|
5795 ; return 0; }
|
|
5796 EOF
|
561
|
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5798 rm -rf conftest*
|
|
5799 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5800 else
|
|
5801 echo "configure: failed program was:" >&5
|
|
5802 cat conftest.$ac_ext >&5
|
|
5803 rm -rf conftest*
|
|
5804 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5805 fi
|
|
5806 rm -f conftest*
|
|
5807 xe_check_libs=""
|
|
5808
|
151
|
5809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5810 echo "$ac_t""yes" 1>&6
|
|
5811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
|
5812 else
|
|
5813 echo "$ac_t""no" 1>&6
|
|
5814 fi
|
|
5815
|
|
5816 fi
|
|
5817
|
|
5818 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
|
5819
|
|
5820 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
561
|
5821 echo "configure:5822: checking for dnet_ntoa in -ldnet_stub" >&5
|
149
|
5822 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
|
5823
|
|
5824 xe_check_libs=" -ldnet_stub "
|
|
5825 cat > conftest.$ac_ext <<EOF
|
561
|
5826 #line 5827 "configure"
|
149
|
5827 #include "confdefs.h"
|
|
5828 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5829 /* We use char because int might match the return type of a gcc2
|
|
5830 builtin and then its argument prototype would still apply. */
|
|
5831 char dnet_ntoa();
|
|
5832
|
|
5833 int main() {
|
|
5834 dnet_ntoa()
|
|
5835 ; return 0; }
|
|
5836 EOF
|
561
|
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5838 rm -rf conftest*
|
|
5839 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5840 else
|
|
5841 echo "configure: failed program was:" >&5
|
|
5842 cat conftest.$ac_ext >&5
|
|
5843 rm -rf conftest*
|
|
5844 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5845 fi
|
|
5846 rm -f conftest*
|
|
5847 xe_check_libs=""
|
|
5848
|
151
|
5849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5850 echo "$ac_t""yes" 1>&6
|
|
5851 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
|
5852 else
|
|
5853 echo "$ac_t""no" 1>&6
|
|
5854 fi
|
|
5855
|
|
5856
|
|
5857 fi
|
|
5858
|
|
5859 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
|
|
5860 # to get the SysV transport functions.
|
|
5861 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
|
|
5862 # needs -lnsl.
|
|
5863 # The nsl library prevents programs from opening the X display
|
|
5864 # on Irix 5.2, according to dickey@clark.net.
|
|
5865 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
561
|
5866 echo "configure:5867: checking for gethostbyname" >&5
|
|
5867
|
|
5868 cat > conftest.$ac_ext <<EOF
|
|
5869 #line 5870 "configure"
|
149
|
5870 #include "confdefs.h"
|
|
5871 /* System header to define __stub macros and hopefully few prototypes,
|
|
5872 which can conflict with char gethostbyname(); below. */
|
|
5873 #include <assert.h>
|
|
5874 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5875 /* We use char because int might match the return type of a gcc2
|
|
5876 builtin and then its argument prototype would still apply. */
|
|
5877 char gethostbyname();
|
|
5878
|
|
5879 int main() {
|
|
5880
|
|
5881 /* The GNU C library defines this for functions which it implements
|
|
5882 to always fail with ENOSYS. Some functions are actually named
|
|
5883 something starting with __ and the normal name is an alias. */
|
|
5884 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
|
5885 choke me
|
|
5886 #else
|
|
5887 gethostbyname();
|
|
5888 #endif
|
|
5889
|
|
5890 ; return 0; }
|
|
5891 EOF
|
561
|
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5893 rm -rf conftest*
|
|
5894 eval "ac_cv_func_gethostbyname=yes"
|
|
5895 else
|
|
5896 echo "configure: failed program was:" >&5
|
|
5897 cat conftest.$ac_ext >&5
|
|
5898 rm -rf conftest*
|
|
5899 eval "ac_cv_func_gethostbyname=no"
|
|
5900 fi
|
|
5901 rm -f conftest*
|
|
5902
|
|
5903 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
|
|
5904 echo "$ac_t""yes" 1>&6
|
|
5905 :
|
|
5906 else
|
|
5907 echo "$ac_t""no" 1>&6
|
|
5908 fi
|
|
5909
|
|
5910 if test $ac_cv_func_gethostbyname = no; then
|
|
5911
|
|
5912 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
561
|
5913 echo "configure:5914: checking for gethostbyname in -lnsl" >&5
|
149
|
5914 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
5915
|
|
5916 xe_check_libs=" -lnsl "
|
|
5917 cat > conftest.$ac_ext <<EOF
|
561
|
5918 #line 5919 "configure"
|
149
|
5919 #include "confdefs.h"
|
|
5920 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5921 /* We use char because int might match the return type of a gcc2
|
|
5922 builtin and then its argument prototype would still apply. */
|
|
5923 char gethostbyname();
|
|
5924
|
|
5925 int main() {
|
|
5926 gethostbyname()
|
|
5927 ; return 0; }
|
|
5928 EOF
|
561
|
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5930 rm -rf conftest*
|
|
5931 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
5932 else
|
|
5933 echo "configure: failed program was:" >&5
|
|
5934 cat conftest.$ac_ext >&5
|
|
5935 rm -rf conftest*
|
|
5936 eval "ac_cv_lib_$ac_lib_var=no"
|
|
5937 fi
|
|
5938 rm -f conftest*
|
|
5939 xe_check_libs=""
|
|
5940
|
151
|
5941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
5942 echo "$ac_t""yes" 1>&6
|
|
5943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
|
5944 else
|
|
5945 echo "$ac_t""no" 1>&6
|
|
5946 fi
|
|
5947
|
|
5948
|
|
5949 fi
|
|
5950
|
|
5951 # lieder@skyler.mavd.honeywell.com says without -lsocket,
|
|
5952 # socket/setsockopt and other routines are undefined under SCO ODT
|
|
5953 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
|
5954 # on later versions), says simon@lia.di.epfl.ch: it contains
|
|
5955 # gethostby* variants that don't use the nameserver (or something).
|
|
5956 # -lsocket must be given before -lnsl if both are needed.
|
|
5957 # We assume that if connect needs -lnsl, so does gethostbyname.
|
|
5958 echo $ac_n "checking for connect""... $ac_c" 1>&6
|
561
|
5959 echo "configure:5960: checking for connect" >&5
|
|
5960
|
|
5961 cat > conftest.$ac_ext <<EOF
|
|
5962 #line 5963 "configure"
|
149
|
5963 #include "confdefs.h"
|
|
5964 /* System header to define __stub macros and hopefully few prototypes,
|
|
5965 which can conflict with char connect(); below. */
|
|
5966 #include <assert.h>
|
|
5967 /* Override any gcc2 internal prototype to avoid an error. */
|
|
5968 /* We use char because int might match the return type of a gcc2
|
|
5969 builtin and then its argument prototype would still apply. */
|
|
5970 char connect();
|
|
5971
|
|
5972 int main() {
|
|
5973
|
|
5974 /* The GNU C library defines this for functions which it implements
|
|
5975 to always fail with ENOSYS. Some functions are actually named
|
|
5976 something starting with __ and the normal name is an alias. */
|
|
5977 #if defined (__stub_connect) || defined (__stub___connect)
|
|
5978 choke me
|
|
5979 #else
|
|
5980 connect();
|
|
5981 #endif
|
|
5982
|
|
5983 ; return 0; }
|
|
5984 EOF
|
561
|
5985 if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
5986 rm -rf conftest*
|
|
5987 eval "ac_cv_func_connect=yes"
|
|
5988 else
|
|
5989 echo "configure: failed program was:" >&5
|
|
5990 cat conftest.$ac_ext >&5
|
|
5991 rm -rf conftest*
|
|
5992 eval "ac_cv_func_connect=no"
|
|
5993 fi
|
|
5994 rm -f conftest*
|
|
5995
|
|
5996 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
|
5997 echo "$ac_t""yes" 1>&6
|
|
5998 :
|
|
5999 else
|
|
6000 echo "$ac_t""no" 1>&6
|
|
6001 fi
|
|
6002
|
|
6003 if test $ac_cv_func_connect = no; then
|
|
6004
|
|
6005 xe_msg_checking="for connect in -lsocket"
|
|
6006 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6007 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
6008 echo "configure:6009: checking "$xe_msg_checking"" >&5
|
149
|
6009 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
|
6010
|
|
6011 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
|
|
6012 cat > conftest.$ac_ext <<EOF
|
561
|
6013 #line 6014 "configure"
|
149
|
6014 #include "confdefs.h"
|
|
6015 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6016 /* We use char because int might match the return type of a gcc2
|
|
6017 builtin and then its argument prototype would still apply. */
|
|
6018 char connect();
|
|
6019
|
|
6020 int main() {
|
|
6021 connect()
|
|
6022 ; return 0; }
|
|
6023 EOF
|
561
|
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6025 rm -rf conftest*
|
|
6026 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6027 else
|
|
6028 echo "configure: failed program was:" >&5
|
|
6029 cat conftest.$ac_ext >&5
|
|
6030 rm -rf conftest*
|
|
6031 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6032 fi
|
|
6033 rm -f conftest*
|
|
6034 xe_check_libs=""
|
|
6035
|
151
|
6036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6037 echo "$ac_t""yes" 1>&6
|
|
6038 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
|
6039 else
|
|
6040 echo "$ac_t""no" 1>&6
|
|
6041 fi
|
|
6042
|
|
6043
|
|
6044 fi
|
|
6045
|
|
6046 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
|
|
6047 echo $ac_n "checking for remove""... $ac_c" 1>&6
|
561
|
6048 echo "configure:6049: checking for remove" >&5
|
|
6049
|
|
6050 cat > conftest.$ac_ext <<EOF
|
|
6051 #line 6052 "configure"
|
149
|
6052 #include "confdefs.h"
|
|
6053 /* System header to define __stub macros and hopefully few prototypes,
|
|
6054 which can conflict with char remove(); below. */
|
|
6055 #include <assert.h>
|
|
6056 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6057 /* We use char because int might match the return type of a gcc2
|
|
6058 builtin and then its argument prototype would still apply. */
|
|
6059 char remove();
|
|
6060
|
|
6061 int main() {
|
|
6062
|
|
6063 /* The GNU C library defines this for functions which it implements
|
|
6064 to always fail with ENOSYS. Some functions are actually named
|
|
6065 something starting with __ and the normal name is an alias. */
|
|
6066 #if defined (__stub_remove) || defined (__stub___remove)
|
|
6067 choke me
|
|
6068 #else
|
|
6069 remove();
|
|
6070 #endif
|
|
6071
|
|
6072 ; return 0; }
|
|
6073 EOF
|
561
|
6074 if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6075 rm -rf conftest*
|
|
6076 eval "ac_cv_func_remove=yes"
|
|
6077 else
|
|
6078 echo "configure: failed program was:" >&5
|
|
6079 cat conftest.$ac_ext >&5
|
|
6080 rm -rf conftest*
|
|
6081 eval "ac_cv_func_remove=no"
|
|
6082 fi
|
|
6083 rm -f conftest*
|
|
6084
|
|
6085 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
|
6086 echo "$ac_t""yes" 1>&6
|
|
6087 :
|
|
6088 else
|
|
6089 echo "$ac_t""no" 1>&6
|
|
6090 fi
|
|
6091
|
|
6092 if test $ac_cv_func_remove = no; then
|
|
6093
|
|
6094 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
561
|
6095 echo "configure:6096: checking for remove in -lposix" >&5
|
149
|
6096 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
|
6097
|
|
6098 xe_check_libs=" -lposix "
|
|
6099 cat > conftest.$ac_ext <<EOF
|
561
|
6100 #line 6101 "configure"
|
149
|
6101 #include "confdefs.h"
|
|
6102 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6103 /* We use char because int might match the return type of a gcc2
|
|
6104 builtin and then its argument prototype would still apply. */
|
|
6105 char remove();
|
|
6106
|
|
6107 int main() {
|
|
6108 remove()
|
|
6109 ; return 0; }
|
|
6110 EOF
|
561
|
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6112 rm -rf conftest*
|
|
6113 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6114 else
|
|
6115 echo "configure: failed program was:" >&5
|
|
6116 cat conftest.$ac_ext >&5
|
|
6117 rm -rf conftest*
|
|
6118 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6119 fi
|
|
6120 rm -f conftest*
|
|
6121 xe_check_libs=""
|
|
6122
|
151
|
6123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6124 echo "$ac_t""yes" 1>&6
|
|
6125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
|
6126 else
|
|
6127 echo "$ac_t""no" 1>&6
|
|
6128 fi
|
|
6129
|
|
6130
|
|
6131 fi
|
|
6132
|
|
6133 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
|
6134 echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
561
|
6135 echo "configure:6136: checking for shmat" >&5
|
|
6136
|
|
6137 cat > conftest.$ac_ext <<EOF
|
|
6138 #line 6139 "configure"
|
149
|
6139 #include "confdefs.h"
|
|
6140 /* System header to define __stub macros and hopefully few prototypes,
|
|
6141 which can conflict with char shmat(); below. */
|
|
6142 #include <assert.h>
|
|
6143 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6144 /* We use char because int might match the return type of a gcc2
|
|
6145 builtin and then its argument prototype would still apply. */
|
|
6146 char shmat();
|
|
6147
|
|
6148 int main() {
|
|
6149
|
|
6150 /* The GNU C library defines this for functions which it implements
|
|
6151 to always fail with ENOSYS. Some functions are actually named
|
|
6152 something starting with __ and the normal name is an alias. */
|
|
6153 #if defined (__stub_shmat) || defined (__stub___shmat)
|
|
6154 choke me
|
|
6155 #else
|
|
6156 shmat();
|
|
6157 #endif
|
|
6158
|
|
6159 ; return 0; }
|
|
6160 EOF
|
561
|
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6162 rm -rf conftest*
|
|
6163 eval "ac_cv_func_shmat=yes"
|
|
6164 else
|
|
6165 echo "configure: failed program was:" >&5
|
|
6166 cat conftest.$ac_ext >&5
|
|
6167 rm -rf conftest*
|
|
6168 eval "ac_cv_func_shmat=no"
|
|
6169 fi
|
|
6170 rm -f conftest*
|
|
6171
|
|
6172 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
|
6173 echo "$ac_t""yes" 1>&6
|
|
6174 :
|
|
6175 else
|
|
6176 echo "$ac_t""no" 1>&6
|
|
6177 fi
|
|
6178
|
|
6179 if test $ac_cv_func_shmat = no; then
|
|
6180
|
|
6181 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
561
|
6182 echo "configure:6183: checking for shmat in -lipc" >&5
|
149
|
6183 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
|
6184
|
|
6185 xe_check_libs=" -lipc "
|
|
6186 cat > conftest.$ac_ext <<EOF
|
561
|
6187 #line 6188 "configure"
|
149
|
6188 #include "confdefs.h"
|
|
6189 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6190 /* We use char because int might match the return type of a gcc2
|
|
6191 builtin and then its argument prototype would still apply. */
|
|
6192 char shmat();
|
|
6193
|
|
6194 int main() {
|
|
6195 shmat()
|
|
6196 ; return 0; }
|
|
6197 EOF
|
561
|
6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6199 rm -rf conftest*
|
|
6200 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6201 else
|
|
6202 echo "configure: failed program was:" >&5
|
|
6203 cat conftest.$ac_ext >&5
|
|
6204 rm -rf conftest*
|
|
6205 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6206 fi
|
|
6207 rm -f conftest*
|
|
6208 xe_check_libs=""
|
|
6209
|
151
|
6210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6211 echo "$ac_t""yes" 1>&6
|
|
6212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
|
6213 else
|
|
6214 echo "$ac_t""no" 1>&6
|
|
6215 fi
|
|
6216
|
0
|
6217
|
|
6218 fi
|
149
|
6219 fi
|
|
6220
|
|
6221 # Check for libraries that X11R6 Xt/Xaw programs need.
|
|
6222 ac_save_LDFLAGS="$LDFLAGS"
|
|
6223 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
|
6224 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
|
6225 # check for ICE first), but we must link in the order -lSM -lICE or
|
|
6226 # we get undefined symbols. So assume we have SM if we have ICE.
|
|
6227 # These have to be linked with before -lX11, unlike the other
|
|
6228 # libraries we check for below, so use a different variable.
|
|
6229 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
|
6230
|
420
|
6231 xe_msg_checking="for IceConnectionNumber in -lICE"
|
|
6232 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
|
|
6233 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
6234 echo "configure:6235: checking "$xe_msg_checking"" >&5
|
149
|
6235 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
|
6236
|
420
|
6237 xe_check_libs=" -lICE $X_EXTRA_LIBS"
|
|
6238 cat > conftest.$ac_ext <<EOF
|
561
|
6239 #line 6240 "configure"
|
149
|
6240 #include "confdefs.h"
|
|
6241 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6242 /* We use char because int might match the return type of a gcc2
|
|
6243 builtin and then its argument prototype would still apply. */
|
|
6244 char IceConnectionNumber();
|
|
6245
|
|
6246 int main() {
|
|
6247 IceConnectionNumber()
|
|
6248 ; return 0; }
|
|
6249 EOF
|
561
|
6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6251 rm -rf conftest*
|
|
6252 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6253 else
|
|
6254 echo "configure: failed program was:" >&5
|
|
6255 cat conftest.$ac_ext >&5
|
|
6256 rm -rf conftest*
|
|
6257 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6258 fi
|
|
6259 rm -f conftest*
|
|
6260 xe_check_libs=""
|
|
6261
|
151
|
6262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6263 echo "$ac_t""yes" 1>&6
|
|
6264 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
|
6265 else
|
|
6266 echo "$ac_t""no" 1>&6
|
|
6267 fi
|
|
6268
|
|
6269
|
|
6270 LDFLAGS="$ac_save_LDFLAGS"
|
|
6271
|
|
6272 fi
|
|
6273 # Autoconf claims to find X library and include dirs for us.
|
|
6274 if test "$no_x" = "yes"
|
|
6275 then with_x11=no window_system=none HAVE_X_WINDOWS=no
|
|
6276 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
|
|
6277 fi
|
|
6278 fi
|
|
6279
|
0
|
6280
|
149
|
6281 if test "$with_x11" = "yes"; then
|
|
6282 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6283 Defining HAVE_X_WINDOWS
|
|
6284 EOF
|
|
6285 cat >> confdefs.h <<\EOF
|
|
6286 #define HAVE_X_WINDOWS 1
|
|
6287 EOF
|
|
6288 }
|
|
6289
|
151
|
6290 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi
|
175
|
6291 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
|
149
|
6292
|
278
|
6293 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
|
159
|
6294 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
|
149
|
6295 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6296 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6297 x_libraries="$lib_dir $x_libraries"
|
|
6298 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;;
|
149
|
6299 esac
|
151
|
6300 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6301 x_includes="$inc_dir $x_includes"
|
|
6302 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;;
|
149
|
6303 esac
|
|
6304 break; fi
|
|
6305 done
|
|
6306
|
|
6307 for rel in "X11R6" "X11R5" "X11R4"; do
|
|
6308 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include"
|
|
6309 if test -d "$lib_dir" -a -d "$inc_dir"; then
|
151
|
6310 case "$x_libraries" in *"$lib_dir"* ) ;; *)
|
|
6311 x_libraries="$x_libraries $lib_dir"
|
|
6312 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi
|
149
|
6313 esac
|
151
|
6314 case "$x_includes" in "$inc_dir"* ) ;; *)
|
|
6315 x_includes="$x_includes $inc_dir"
|
|
6316 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi
|
149
|
6317 esac
|
|
6318 break; fi
|
|
6319 done
|
|
6320
|
442
|
6321 case "$opsys" in
|
|
6322 decosf*) if test "$GCC" = yes -a -d /usr/shlib; then X_LIBS="$X_LIBS -L/usr/shlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L/usr/shlib\" to \$X_LIBS"; fi; fi ;;
|
|
6323 esac
|
373
|
6324
|
149
|
6325 ld_switch_x_site="$X_LIBS"
|
|
6326
|
151
|
6327
|
|
6328 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
6329 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
6330 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
6331
|
163
|
6332 runpath="" runpath_dirs=""
|
155
|
6333 if test -n "$LD_RUN_PATH"; then
|
151
|
6334 runpath="$LD_RUN_PATH"
|
155
|
6335 elif test "$GCC" = "yes"; then
|
163
|
6336 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
6337 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
6338 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
6339 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
6340 case "$arg" in P,* | -L* | -R* )
|
159
|
6341 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
6342 {
|
155
|
6343 xe_runpath_dir="$dir"
|
163
|
6344 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6345 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6346 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6347 eval "$xe_add_unique_runpath_dir"
|
|
6348 }
|
155
|
6349 done ;;
|
|
6350 esac
|
|
6351 done
|
163
|
6352 ld_switch_run="$ld_switch_run_save"
|
155
|
6353 rm -f conftest*
|
151
|
6354 else
|
155
|
6355 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
6356 case "$arg" in -L*) {
|
159
|
6357 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
6358 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
6359 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
6360 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
6361 eval "$xe_add_unique_runpath_dir"
|
|
6362 };; esac
|
151
|
6363 done
|
163
|
6364 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
6365 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
6366 eval "$xe_add_unique_runpath_dir";
|
|
6367 fi
|
155
|
6368 fi
|
151
|
6369 if test -n "$runpath"; then
|
|
6370 ld_switch_run="${dash_r}${runpath}"
|
272
|
6371
|
|
6372 if test "$GCC" = "yes"; then
|
|
6373 set x $ld_switch_run; shift; ld_switch_run=""
|
|
6374 while test -n "$1"; do
|
|
6375 case $1 in
|
380
|
6376 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
6377 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
6378 -Xlinker* ) ;;
|
|
6379 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
6380 esac
|
|
6381 shift
|
|
6382 done
|
|
6383 fi
|
151
|
6384 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
6385 fi
|
|
6386 fi
|
|
6387
|
|
6388
|
149
|
6389 if test "$extra_verbose" = "yes"; then
|
|
6390 echo; echo "X11 compilation variables:"
|
163
|
6391 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
|
149
|
6392 echo
|
|
6393 fi
|
|
6394
|
265
|
6395 bitmapdirs=
|
|
6396 if test "$x_includes" != NONE; then
|
|
6397 for i in $x_includes; do
|
|
6398 if test -d "$i/bitmaps"; then
|
|
6399 bitmapdirs="$i/bitmaps:$bitmapdirs"
|
|
6400 fi
|
|
6401 if test -d "$i/X11/bitmaps"; then
|
|
6402 bitmapdirs="$i/X11/bitmaps:$bitmapdirs"
|
|
6403 fi
|
|
6404 done
|
|
6405 bitmapdirs=`echo "$bitmapdirs" | sed s/.$//`
|
|
6406 fi
|
|
6407 test ! -z "$bitmapdirs" && { test "$extra_verbose" = "yes" && cat << EOF
|
|
6408 Defining BITMAPDIR = "$bitmapdirs"
|
|
6409 EOF
|
|
6410 cat >> confdefs.h <<EOF
|
|
6411 #define BITMAPDIR "$bitmapdirs"
|
|
6412 EOF
|
|
6413 }
|
|
6414
|
|
6415
|
163
|
6416 echo "checking for X defines extracted by xmkmf" 1>&6
|
561
|
6417 echo "configure:6418: checking for X defines extracted by xmkmf" >&5
|
163
|
6418 rm -fr conftestdir
|
|
6419 if mkdir conftestdir; then
|
|
6420 cd conftestdir
|
|
6421 cat > Imakefile <<'EOF'
|
|
6422 xetest:
|
|
6423 @echo ${PROTO_DEFINES} ${STD_DEFINES}
|
|
6424 EOF
|
|
6425 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
|
6426 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
6427 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
|
|
6428 fi
|
|
6429 cd ..
|
|
6430 rm -fr conftestdir
|
|
6431 for word in $xmkmf_defines; do
|
535
|
6432 case "$word" in
|
473
|
6433 -D__STDC__*) ;;
|
|
6434 -D* )
|
442
|
6435 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
|
|
6436 case "$word" in
|
|
6437 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
|
|
6438 * ) val=1 ;;
|
|
6439 esac
|
|
6440 if grep "^#define $sym " confdefs.h >/dev/null; then :; else
|
|
6441 if test "$val" = "1"
|
|
6442 then { test "$extra_verbose" = "yes" && cat << EOF
|
|
6443 Defining $sym
|
|
6444 EOF
|
|
6445 cat >> confdefs.h <<EOF
|
|
6446 #define $sym 1
|
|
6447 EOF
|
|
6448 }
|
|
6449
|
|
6450 else { test "$extra_verbose" = "yes" && cat << EOF
|
|
6451 Defining $sym = $val
|
|
6452 EOF
|
|
6453 cat >> confdefs.h <<EOF
|
|
6454 #define $sym $val
|
|
6455 EOF
|
|
6456 }
|
|
6457
|
|
6458 fi
|
|
6459 fi ;;
|
163
|
6460 esac
|
|
6461 done
|
|
6462 fi
|
|
6463
|
149
|
6464 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
|
|
6465 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
|
561
|
6466 echo "configure:6467: checking for X11/Intrinsic.h" >&5
|
|
6467
|
|
6468 cat > conftest.$ac_ext <<EOF
|
|
6469 #line 6470 "configure"
|
149
|
6470 #include "confdefs.h"
|
|
6471 #include <X11/Intrinsic.h>
|
|
6472 EOF
|
|
6473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
6474 { (eval echo configure:6475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6476 if test -z "$ac_err"; then
|
|
6477 rm -rf conftest*
|
|
6478 eval "ac_cv_header_$ac_safe=yes"
|
|
6479 else
|
|
6480 echo "$ac_err" >&5
|
|
6481 echo "configure: failed program was:" >&5
|
|
6482 cat conftest.$ac_ext >&5
|
|
6483 rm -rf conftest*
|
|
6484 eval "ac_cv_header_$ac_safe=no"
|
|
6485 fi
|
|
6486 rm -f conftest*
|
|
6487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6488 echo "$ac_t""yes" 1>&6
|
|
6489 :
|
|
6490 else
|
|
6491 echo "$ac_t""no" 1>&6
|
561
|
6492 { echo "configure: error: Unable to find X11 header files." 1>&2; exit 1; }
|
149
|
6493 fi
|
|
6494
|
|
6495
|
|
6496
|
|
6497 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
|
561
|
6498 echo "configure:6499: checking for XOpenDisplay in -lX11" >&5
|
149
|
6499 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6500
|
|
6501 xe_check_libs=" -lX11 "
|
|
6502 cat > conftest.$ac_ext <<EOF
|
561
|
6503 #line 6504 "configure"
|
149
|
6504 #include "confdefs.h"
|
|
6505 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6506 /* We use char because int might match the return type of a gcc2
|
|
6507 builtin and then its argument prototype would still apply. */
|
|
6508 char XOpenDisplay();
|
|
6509
|
|
6510 int main() {
|
|
6511 XOpenDisplay()
|
|
6512 ; return 0; }
|
|
6513 EOF
|
561
|
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6515 rm -rf conftest*
|
|
6516 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6517 else
|
|
6518 echo "configure: failed program was:" >&5
|
|
6519 cat conftest.$ac_ext >&5
|
|
6520 rm -rf conftest*
|
|
6521 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6522 fi
|
|
6523 rm -f conftest*
|
|
6524 xe_check_libs=""
|
|
6525
|
151
|
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6527 echo "$ac_t""yes" 1>&6
|
|
6528 have_lib_x11=yes
|
|
6529 else
|
|
6530 echo "$ac_t""no" 1>&6
|
|
6531 fi
|
|
6532
|
|
6533
|
|
6534 if test "$have_lib_x11" != "yes"; then
|
|
6535
|
|
6536 xe_msg_checking="for XGetFontProperty in -lX11"
|
|
6537 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
|
|
6538 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
6539 echo "configure:6540: checking "$xe_msg_checking"" >&5
|
149
|
6540 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
|
|
6541
|
|
6542 xe_check_libs=" -lX11 -b i486-linuxaout"
|
|
6543 cat > conftest.$ac_ext <<EOF
|
561
|
6544 #line 6545 "configure"
|
149
|
6545 #include "confdefs.h"
|
|
6546 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6547 /* We use char because int might match the return type of a gcc2
|
|
6548 builtin and then its argument prototype would still apply. */
|
|
6549 char XGetFontProperty();
|
|
6550
|
|
6551 int main() {
|
|
6552 XGetFontProperty()
|
|
6553 ; return 0; }
|
|
6554 EOF
|
561
|
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6556 rm -rf conftest*
|
|
6557 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6558 else
|
|
6559 echo "configure: failed program was:" >&5
|
|
6560 cat conftest.$ac_ext >&5
|
|
6561 rm -rf conftest*
|
|
6562 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6563 fi
|
|
6564 rm -f conftest*
|
|
6565 xe_check_libs=""
|
|
6566
|
151
|
6567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
6568 echo "$ac_t""yes" 1>&6
|
|
6569 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site"
|
|
6570 else
|
|
6571 echo "$ac_t""no" 1>&6
|
561
|
6572 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6573 fi
|
|
6574
|
|
6575
|
0
|
6576 fi
|
149
|
6577 libs_x="-lX11"
|
151
|
6578 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
|
149
|
6579
|
153
|
6580
|
|
6581 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
|
561
|
6582 echo "configure:6583: checking for XShapeSelectInput in -lXext" >&5
|
153
|
6583 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
|
|
6584
|
|
6585 xe_check_libs=" -lXext "
|
|
6586 cat > conftest.$ac_ext <<EOF
|
561
|
6587 #line 6588 "configure"
|
153
|
6588 #include "confdefs.h"
|
|
6589 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6590 /* We use char because int might match the return type of a gcc2
|
|
6591 builtin and then its argument prototype would still apply. */
|
|
6592 char XShapeSelectInput();
|
|
6593
|
|
6594 int main() {
|
|
6595 XShapeSelectInput()
|
|
6596 ; return 0; }
|
|
6597 EOF
|
561
|
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
153
|
6599 rm -rf conftest*
|
|
6600 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6601 else
|
|
6602 echo "configure: failed program was:" >&5
|
|
6603 cat conftest.$ac_ext >&5
|
|
6604 rm -rf conftest*
|
|
6605 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6606 fi
|
|
6607 rm -f conftest*
|
|
6608 xe_check_libs=""
|
|
6609
|
|
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6611 echo "$ac_t""yes" 1>&6
|
|
6612 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi
|
|
6613 else
|
|
6614 echo "$ac_t""no" 1>&6
|
|
6615 fi
|
|
6616
|
|
6617
|
|
6618
|
169
|
6619
|
149
|
6620 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
|
561
|
6621 echo "configure:6622: checking for XtOpenDisplay in -lXt" >&5
|
149
|
6622 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
|
|
6623
|
|
6624 xe_check_libs=" -lXt "
|
|
6625 cat > conftest.$ac_ext <<EOF
|
561
|
6626 #line 6627 "configure"
|
149
|
6627 #include "confdefs.h"
|
|
6628 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6629 /* We use char because int might match the return type of a gcc2
|
|
6630 builtin and then its argument prototype would still apply. */
|
|
6631 char XtOpenDisplay();
|
|
6632
|
|
6633 int main() {
|
|
6634 XtOpenDisplay()
|
|
6635 ; return 0; }
|
|
6636 EOF
|
561
|
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6638 rm -rf conftest*
|
|
6639 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6640 else
|
|
6641 echo "configure: failed program was:" >&5
|
|
6642 cat conftest.$ac_ext >&5
|
|
6643 rm -rf conftest*
|
|
6644 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6645 fi
|
|
6646 rm -f conftest*
|
|
6647 xe_check_libs=""
|
|
6648
|
151
|
6649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6650 echo "$ac_t""yes" 1>&6
|
|
6651 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi
|
149
|
6652 else
|
|
6653 echo "$ac_t""no" 1>&6
|
561
|
6654 { echo "configure: error: Unable to find X11 libraries." 1>&2; exit 1; }
|
149
|
6655 fi
|
|
6656
|
169
|
6657
|
149
|
6658
|
|
6659 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
|
561
|
6660 echo "configure:6661: checking the version of X11 being used" >&5
|
149
|
6661 cat > conftest.$ac_ext <<EOF
|
561
|
6662 #line 6663 "configure"
|
149
|
6663 #include "confdefs.h"
|
|
6664 #include <X11/Intrinsic.h>
|
272
|
6665 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
|
|
6666 EOF
|
561
|
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
6668 then
|
151
|
6669 ./conftest foobar; x11_release=$?
|
149
|
6670 else
|
373
|
6671 conftest_rc="$?"
|
149
|
6672 echo "configure: failed program was:" >&5
|
|
6673 cat conftest.$ac_ext >&5
|
|
6674 rm -fr conftest*
|
151
|
6675 x11_release=4
|
149
|
6676 fi
|
|
6677 rm -fr conftest*
|
151
|
6678 echo "$ac_t""R${x11_release}" 1>&6
|
149
|
6679 { test "$extra_verbose" = "yes" && cat << EOF
|
151
|
6680 Defining THIS_IS_X11R${x11_release}
|
149
|
6681 EOF
|
|
6682 cat >> confdefs.h <<EOF
|
151
|
6683 #define THIS_IS_X11R${x11_release} 1
|
149
|
6684 EOF
|
|
6685 }
|
|
6686
|
|
6687
|
442
|
6688 if test "${x11_release}" = "4"; then
|
|
6689 case "$with_widgets" in
|
|
6690 "" | "no") with_widgets=no ;;
|
|
6691 *) { echo "Error:" "Widget support requires X11R5 or greater" >&2; exit 1; } ;;
|
|
6692 esac
|
|
6693 fi
|
|
6694
|
|
6695 for ac_func in XConvertCase
|
|
6696 do
|
|
6697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
6698 echo "configure:6699: checking for $ac_func" >&5
|
|
6699
|
|
6700 cat > conftest.$ac_ext <<EOF
|
|
6701 #line 6702 "configure"
|
442
|
6702 #include "confdefs.h"
|
|
6703 /* System header to define __stub macros and hopefully few prototypes,
|
|
6704 which can conflict with char $ac_func(); below. */
|
|
6705 #include <assert.h>
|
|
6706 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6707 /* We use char because int might match the return type of a gcc2
|
|
6708 builtin and then its argument prototype would still apply. */
|
|
6709 char $ac_func();
|
|
6710
|
|
6711 int main() {
|
|
6712
|
|
6713 /* The GNU C library defines this for functions which it implements
|
|
6714 to always fail with ENOSYS. Some functions are actually named
|
|
6715 something starting with __ and the normal name is an alias. */
|
|
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6717 choke me
|
|
6718 #else
|
|
6719 $ac_func();
|
|
6720 #endif
|
|
6721
|
|
6722 ; return 0; }
|
|
6723 EOF
|
561
|
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
6725 rm -rf conftest*
|
|
6726 eval "ac_cv_func_$ac_func=yes"
|
|
6727 else
|
|
6728 echo "configure: failed program was:" >&5
|
|
6729 cat conftest.$ac_ext >&5
|
|
6730 rm -rf conftest*
|
|
6731 eval "ac_cv_func_$ac_func=no"
|
|
6732 fi
|
|
6733 rm -f conftest*
|
|
6734
|
|
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6736 echo "$ac_t""yes" 1>&6
|
|
6737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
6738 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6739 Defining $ac_tr_func
|
|
6740 EOF
|
|
6741 cat >> confdefs.h <<EOF
|
|
6742 #define $ac_tr_func 1
|
|
6743 EOF
|
|
6744 }
|
|
6745
|
|
6746 else
|
|
6747 echo "$ac_t""no" 1>&6
|
|
6748 fi
|
|
6749 done
|
|
6750
|
|
6751
|
149
|
6752 for ac_hdr in X11/Xlocale.h
|
|
6753 do
|
|
6754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
6755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
6756 echo "configure:6757: checking for $ac_hdr" >&5
|
|
6757
|
|
6758 cat > conftest.$ac_ext <<EOF
|
|
6759 #line 6760 "configure"
|
149
|
6760 #include "confdefs.h"
|
|
6761 #include <$ac_hdr>
|
|
6762 EOF
|
|
6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
6765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
6766 if test -z "$ac_err"; then
|
|
6767 rm -rf conftest*
|
|
6768 eval "ac_cv_header_$ac_safe=yes"
|
|
6769 else
|
|
6770 echo "$ac_err" >&5
|
|
6771 echo "configure: failed program was:" >&5
|
|
6772 cat conftest.$ac_ext >&5
|
|
6773 rm -rf conftest*
|
|
6774 eval "ac_cv_header_$ac_safe=no"
|
|
6775 fi
|
|
6776 rm -f conftest*
|
|
6777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
6778 echo "$ac_t""yes" 1>&6
|
|
6779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
6780 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6781 Defining $ac_tr_hdr
|
|
6782 EOF
|
|
6783 cat >> confdefs.h <<EOF
|
|
6784 #define $ac_tr_hdr 1
|
|
6785 EOF
|
|
6786 }
|
|
6787
|
|
6788 else
|
|
6789 echo "$ac_t""no" 1>&6
|
|
6790 fi
|
|
6791 done
|
|
6792
|
|
6793
|
444
|
6794 for ac_func in XRegisterIMInstantiateCallback
|
|
6795 do
|
|
6796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
6797 echo "configure:6798: checking for $ac_func" >&5
|
|
6798
|
|
6799 cat > conftest.$ac_ext <<EOF
|
|
6800 #line 6801 "configure"
|
444
|
6801 #include "confdefs.h"
|
|
6802 /* System header to define __stub macros and hopefully few prototypes,
|
|
6803 which can conflict with char $ac_func(); below. */
|
|
6804 #include <assert.h>
|
|
6805 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6806 /* We use char because int might match the return type of a gcc2
|
|
6807 builtin and then its argument prototype would still apply. */
|
|
6808 char $ac_func();
|
|
6809
|
|
6810 int main() {
|
|
6811
|
|
6812 /* The GNU C library defines this for functions which it implements
|
|
6813 to always fail with ENOSYS. Some functions are actually named
|
|
6814 something starting with __ and the normal name is an alias. */
|
|
6815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
6816 choke me
|
|
6817 #else
|
|
6818 $ac_func();
|
|
6819 #endif
|
|
6820
|
|
6821 ; return 0; }
|
|
6822 EOF
|
561
|
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
444
|
6824 rm -rf conftest*
|
|
6825 eval "ac_cv_func_$ac_func=yes"
|
|
6826 else
|
|
6827 echo "configure: failed program was:" >&5
|
|
6828 cat conftest.$ac_ext >&5
|
|
6829 rm -rf conftest*
|
|
6830 eval "ac_cv_func_$ac_func=no"
|
|
6831 fi
|
|
6832 rm -f conftest*
|
|
6833
|
|
6834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
6835 echo "$ac_t""yes" 1>&6
|
|
6836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
6837 { test "$extra_verbose" = "yes" && cat << EOF
|
|
6838 Defining $ac_tr_func
|
|
6839 EOF
|
|
6840 cat >> confdefs.h <<EOF
|
|
6841 #define $ac_tr_func 1
|
|
6842 EOF
|
|
6843 }
|
|
6844
|
|
6845 else
|
|
6846 echo "$ac_t""no" 1>&6
|
|
6847 fi
|
|
6848 done
|
|
6849
|
|
6850 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
|
561
|
6851 echo "configure:6852: checking for standard XRegisterIMInstantiateCallback prototype" >&5
|
444
|
6852 cat > conftest.$ac_ext <<EOF
|
561
|
6853 #line 6854 "configure"
|
444
|
6854 #include "confdefs.h"
|
|
6855
|
|
6856 #define NeedFunctionPrototypes 1
|
|
6857 #include <X11/Xlib.h>
|
|
6858 extern Bool XRegisterIMInstantiateCallback(
|
|
6859 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
|
|
6860
|
|
6861 int main() {
|
|
6862
|
|
6863 ; return 0; }
|
|
6864 EOF
|
561
|
6865 if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
444
|
6866 rm -rf conftest*
|
|
6867 echo "$ac_t""yes" 1>&6
|
|
6868 else
|
|
6869 echo "configure: failed program was:" >&5
|
|
6870 cat conftest.$ac_ext >&5
|
|
6871 rm -rf conftest*
|
|
6872 echo "$ac_t""no" 1>&6
|
|
6873 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6874 Defining XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
|
6875 EOF
|
|
6876 cat >> confdefs.h <<\EOF
|
|
6877 #define XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE 1
|
|
6878 EOF
|
|
6879 }
|
|
6880
|
|
6881 fi
|
|
6882 rm -f conftest*
|
149
|
6883
|
169
|
6884 test -z "$with_xmu" && {
|
|
6885 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
|
561
|
6886 echo "configure:6887: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
|
169
|
6887 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
|
149
|
6888
|
|
6889 xe_check_libs=" -lXmu "
|
|
6890 cat > conftest.$ac_ext <<EOF
|
561
|
6891 #line 6892 "configure"
|
149
|
6892 #include "confdefs.h"
|
|
6893 /* Override any gcc2 internal prototype to avoid an error. */
|
|
6894 /* We use char because int might match the return type of a gcc2
|
|
6895 builtin and then its argument prototype would still apply. */
|
169
|
6896 char XmuReadBitmapDataFromFile();
|
149
|
6897
|
|
6898 int main() {
|
169
|
6899 XmuReadBitmapDataFromFile()
|
149
|
6900 ; return 0; }
|
|
6901 EOF
|
561
|
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6903 rm -rf conftest*
|
|
6904 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6905 else
|
|
6906 echo "configure: failed program was:" >&5
|
|
6907 cat conftest.$ac_ext >&5
|
|
6908 rm -rf conftest*
|
|
6909 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6910 fi
|
|
6911 rm -f conftest*
|
|
6912 xe_check_libs=""
|
|
6913
|
151
|
6914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6915 echo "$ac_t""yes" 1>&6
|
|
6916 with_xmu=yes
|
|
6917 else
|
|
6918 echo "$ac_t""no" 1>&6
|
|
6919 with_xmu=no
|
|
6920 fi
|
|
6921
|
169
|
6922 }
|
185
|
6923 if test "$with_xmu" = "no"; then
|
|
6924 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then
|
151
|
6925 echo " xemacs will be linked with \"xmu.o\""
|
|
6926 fi
|
187
|
6927 else
|
185
|
6928 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
|
|
6929 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
6930 Defining HAVE_XMU
|
|
6931 EOF
|
|
6932 cat >> confdefs.h <<\EOF
|
|
6933 #define HAVE_XMU 1
|
|
6934 EOF
|
|
6935 }
|
|
6936
|
169
|
6937 fi
|
151
|
6938
|
|
6939
|
|
6940 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
|
561
|
6941 echo "configure:6942: checking for main in -lXbsd" >&5
|
151
|
6942 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
|
|
6943
|
|
6944 xe_check_libs=" -lXbsd "
|
|
6945 cat > conftest.$ac_ext <<EOF
|
561
|
6946 #line 6947 "configure"
|
151
|
6947 #include "confdefs.h"
|
149
|
6948
|
|
6949 int main() {
|
151
|
6950 main()
|
149
|
6951 ; return 0; }
|
|
6952 EOF
|
561
|
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
6954 rm -rf conftest*
|
|
6955 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
6956 else
|
|
6957 echo "configure: failed program was:" >&5
|
|
6958 cat conftest.$ac_ext >&5
|
|
6959 rm -rf conftest*
|
|
6960 eval "ac_cv_lib_$ac_lib_var=no"
|
|
6961 fi
|
|
6962 rm -f conftest*
|
|
6963 xe_check_libs=""
|
|
6964
|
151
|
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
6966 echo "$ac_t""yes" 1>&6
|
|
6967 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi
|
|
6968 else
|
|
6969 echo "$ac_t""no" 1>&6
|
|
6970 fi
|
|
6971
|
149
|
6972
|
|
6973
|
243
|
6974 if test "$unexec" = "unexaix.o" -a "$x11_release" = "6"; then
|
274
|
6975 if test "$GCC" = "yes"; then
|
|
6976 X_CFLAGS="-mthreads $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$X_CFLAGS"; fi
|
|
6977 libs_x="-mthreads $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-mthreads\" to \$libs_x"; fi
|
|
6978 else
|
|
6979 case "$CC" in
|
|
6980 "xlc" ) CC="xlc_r" ;;
|
|
6981 "xlC" ) CC="xlC_r" ;;
|
|
6982 "cc" ) CC="cc_r" ;;
|
|
6983 esac
|
|
6984 fi
|
243
|
6985 fi
|
|
6986
|
149
|
6987 fi
|
265
|
6988 if test "$with_msw" != "no"; then
|
|
6989 echo "checking for MS-Windows" 1>&6
|
561
|
6990 echo "configure:6991: checking for MS-Windows" >&5
|
265
|
6991
|
|
6992 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
|
561
|
6993 echo "configure:6994: checking for main in -lgdi32" >&5
|
265
|
6994 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
|
|
6995
|
|
6996 xe_check_libs=" -lgdi32 "
|
|
6997 cat > conftest.$ac_ext <<EOF
|
561
|
6998 #line 6999 "configure"
|
265
|
6999 #include "confdefs.h"
|
|
7000
|
|
7001 int main() {
|
|
7002 main()
|
|
7003 ; return 0; }
|
|
7004 EOF
|
561
|
7005 if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
7006 rm -rf conftest*
|
|
7007 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7008 else
|
|
7009 echo "configure: failed program was:" >&5
|
|
7010 cat conftest.$ac_ext >&5
|
|
7011 rm -rf conftest*
|
|
7012 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7013 fi
|
|
7014 rm -f conftest*
|
|
7015 xe_check_libs=""
|
|
7016
|
|
7017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7018 echo "$ac_t""yes" 1>&6
|
|
7019 with_msw=yes
|
|
7020 else
|
|
7021 echo "$ac_t""no" 1>&6
|
|
7022 fi
|
|
7023
|
|
7024
|
|
7025 if test "$with_msw" = "yes"; then
|
|
7026 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7027 Defining HAVE_MS_WINDOWS
|
|
7028 EOF
|
|
7029 cat >> confdefs.h <<\EOF
|
|
7030 #define HAVE_MS_WINDOWS 1
|
|
7031 EOF
|
|
7032 }
|
|
7033
|
448
|
7034
|
462
|
7035 if test "$with_netinstall" = "yes"; then
|
|
7036 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
|
|
7037 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
|
|
7038 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
|
7039 fi
|
458
|
7040
|
276
|
7041 install_pp="$blddir/lib-src/installexe.sh"
|
442
|
7042 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
|
375
|
7043 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
|
265
|
7044 if test "$window_system" != x11; then
|
|
7045 window_system=msw
|
|
7046 test "$with_scrollbars" != "no" && with_scrollbars=msw \
|
|
7047 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7048 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
7049 fi
|
|
7050 test "$with_menubars" != "no" && with_menubars=msw \
|
|
7051 && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7052 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
7053 fi
|
276
|
7054 test "$with_toolbars" != "no" && with_toolbars=msw \
|
|
7055 && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7056 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
7057 fi
|
288
|
7058 test "$with_dialogs" != "no" && with_dialogs=msw \
|
|
7059 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7060 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
7061 fi
|
422
|
7062 test "$with_widgets" != "no" && with_widgets=msw
|
265
|
7063 else
|
380
|
7064 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
265
|
7065 echo " xemacs will be linked with \"scrollbar-msw.o\""
|
|
7066 fi
|
|
7067 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7068 echo " xemacs will be linked with \"menubar-msw.o\""
|
|
7069 fi
|
276
|
7070 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7071 echo " xemacs will be linked with \"toolbar-msw.o\""
|
|
7072 fi
|
380
|
7073 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
|
288
|
7074 echo " xemacs will be linked with \"dialog-msw.o\""
|
|
7075 fi
|
265
|
7076 fi
|
278
|
7077 cat > conftest.$ac_ext <<EOF
|
561
|
7078 #line 7079 "configure"
|
278
|
7079 #include "confdefs.h"
|
|
7080 #include <fcntl.h>
|
|
7081 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
|
|
7082 EOF
|
561
|
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
278
|
7084 then
|
|
7085 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7086 Defining HAVE_MSG_SELECT
|
|
7087 EOF
|
|
7088 cat >> confdefs.h <<\EOF
|
|
7089 #define HAVE_MSG_SELECT 1
|
|
7090 EOF
|
|
7091 }
|
|
7092
|
|
7093 else
|
373
|
7094 conftest_rc="$?"
|
278
|
7095 echo "configure: failed program was:" >&5
|
|
7096 cat conftest.$ac_ext >&5
|
|
7097 fi
|
|
7098 rm -fr conftest*
|
265
|
7099 with_file_coding=yes
|
384
|
7100 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o" && if test "$extra_verbose" = "yes"; then
|
|
7101 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o gui-msw.o\""
|
265
|
7102 fi
|
|
7103 fi
|
|
7104 fi
|
|
7105
|
276
|
7106
|
|
7107
|
149
|
7108 test -z "$window_system" && window_system="none"
|
|
7109
|
272
|
7110 if test "$window_system" = "none"; then
|
388
|
7111 for feature in menubars scrollbars toolbars dialogs dragndrop xface
|
272
|
7112 do
|
|
7113 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7114 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
|
|
7115 fi
|
|
7116 eval "with_${feature}=no"
|
|
7117 done
|
|
7118 else
|
|
7119 test -z "$with_toolbars" && with_toolbars=yes
|
|
7120 fi
|
|
7121
|
|
7122 if test "$with_msw" != "yes"; then
|
|
7123 for feature in MARTIN_IS_CLUELESS_ABOUT_MSW_FEATURES
|
|
7124 do
|
|
7125 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7126 echo "configure: warning: --with-$feature ignored: Not valid without MS-Windows support" 1>&2
|
|
7127 fi
|
|
7128 eval "with_${feature}=no"
|
|
7129 done
|
|
7130 else
|
|
7131 :
|
|
7132 fi
|
|
7133
|
|
7134 if test "$with_x11" != "yes"; then
|
434
|
7135 for feature in tooltalk cde offix wmcommand xim xmu nas_sound
|
70
|
7136 do
|
149
|
7137 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
|
7138 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
|
70
|
7139 fi
|
149
|
7140 eval "with_${feature}=no"
|
70
|
7141 done
|
149
|
7142 fi
|
|
7143
|
442
|
7144 if test "$with_x11" = "yes"; then
|
|
7145 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
|
|
7146 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
|
561
|
7147 echo "configure:7148: checking for X11/extensions/shape.h" >&5
|
|
7148
|
|
7149 cat > conftest.$ac_ext <<EOF
|
|
7150 #line 7151 "configure"
|
442
|
7151 #include "confdefs.h"
|
|
7152 #include <X11/extensions/shape.h>
|
|
7153 EOF
|
|
7154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7155 { (eval echo configure:7156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7157 if test -z "$ac_err"; then
|
|
7158 rm -rf conftest*
|
|
7159 eval "ac_cv_header_$ac_safe=yes"
|
|
7160 else
|
|
7161 echo "$ac_err" >&5
|
|
7162 echo "configure: failed program was:" >&5
|
|
7163 cat conftest.$ac_ext >&5
|
|
7164 rm -rf conftest*
|
|
7165 eval "ac_cv_header_$ac_safe=no"
|
|
7166 fi
|
|
7167 rm -f conftest*
|
|
7168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7169 echo "$ac_t""yes" 1>&6
|
|
7170
|
|
7171 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7172 Defining HAVE_BALLOON_HELP
|
|
7173 EOF
|
|
7174 cat >> confdefs.h <<\EOF
|
|
7175 #define HAVE_BALLOON_HELP 1
|
|
7176 EOF
|
|
7177 }
|
|
7178
|
|
7179 extra_objs="$extra_objs balloon_help.o balloon-x.o" && if test "$extra_verbose" = "yes"; then
|
|
7180 echo " xemacs will be linked with \"balloon_help.o balloon-x.o\""
|
|
7181 fi
|
|
7182 else
|
|
7183 echo "$ac_t""no" 1>&6
|
|
7184 fi
|
|
7185
|
|
7186 fi
|
|
7187
|
0
|
7188 bitmapdir=
|
|
7189
|
149
|
7190 case "$window_system" in
|
70
|
7191 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
|
272
|
7192 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
|
462
|
7193 gtk )
|
|
7194 HAVE_X_WINDOWS=no
|
|
7195 test "$with_gnome" = "yes" && echo " Using GNOME."
|
|
7196 test "$with_gnome" = "no" && echo " Using GTK."
|
|
7197 ;;
|
70
|
7198 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
|
0
|
7199 esac
|
|
7200
|
149
|
7201 case "$x_libraries" in *X11R4* )
|
|
7202 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
|
|
7203 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
|
|
7204 esac
|
|
7205
|
414
|
7206 echo "checking for WM_COMMAND option" 1>&6
|
561
|
7207 echo "configure:7208: checking for WM_COMMAND option" >&5;
|
414
|
7208 if test "$with_wmcommand" != "no"; then
|
|
7209 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7210 Defining HAVE_WMCOMMAND
|
|
7211 EOF
|
|
7212 cat >> confdefs.h <<\EOF
|
|
7213 #define HAVE_WMCOMMAND 1
|
177
|
7214 EOF
|
|
7215 }
|
|
7216
|
|
7217 fi
|
|
7218
|
149
|
7219 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
|
|
7220 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
|
|
7221 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
|
561
|
7222 echo "configure:7223: checking for X11/Xauth.h" >&5
|
|
7223
|
|
7224 cat > conftest.$ac_ext <<EOF
|
|
7225 #line 7226 "configure"
|
149
|
7226 #include "confdefs.h"
|
|
7227 #include <X11/Xauth.h>
|
|
7228 EOF
|
|
7229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7230 { (eval echo configure:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7232 if test -z "$ac_err"; then
|
|
7233 rm -rf conftest*
|
|
7234 eval "ac_cv_header_$ac_safe=yes"
|
|
7235 else
|
|
7236 echo "$ac_err" >&5
|
|
7237 echo "configure: failed program was:" >&5
|
|
7238 cat conftest.$ac_ext >&5
|
|
7239 rm -rf conftest*
|
|
7240 eval "ac_cv_header_$ac_safe=no"
|
|
7241 fi
|
|
7242 rm -f conftest*
|
|
7243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7244 echo "$ac_t""yes" 1>&6
|
|
7245 :
|
|
7246 else
|
|
7247 echo "$ac_t""no" 1>&6
|
|
7248 with_xauth=no
|
|
7249 fi
|
|
7250 }
|
|
7251 test -z "$with_xauth" && {
|
|
7252 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
|
561
|
7253 echo "configure:7254: checking for XauGetAuthByAddr in -lXau" >&5
|
149
|
7254 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
|
|
7255
|
|
7256 xe_check_libs=" -lXau "
|
|
7257 cat > conftest.$ac_ext <<EOF
|
561
|
7258 #line 7259 "configure"
|
149
|
7259 #include "confdefs.h"
|
|
7260 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7261 /* We use char because int might match the return type of a gcc2
|
|
7262 builtin and then its argument prototype would still apply. */
|
|
7263 char XauGetAuthByAddr();
|
|
7264
|
|
7265 int main() {
|
|
7266 XauGetAuthByAddr()
|
|
7267 ; return 0; }
|
|
7268 EOF
|
561
|
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7270 rm -rf conftest*
|
|
7271 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7272 else
|
|
7273 echo "configure: failed program was:" >&5
|
|
7274 cat conftest.$ac_ext >&5
|
|
7275 rm -rf conftest*
|
|
7276 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7277 fi
|
|
7278 rm -f conftest*
|
|
7279 xe_check_libs=""
|
|
7280
|
151
|
7281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7282 echo "$ac_t""yes" 1>&6
|
|
7283 :
|
|
7284 else
|
|
7285 echo "$ac_t""no" 1>&6
|
|
7286 with_xauth=no
|
|
7287 fi
|
|
7288
|
|
7289 }
|
|
7290 test -z "$with_xauth" && with_xauth=yes
|
|
7291 if test "$with_xauth" = "yes"; then
|
|
7292 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7293 Defining HAVE_XAUTH
|
|
7294 EOF
|
|
7295 cat >> confdefs.h <<\EOF
|
|
7296 #define HAVE_XAUTH 1
|
|
7297 EOF
|
|
7298 }
|
|
7299
|
159
|
7300
|
|
7301 T=""
|
462
|
7302 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
159
|
7303 libs_xauth="$T"
|
|
7304
|
|
7305 fi
|
|
7306
|
149
|
7307
|
274
|
7308
|
149
|
7309
|
|
7310 if test "$with_tooltalk" != "no" ; then
|
|
7311 for dir in "" "Tt/" "desktop/" ; do
|
|
7312 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
|
|
7313 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
|
561
|
7314 echo "configure:7315: checking for ${dir}tt_c.h" >&5
|
|
7315
|
|
7316 cat > conftest.$ac_ext <<EOF
|
|
7317 #line 7318 "configure"
|
149
|
7318 #include "confdefs.h"
|
|
7319 #include <${dir}tt_c.h>
|
|
7320 EOF
|
|
7321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7322 { (eval echo configure:7323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7324 if test -z "$ac_err"; then
|
|
7325 rm -rf conftest*
|
|
7326 eval "ac_cv_header_$ac_safe=yes"
|
|
7327 else
|
|
7328 echo "$ac_err" >&5
|
|
7329 echo "configure: failed program was:" >&5
|
|
7330 cat conftest.$ac_ext >&5
|
|
7331 rm -rf conftest*
|
|
7332 eval "ac_cv_header_$ac_safe=no"
|
|
7333 fi
|
|
7334 rm -f conftest*
|
|
7335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7336 echo "$ac_t""yes" 1>&6
|
442
|
7337 tt_c_h_file="${dir}tt_c.h"; break
|
149
|
7338 else
|
|
7339 echo "$ac_t""no" 1>&6
|
|
7340 fi
|
|
7341
|
|
7342 done
|
442
|
7343 if test -z "$tt_c_h_file"; then
|
284
|
7344 if test "$with_tooltalk" = "yes"; then
|
|
7345 (echo "$progname: Usage error:"
|
|
7346 echo " " "Unable to find required tooltalk header files."
|
|
7347 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
7348 fi
|
|
7349 with_tooltalk=no
|
|
7350 fi
|
149
|
7351 fi
|
|
7352 if test "$with_tooltalk" != "no" ; then
|
|
7353 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
|
|
7354
|
|
7355 xe_msg_checking="for tt_message_create in -ltt"
|
|
7356 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
|
|
7357 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
7358 echo "configure:7359: checking "$xe_msg_checking"" >&5
|
149
|
7359 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
|
|
7360
|
|
7361 xe_check_libs=" -ltt $extra_libs"
|
|
7362 cat > conftest.$ac_ext <<EOF
|
561
|
7363 #line 7364 "configure"
|
149
|
7364 #include "confdefs.h"
|
|
7365 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7366 /* We use char because int might match the return type of a gcc2
|
|
7367 builtin and then its argument prototype would still apply. */
|
|
7368 char tt_message_create();
|
|
7369
|
|
7370 int main() {
|
|
7371 tt_message_create()
|
|
7372 ; return 0; }
|
|
7373 EOF
|
561
|
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7375 rm -rf conftest*
|
|
7376 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7377 else
|
|
7378 echo "configure: failed program was:" >&5
|
|
7379 cat conftest.$ac_ext >&5
|
|
7380 rm -rf conftest*
|
|
7381 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7382 fi
|
|
7383 rm -f conftest*
|
|
7384 xe_check_libs=""
|
|
7385
|
151
|
7386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7387 echo "$ac_t""yes" 1>&6
|
284
|
7388 tt_libs="-ltt $extra_libs"; break
|
149
|
7389 else
|
|
7390 echo "$ac_t""no" 1>&6
|
|
7391 :
|
|
7392 fi
|
|
7393
|
|
7394
|
|
7395 done
|
284
|
7396 if test -z "$tt_libs"; then
|
|
7397 if test "$with_tooltalk" = "yes"; then
|
|
7398 (echo "$progname: Usage error:"
|
|
7399 echo " " "Unable to find required tooltalk libraries."
|
|
7400 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
|
|
7401 fi
|
|
7402 with_tooltalk=no
|
|
7403 fi
|
|
7404 fi
|
|
7405 test -z "$with_tooltalk" && with_tooltalk=yes
|
149
|
7406 if test "$with_tooltalk" = "yes"; then
|
|
7407 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7408 Defining TOOLTALK
|
|
7409 EOF
|
|
7410 cat >> confdefs.h <<\EOF
|
|
7411 #define TOOLTALK 1
|
|
7412 EOF
|
|
7413 }
|
|
7414
|
|
7415 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
7416 Defining TT_C_H_FILE = "$tt_c_h_file"
|
|
7417 EOF
|
|
7418 cat >> confdefs.h <<EOF
|
|
7419 #define TT_C_H_FILE "$tt_c_h_file"
|
149
|
7420 EOF
|
|
7421 }
|
|
7422
|
151
|
7423 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
|
|
7424 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then
|
|
7425 echo " xemacs will be linked with \"tooltalk.o\""
|
|
7426 fi
|
149
|
7427 fi
|
|
7428
|
|
7429 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
|
|
7430 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
|
561
|
7431 echo "configure:7432: checking for Dt/Dt.h" >&5
|
|
7432
|
|
7433 cat > conftest.$ac_ext <<EOF
|
|
7434 #line 7435 "configure"
|
149
|
7435 #include "confdefs.h"
|
|
7436 #include <Dt/Dt.h>
|
|
7437 EOF
|
|
7438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7439 { (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
7441 if test -z "$ac_err"; then
|
|
7442 rm -rf conftest*
|
|
7443 eval "ac_cv_header_$ac_safe=yes"
|
|
7444 else
|
|
7445 echo "$ac_err" >&5
|
|
7446 echo "configure: failed program was:" >&5
|
|
7447 cat conftest.$ac_ext >&5
|
|
7448 rm -rf conftest*
|
|
7449 eval "ac_cv_header_$ac_safe=no"
|
|
7450 fi
|
|
7451 rm -f conftest*
|
|
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7453 echo "$ac_t""yes" 1>&6
|
|
7454 :
|
|
7455 else
|
|
7456 echo "$ac_t""no" 1>&6
|
|
7457 with_cde=no
|
136
|
7458 fi
|
|
7459 }
|
149
|
7460 test -z "$with_cde" && {
|
|
7461 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
|
561
|
7462 echo "configure:7463: checking for DtDndDragStart in -lDtSvc" >&5
|
149
|
7463 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
|
|
7464
|
|
7465 xe_check_libs=" -lDtSvc "
|
|
7466 cat > conftest.$ac_ext <<EOF
|
561
|
7467 #line 7468 "configure"
|
149
|
7468 #include "confdefs.h"
|
|
7469 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7470 /* We use char because int might match the return type of a gcc2
|
|
7471 builtin and then its argument prototype would still apply. */
|
|
7472 char DtDndDragStart();
|
|
7473
|
|
7474 int main() {
|
|
7475 DtDndDragStart()
|
|
7476 ; return 0; }
|
|
7477 EOF
|
561
|
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
7479 rm -rf conftest*
|
|
7480 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7481 else
|
|
7482 echo "configure: failed program was:" >&5
|
|
7483 cat conftest.$ac_ext >&5
|
|
7484 rm -rf conftest*
|
|
7485 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7486 fi
|
|
7487 rm -f conftest*
|
|
7488 xe_check_libs=""
|
|
7489
|
151
|
7490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
7491 echo "$ac_t""yes" 1>&6
|
|
7492 :
|
|
7493 else
|
|
7494 echo "$ac_t""no" 1>&6
|
|
7495 with_cde=no
|
|
7496 fi
|
|
7497
|
|
7498 }
|
|
7499 test -z "$with_cde" && with_cde=yes
|
282
|
7500 if test "$with_dragndrop" = no; then
|
|
7501 echo "configure: warning: No CDE without generic Drag'n'Drop support" 1>&2
|
|
7502 with_cde=no
|
|
7503 fi
|
149
|
7504 if test "$with_cde" = "yes" ; then
|
|
7505 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7506 Defining HAVE_CDE
|
|
7507 EOF
|
|
7508 cat >> confdefs.h <<\EOF
|
|
7509 #define HAVE_CDE 1
|
|
7510 EOF
|
|
7511 }
|
|
7512
|
151
|
7513 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi
|
282
|
7514 dragndrop_proto="$dragndrop_proto CDE" && if test "$extra_verbose" = "yes"; then echo " Appending \"CDE\" to \$dragndrop_proto"; fi
|
149
|
7515 with_tooltalk=yes # CDE requires Tooltalk
|
167
|
7516 need_motif=yes # CDE requires Motif
|
149
|
7517 fi
|
|
7518
|
288
|
7519 test "$window_system" != "x11" && with_offix=no
|
|
7520 if test "$with_xmu" != yes -a "$with_x11" = yes; then
|
|
7521 echo "configure: warning: No OffiX without real Xmu support" 1>&2
|
|
7522 with_offix=no
|
|
7523 fi
|
|
7524 if test "$with_dragndrop" = no; then
|
|
7525 echo "configure: warning: No OffiX without generic Drag'n'Drop support" 1>&2
|
|
7526 with_offix=no
|
|
7527 fi
|
|
7528 if test "$with_cde" = yes; then
|
|
7529 echo "configure: warning: CDE already found, disabling OffiX support" 1>&2
|
|
7530 with_offix=no
|
|
7531 fi
|
300
|
7532 test -z "$with_offix" && with_offix=no
|
288
|
7533 if test "$with_offix" = "yes"; then
|
|
7534 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7535 Defining HAVE_OFFIX_DND
|
|
7536 EOF
|
|
7537 cat >> confdefs.h <<\EOF
|
|
7538 #define HAVE_OFFIX_DND 1
|
|
7539 EOF
|
|
7540 }
|
|
7541
|
|
7542 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
|
|
7543 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
|
|
7544 fi
|
462
|
7545 if test "$with_gtk" = "yes"; then
|
|
7546 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
|
|
7547 fi
|
288
|
7548
|
282
|
7549 if test "$with_dragndrop" != "no" ; then
|
446
|
7550 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
|
561
|
7551 echo "configure:7552: checking if drag and drop API is needed" >&5
|
282
|
7552 if test -n "$dragndrop_proto" ; then
|
|
7553 with_dragndrop=yes
|
|
7554 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
|
|
7555 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7556 Defining HAVE_DRAGNDROP
|
|
7557 EOF
|
|
7558 cat >> confdefs.h <<\EOF
|
|
7559 #define HAVE_DRAGNDROP 1
|
|
7560 EOF
|
|
7561 }
|
|
7562
|
|
7563 extra_objs="$extra_objs dragdrop.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"dragdrop.o\" to \$extra_objs"; fi
|
|
7564 else
|
|
7565 with_dragndrop=no
|
|
7566 echo "$ac_t""no" 1>&6
|
|
7567 fi
|
|
7568 fi
|
|
7569
|
259
|
7570 echo "checking for LDAP" 1>&6
|
561
|
7571 echo "configure:7572: checking for LDAP" >&5
|
259
|
7572 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
|
|
7573 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
|
561
|
7574 echo "configure:7575: checking for ldap.h" >&5
|
|
7575
|
|
7576 cat > conftest.$ac_ext <<EOF
|
|
7577 #line 7578 "configure"
|
259
|
7578 #include "confdefs.h"
|
|
7579 #include <ldap.h>
|
|
7580 EOF
|
|
7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
7584 if test -z "$ac_err"; then
|
|
7585 rm -rf conftest*
|
|
7586 eval "ac_cv_header_$ac_safe=yes"
|
|
7587 else
|
|
7588 echo "$ac_err" >&5
|
|
7589 echo "configure: failed program was:" >&5
|
|
7590 cat conftest.$ac_ext >&5
|
|
7591 rm -rf conftest*
|
|
7592 eval "ac_cv_header_$ac_safe=no"
|
|
7593 fi
|
|
7594 rm -f conftest*
|
|
7595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7596 echo "$ac_t""yes" 1>&6
|
|
7597 :
|
|
7598 else
|
|
7599 echo "$ac_t""no" 1>&6
|
|
7600 with_ldap=no
|
|
7601 fi
|
|
7602 }
|
|
7603 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
|
|
7604 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
|
561
|
7605 echo "configure:7606: checking for lber.h" >&5
|
|
7606
|
|
7607 cat > conftest.$ac_ext <<EOF
|
|
7608 #line 7609 "configure"
|
259
|
7609 #include "confdefs.h"
|
|
7610 #include <lber.h>
|
|
7611 EOF
|
|
7612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7613 { (eval echo configure:7614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
7614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
259
|
7615 if test -z "$ac_err"; then
|
|
7616 rm -rf conftest*
|
|
7617 eval "ac_cv_header_$ac_safe=yes"
|
|
7618 else
|
|
7619 echo "$ac_err" >&5
|
|
7620 echo "configure: failed program was:" >&5
|
|
7621 cat conftest.$ac_ext >&5
|
|
7622 rm -rf conftest*
|
|
7623 eval "ac_cv_header_$ac_safe=no"
|
|
7624 fi
|
|
7625 rm -f conftest*
|
|
7626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7627 echo "$ac_t""yes" 1>&6
|
|
7628 :
|
|
7629 else
|
|
7630 echo "$ac_t""no" 1>&6
|
|
7631 with_ldap=no
|
|
7632 fi
|
|
7633 }
|
272
|
7634 if test "$with_ldap" != "no"; then
|
418
|
7635
|
|
7636 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
|
561
|
7637 echo "configure:7638: checking for ldap_search in -lldap" >&5
|
418
|
7638 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
|
|
7639
|
|
7640 xe_check_libs=" -lldap "
|
|
7641 cat > conftest.$ac_ext <<EOF
|
561
|
7642 #line 7643 "configure"
|
418
|
7643 #include "confdefs.h"
|
|
7644 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7645 /* We use char because int might match the return type of a gcc2
|
|
7646 builtin and then its argument prototype would still apply. */
|
|
7647 char ldap_search();
|
|
7648
|
|
7649 int main() {
|
|
7650 ldap_search()
|
|
7651 ; return 0; }
|
|
7652 EOF
|
561
|
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
7654 rm -rf conftest*
|
|
7655 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7656 else
|
|
7657 echo "configure: failed program was:" >&5
|
|
7658 cat conftest.$ac_ext >&5
|
|
7659 rm -rf conftest*
|
|
7660 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7661 fi
|
|
7662 rm -f conftest*
|
|
7663 xe_check_libs=""
|
|
7664
|
|
7665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7666 echo "$ac_t""yes" 1>&6
|
418
|
7667 with_ldap_nolber=yes
|
|
7668 else
|
|
7669 echo "$ac_t""no" 1>&6
|
|
7670 with_ldap_nolber=no
|
|
7671 fi
|
|
7672
|
|
7673
|
|
7674 test "$with_ldap_nolber" = "no" && {
|
|
7675 xe_msg_checking="for ldap_open in -lldap"
|
|
7676 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
|
|
7677 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
7678 echo "configure:7679: checking "$xe_msg_checking"" >&5
|
418
|
7679 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7680
|
|
7681 xe_check_libs=" -lldap -llber"
|
|
7682 cat > conftest.$ac_ext <<EOF
|
561
|
7683 #line 7684 "configure"
|
418
|
7684 #include "confdefs.h"
|
|
7685 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7686 /* We use char because int might match the return type of a gcc2
|
|
7687 builtin and then its argument prototype would still apply. */
|
|
7688 char ldap_open();
|
|
7689
|
|
7690 int main() {
|
|
7691 ldap_open()
|
|
7692 ; return 0; }
|
|
7693 EOF
|
561
|
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
7695 rm -rf conftest*
|
|
7696 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7697 else
|
|
7698 echo "configure: failed program was:" >&5
|
|
7699 cat conftest.$ac_ext >&5
|
|
7700 rm -rf conftest*
|
|
7701 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7702 fi
|
|
7703 rm -f conftest*
|
|
7704 xe_check_libs=""
|
|
7705
|
|
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7707 echo "$ac_t""yes" 1>&6
|
418
|
7708 with_ldap_lber=yes
|
|
7709 else
|
|
7710 echo "$ac_t""no" 1>&6
|
|
7711 with_ldap_lber=no
|
259
|
7712 fi
|
|
7713
|
|
7714 }
|
422
|
7715 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
|
|
7716 xe_msg_checking="for ldap_open in -lldap"
|
|
7717 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
|
|
7718 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
7719 echo "configure:7720: checking "$xe_msg_checking"" >&5
|
422
|
7720 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7721
|
|
7722 xe_check_libs=" -lldap -llber -lkrb"
|
|
7723 cat > conftest.$ac_ext <<EOF
|
561
|
7724 #line 7725 "configure"
|
422
|
7725 #include "confdefs.h"
|
|
7726 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7727 /* We use char because int might match the return type of a gcc2
|
|
7728 builtin and then its argument prototype would still apply. */
|
|
7729 char ldap_open();
|
|
7730
|
|
7731 int main() {
|
|
7732 ldap_open()
|
|
7733 ; return 0; }
|
|
7734 EOF
|
561
|
7735 if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
7736 rm -rf conftest*
|
|
7737 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7738 else
|
|
7739 echo "configure: failed program was:" >&5
|
|
7740 cat conftest.$ac_ext >&5
|
|
7741 rm -rf conftest*
|
|
7742 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7743 fi
|
|
7744 rm -f conftest*
|
|
7745 xe_check_libs=""
|
|
7746
|
|
7747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7748 echo "$ac_t""yes" 1>&6
|
|
7749 with_ldap_krb=yes
|
|
7750 else
|
|
7751 echo "$ac_t""no" 1>&6
|
|
7752 with_ldap_krb=no
|
|
7753 fi
|
|
7754
|
|
7755 }
|
|
7756 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
|
|
7757 xe_msg_checking="for ldap_open in -lldap"
|
|
7758 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
|
|
7759 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
|
561
|
7760 echo "configure:7761: checking "$xe_msg_checking"" >&5
|
422
|
7761 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
|
|
7762
|
|
7763 xe_check_libs=" -lldap -llber -lkrb -ldes"
|
|
7764 cat > conftest.$ac_ext <<EOF
|
561
|
7765 #line 7766 "configure"
|
422
|
7766 #include "confdefs.h"
|
|
7767 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7768 /* We use char because int might match the return type of a gcc2
|
|
7769 builtin and then its argument prototype would still apply. */
|
|
7770 char ldap_open();
|
|
7771
|
|
7772 int main() {
|
|
7773 ldap_open()
|
|
7774 ; return 0; }
|
|
7775 EOF
|
561
|
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
422
|
7777 rm -rf conftest*
|
|
7778 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7779 else
|
|
7780 echo "configure: failed program was:" >&5
|
|
7781 cat conftest.$ac_ext >&5
|
|
7782 rm -rf conftest*
|
|
7783 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7784 fi
|
|
7785 rm -f conftest*
|
|
7786 xe_check_libs=""
|
|
7787
|
|
7788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7789 echo "$ac_t""yes" 1>&6
|
|
7790 with_ldap_krbdes=yes
|
|
7791 else
|
|
7792 echo "$ac_t""no" 1>&6
|
|
7793 with_ldap_krbdes=no
|
|
7794 fi
|
|
7795
|
|
7796 }
|
|
7797 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
|
272
|
7798 fi
|
|
7799 if test "$with_ldap" = "yes"; then
|
259
|
7800 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7801 Defining HAVE_LDAP
|
|
7802 EOF
|
|
7803 cat >> confdefs.h <<\EOF
|
|
7804 #define HAVE_LDAP 1
|
|
7805 EOF
|
|
7806 }
|
|
7807
|
272
|
7808 extra_objs="$extra_objs eldap.o" && if test "$extra_verbose" = "yes"; then
|
|
7809 echo " xemacs will be linked with \"eldap.o\""
|
|
7810 fi
|
418
|
7811 if test "$with_ldap_nolber" = "yes" ; then
|
|
7812 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
|
7813 else
|
422
|
7814 if test "$with_ldap_krb" = "yes" ; then
|
|
7815 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
|
|
7816 fi
|
|
7817 if test "$with_ldap_krbdes" = "yes" ; then
|
|
7818 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
|
|
7819 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
|
|
7820 fi
|
272
|
7821 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
|
|
7822 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
|
418
|
7823 fi
|
|
7824 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
|
|
7825 do
|
|
7826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
7827 echo "configure:7828: checking for $ac_func" >&5
|
|
7828
|
|
7829 cat > conftest.$ac_ext <<EOF
|
|
7830 #line 7831 "configure"
|
418
|
7831 #include "confdefs.h"
|
|
7832 /* System header to define __stub macros and hopefully few prototypes,
|
|
7833 which can conflict with char $ac_func(); below. */
|
|
7834 #include <assert.h>
|
|
7835 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7836 /* We use char because int might match the return type of a gcc2
|
|
7837 builtin and then its argument prototype would still apply. */
|
|
7838 char $ac_func();
|
|
7839
|
|
7840 int main() {
|
|
7841
|
|
7842 /* The GNU C library defines this for functions which it implements
|
|
7843 to always fail with ENOSYS. Some functions are actually named
|
|
7844 something starting with __ and the normal name is an alias. */
|
|
7845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7846 choke me
|
|
7847 #else
|
|
7848 $ac_func();
|
|
7849 #endif
|
|
7850
|
|
7851 ; return 0; }
|
|
7852 EOF
|
561
|
7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
418
|
7854 rm -rf conftest*
|
|
7855 eval "ac_cv_func_$ac_func=yes"
|
|
7856 else
|
|
7857 echo "configure: failed program was:" >&5
|
|
7858 cat conftest.$ac_ext >&5
|
|
7859 rm -rf conftest*
|
|
7860 eval "ac_cv_func_$ac_func=no"
|
|
7861 fi
|
|
7862 rm -f conftest*
|
|
7863
|
|
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
7865 echo "$ac_t""yes" 1>&6
|
|
7866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
7867 { test "$extra_verbose" = "yes" && cat << EOF
|
|
7868 Defining $ac_tr_func
|
|
7869 EOF
|
|
7870 cat >> confdefs.h <<EOF
|
|
7871 #define $ac_tr_func 1
|
|
7872 EOF
|
|
7873 }
|
|
7874
|
|
7875 else
|
|
7876 echo "$ac_t""no" 1>&6
|
|
7877 fi
|
|
7878 done
|
|
7879
|
404
|
7880 fi
|
|
7881
|
442
|
7882 if test "$with_postgresql" != "no"; then
|
|
7883 echo "checking for PostgreSQL" 1>&6
|
561
|
7884 echo "configure:7885: checking for PostgreSQL" >&5
|
442
|
7885
|
|
7886 for header_dir in "" "pgsql/" "postgresql/"; do
|
|
7887 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
|
|
7888 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
|
561
|
7889 echo "configure:7890: checking for ${header_dir}libpq-fe.h" >&5
|
|
7890
|
|
7891 cat > conftest.$ac_ext <<EOF
|
|
7892 #line 7893 "configure"
|
442
|
7893 #include "confdefs.h"
|
|
7894 #include <${header_dir}libpq-fe.h>
|
|
7895 EOF
|
|
7896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
7897 { (eval echo configure:7898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
7898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
7899 if test -z "$ac_err"; then
|
|
7900 rm -rf conftest*
|
|
7901 eval "ac_cv_header_$ac_safe=yes"
|
|
7902 else
|
|
7903 echo "$ac_err" >&5
|
|
7904 echo "configure: failed program was:" >&5
|
|
7905 cat conftest.$ac_ext >&5
|
|
7906 rm -rf conftest*
|
|
7907 eval "ac_cv_header_$ac_safe=no"
|
|
7908 fi
|
|
7909 rm -f conftest*
|
|
7910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
7911 echo "$ac_t""yes" 1>&6
|
|
7912 libpq_fe_h_file=${header_dir}libpq-fe.h; break
|
|
7913 else
|
|
7914 echo "$ac_t""no" 1>&6
|
|
7915 fi
|
|
7916
|
|
7917 done
|
|
7918
|
|
7919 test -n "$libpq_fe_h_file" && {
|
|
7920 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
|
561
|
7921 echo "configure:7922: checking for PQconnectdb in -lpq" >&5
|
442
|
7922 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
|
|
7923
|
|
7924 xe_check_libs=" -lpq "
|
|
7925 cat > conftest.$ac_ext <<EOF
|
561
|
7926 #line 7927 "configure"
|
442
|
7927 #include "confdefs.h"
|
|
7928 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7929 /* We use char because int might match the return type of a gcc2
|
|
7930 builtin and then its argument prototype would still apply. */
|
|
7931 char PQconnectdb();
|
|
7932
|
|
7933 int main() {
|
|
7934 PQconnectdb()
|
|
7935 ; return 0; }
|
|
7936 EOF
|
561
|
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
7938 rm -rf conftest*
|
|
7939 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7940 else
|
|
7941 echo "configure: failed program was:" >&5
|
|
7942 cat conftest.$ac_ext >&5
|
|
7943 rm -rf conftest*
|
|
7944 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7945 fi
|
|
7946 rm -f conftest*
|
|
7947 xe_check_libs=""
|
|
7948
|
|
7949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7950 echo "$ac_t""yes" 1>&6
|
|
7951 have_libpq=yes
|
|
7952 else
|
|
7953 echo "$ac_t""no" 1>&6
|
|
7954 fi
|
|
7955
|
|
7956 }
|
|
7957
|
|
7958 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
|
|
7959 with_postgresql=yes
|
|
7960 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
7961 Defining HAVE_POSTGRESQL
|
|
7962 EOF
|
|
7963 cat >> confdefs.h <<\EOF
|
|
7964 #define HAVE_POSTGRESQL 1
|
|
7965 EOF
|
|
7966 }
|
|
7967
|
|
7968
|
|
7969 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
|
561
|
7970 echo "configure:7971: checking for PQconnectStart in -lpq" >&5
|
442
|
7971 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
|
|
7972
|
|
7973 xe_check_libs=" -lpq "
|
|
7974 cat > conftest.$ac_ext <<EOF
|
561
|
7975 #line 7976 "configure"
|
442
|
7976 #include "confdefs.h"
|
|
7977 /* Override any gcc2 internal prototype to avoid an error. */
|
|
7978 /* We use char because int might match the return type of a gcc2
|
|
7979 builtin and then its argument prototype would still apply. */
|
|
7980 char PQconnectStart();
|
|
7981
|
|
7982 int main() {
|
|
7983 PQconnectStart()
|
|
7984 ; return 0; }
|
|
7985 EOF
|
561
|
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
7987 rm -rf conftest*
|
|
7988 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
7989 else
|
|
7990 echo "configure: failed program was:" >&5
|
|
7991 cat conftest.$ac_ext >&5
|
|
7992 rm -rf conftest*
|
|
7993 eval "ac_cv_lib_$ac_lib_var=no"
|
|
7994 fi
|
|
7995 rm -f conftest*
|
|
7996 xe_check_libs=""
|
|
7997
|
|
7998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
7999 echo "$ac_t""yes" 1>&6
|
|
8000 with_postgresqlv7=yes;
|
|
8001 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8002 Defining HAVE_POSTGRESQLV7
|
|
8003 EOF
|
|
8004 cat >> confdefs.h <<\EOF
|
|
8005 #define HAVE_POSTGRESQLV7 1
|
|
8006 EOF
|
|
8007 }
|
|
8008
|
|
8009 else
|
|
8010 echo "$ac_t""no" 1>&6
|
|
8011 fi
|
|
8012
|
|
8013
|
|
8014 { test "$extra_verbose" = "yes" && cat << EOF
|
|
8015 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
|
|
8016 EOF
|
|
8017 cat >> confdefs.h <<EOF
|
|
8018 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
|
|
8019 EOF
|
|
8020 }
|
|
8021
|
|
8022 LIBS="-lpq $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$LIBS"; fi
|
|
8023 extra_objs="$extra_objs postgresql.o" && if test "$extra_verbose" = "yes"; then
|
|
8024 echo " xemacs will be linked with \"postgresql.o\""
|
|
8025 fi
|
|
8026 elif test "$with_postgresql" = "yes"; then
|
|
8027 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
|
|
8028 fi
|
|
8029 fi
|
|
8030
|
149
|
8031
|
278
|
8032 if test "$window_system" != "none"; then
|
|
8033 echo "checking for graphics libraries" 1>&6
|
561
|
8034 echo "configure:8035: checking for graphics libraries" >&5
|
373
|
8035
|
|
8036 xpm_problem=""
|
|
8037 if test -z "$with_xpm"; then
|
193
|
8038 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
|
561
|
8039 echo "configure:8040: checking for Xpm - no older than 3.4f" >&5
|
272
|
8040 xe_check_libs=-lXpm
|
|
8041 cat > conftest.$ac_ext <<EOF
|
561
|
8042 #line 8043 "configure"
|
442
|
8043 #include "confdefs.h"
|
|
8044 #define XPM_NUMBERS
|
149
|
8045 #include <X11/xpm.h>
|
272
|
8046 int main(int c, char **v) {
|
|
8047 return c == 1 ? 0 :
|
|
8048 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
|
|
8049 XpmIncludeVersion < 30406 ? 2 : 0 ;}
|
|
8050 EOF
|
561
|
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
159
|
8052 then
|
272
|
8053 ./conftest dummy_arg; xpm_status=$?;
|
373
|
8054 if test "$xpm_status" = "0"; then
|
272
|
8055 with_xpm=yes;
|
|
8056 else
|
|
8057 with_xpm=no;
|
373
|
8058 if test "$xpm_status" = "1"; then
|
272
|
8059 xpm_problem="Xpm library version and header file version don't match!"
|
373
|
8060 elif test "$xpm_status" = "2"; then
|
272
|
8061 xpm_problem="Xpm library version is too old!"
|
|
8062 else
|
|
8063 xpm_problem="Internal xpm detection logic error!"
|
|
8064 fi
|
|
8065 echo "
|
373
|
8066 *** WARNING *** $xpm_problem
|
278
|
8067 I'm not touching that with a 10-foot pole!
|
|
8068 If you really want to use the installed version of Xpm, rerun
|
373
|
8069 configure and add '--with-xpm=yes', but don't blame me if XEmacs crashes!"
|
278
|
8070 fi
|
159
|
8071 else
|
373
|
8072 conftest_rc="$?"
|
159
|
8073 echo "configure: failed program was:" >&5
|
|
8074 cat conftest.$ac_ext >&5
|
|
8075 rm -fr conftest*
|
|
8076 with_xpm=no
|
|
8077 fi
|
|
8078 rm -fr conftest*
|
272
|
8079 xe_check_libs=
|
|
8080 echo "$ac_t""$with_xpm" 1>&6
|
193
|
8081 fi
|
|
8082 if test "$with_xpm" = "yes"; then
|
458
|
8083 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
8084 Defining HAVE_XPM
|
|
8085 EOF
|
|
8086 cat >> confdefs.h <<\EOF
|
|
8087 #define HAVE_XPM 1
|
|
8088 EOF
|
|
8089 }
|
|
8090
|
193
|
8091 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
|
278
|
8092 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
|
561
|
8093 echo "configure:8094: checking for \"FOR_MSW\" xpm" >&5
|
278
|
8094 xe_check_libs=-lXpm
|
|
8095 cat > conftest.$ac_ext <<EOF
|
561
|
8096 #line 8097 "configure"
|
278
|
8097 #include "confdefs.h"
|
|
8098
|
|
8099 int main() {
|
|
8100 XpmCreatePixmapFromData()
|
|
8101 ; return 0; }
|
|
8102 EOF
|
561
|
8103 if { (eval echo configure:8104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8104 rm -rf conftest*
|
|
8105 xpm_for_msw=no
|
|
8106 else
|
|
8107 echo "configure: failed program was:" >&5
|
|
8108 cat conftest.$ac_ext >&5
|
|
8109 rm -rf conftest*
|
|
8110 xpm_for_msw=yes
|
|
8111 fi
|
|
8112 rm -f conftest*
|
|
8113 xe_check_libs=
|
|
8114 echo "$ac_t""$xpm_for_msw" 1>&6
|
|
8115 if test "$xpm_for_msw" = "yes"; then
|
|
8116 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8117 Defining FOR_MSW
|
|
8118 EOF
|
|
8119 cat >> confdefs.h <<\EOF
|
|
8120 #define FOR_MSW 1
|
|
8121 EOF
|
|
8122 }
|
|
8123
|
|
8124 fi
|
|
8125 fi
|
|
8126
|
388
|
8127 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
8128 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
561
|
8129 echo "configure:8130: checking for compface.h" >&5
|
|
8130
|
|
8131 cat > conftest.$ac_ext <<EOF
|
|
8132 #line 8133 "configure"
|
388
|
8133 #include "confdefs.h"
|
|
8134 #include <compface.h>
|
|
8135 EOF
|
|
8136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8137 { (eval echo configure:8138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
388
|
8139 if test -z "$ac_err"; then
|
|
8140 rm -rf conftest*
|
|
8141 eval "ac_cv_header_$ac_safe=yes"
|
|
8142 else
|
|
8143 echo "$ac_err" >&5
|
|
8144 echo "configure: failed program was:" >&5
|
|
8145 cat conftest.$ac_ext >&5
|
|
8146 rm -rf conftest*
|
|
8147 eval "ac_cv_header_$ac_safe=no"
|
|
8148 fi
|
|
8149 rm -f conftest*
|
|
8150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8151 echo "$ac_t""yes" 1>&6
|
|
8152 :
|
|
8153 else
|
|
8154 echo "$ac_t""no" 1>&6
|
|
8155 with_xface=no
|
|
8156 fi
|
|
8157 }
|
|
8158 test -z "$with_xface" && {
|
|
8159 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
561
|
8160 echo "configure:8161: checking for UnGenFace in -lcompface" >&5
|
388
|
8161 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
8162
|
|
8163 xe_check_libs=" -lcompface "
|
|
8164 cat > conftest.$ac_ext <<EOF
|
561
|
8165 #line 8166 "configure"
|
388
|
8166 #include "confdefs.h"
|
|
8167 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8168 /* We use char because int might match the return type of a gcc2
|
|
8169 builtin and then its argument prototype would still apply. */
|
|
8170 char UnGenFace();
|
|
8171
|
|
8172 int main() {
|
|
8173 UnGenFace()
|
|
8174 ; return 0; }
|
|
8175 EOF
|
561
|
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
8177 rm -rf conftest*
|
|
8178 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8179 else
|
|
8180 echo "configure: failed program was:" >&5
|
|
8181 cat conftest.$ac_ext >&5
|
|
8182 rm -rf conftest*
|
|
8183 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8184 fi
|
|
8185 rm -f conftest*
|
|
8186 xe_check_libs=""
|
|
8187
|
|
8188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8189 echo "$ac_t""yes" 1>&6
|
|
8190 :
|
|
8191 else
|
|
8192 echo "$ac_t""no" 1>&6
|
|
8193 with_xface=no
|
|
8194 fi
|
|
8195
|
|
8196 }
|
|
8197 test -z "$with_xface" && with_xface=yes
|
|
8198 if test "$with_xface" = "yes"; then
|
|
8199 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8200 Defining HAVE_XFACE
|
|
8201 EOF
|
|
8202 cat >> confdefs.h <<\EOF
|
|
8203 #define HAVE_XFACE 1
|
|
8204 EOF
|
|
8205 }
|
|
8206
|
|
8207 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
|
|
8208 fi
|
|
8209
|
373
|
8210 if test "$with_gif" != "no"; then
|
|
8211 with_gif="yes"
|
|
8212 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8213 Defining HAVE_GIF
|
|
8214 EOF
|
|
8215 cat >> confdefs.h <<\EOF
|
|
8216 #define HAVE_GIF 1
|
|
8217 EOF
|
|
8218 }
|
|
8219
|
|
8220 extra_objs="$extra_objs dgif_lib.o gif_io.o" && if test "$extra_verbose" = "yes"; then
|
|
8221 echo " xemacs will be linked with \"dgif_lib.o gif_io.o\""
|
|
8222 fi
|
|
8223 fi
|
|
8224
|
278
|
8225 if test "$with_png $with_tiff" != "no no"; then
|
|
8226
|
|
8227 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
|
561
|
8228 echo "configure:8229: checking for inflate in -lc" >&5
|
278
|
8229 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
|
|
8230
|
|
8231 xe_check_libs=" -lc "
|
|
8232 cat > conftest.$ac_ext <<EOF
|
561
|
8233 #line 8234 "configure"
|
149
|
8234 #include "confdefs.h"
|
|
8235 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8236 /* We use char because int might match the return type of a gcc2
|
|
8237 builtin and then its argument prototype would still apply. */
|
278
|
8238 char inflate();
|
|
8239
|
|
8240 int main() {
|
|
8241 inflate()
|
|
8242 ; return 0; }
|
|
8243 EOF
|
561
|
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
8245 rm -rf conftest*
|
|
8246 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8247 else
|
|
8248 echo "configure: failed program was:" >&5
|
|
8249 cat conftest.$ac_ext >&5
|
|
8250 rm -rf conftest*
|
|
8251 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8252 fi
|
|
8253 rm -f conftest*
|
|
8254 xe_check_libs=""
|
|
8255
|
151
|
8256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
8257 echo "$ac_t""yes" 1>&6
|
278
|
8258 :
|
|
8259 else
|
|
8260 echo "$ac_t""no" 1>&6
|
|
8261
|
|
8262 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
|
561
|
8263 echo "configure:8264: checking for inflate in -lz" >&5
|
278
|
8264 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
|
|
8265
|
|
8266 xe_check_libs=" -lz "
|
|
8267 cat > conftest.$ac_ext <<EOF
|
561
|
8268 #line 8269 "configure"
|
278
|
8269 #include "confdefs.h"
|
|
8270 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8271 /* We use char because int might match the return type of a gcc2
|
|
8272 builtin and then its argument prototype would still apply. */
|
|
8273 char inflate();
|
|
8274
|
|
8275 int main() {
|
|
8276 inflate()
|
|
8277 ; return 0; }
|
|
8278 EOF
|
561
|
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8280 rm -rf conftest*
|
|
8281 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8282 else
|
|
8283 echo "configure: failed program was:" >&5
|
|
8284 cat conftest.$ac_ext >&5
|
|
8285 rm -rf conftest*
|
|
8286 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8287 fi
|
|
8288 rm -f conftest*
|
|
8289 xe_check_libs=""
|
|
8290
|
|
8291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8292 echo "$ac_t""yes" 1>&6
|
|
8293 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
|
|
8294 else
|
|
8295 echo "$ac_t""no" 1>&6
|
|
8296
|
|
8297 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
|
561
|
8298 echo "configure:8299: checking for inflate in -lgz" >&5
|
278
|
8299 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
|
|
8300
|
|
8301 xe_check_libs=" -lgz "
|
|
8302 cat > conftest.$ac_ext <<EOF
|
561
|
8303 #line 8304 "configure"
|
278
|
8304 #include "confdefs.h"
|
|
8305 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8306 /* We use char because int might match the return type of a gcc2
|
|
8307 builtin and then its argument prototype would still apply. */
|
|
8308 char inflate();
|
|
8309
|
|
8310 int main() {
|
|
8311 inflate()
|
|
8312 ; return 0; }
|
|
8313 EOF
|
561
|
8314 if { (eval echo configure:8315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
278
|
8315 rm -rf conftest*
|
|
8316 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8317 else
|
|
8318 echo "configure: failed program was:" >&5
|
|
8319 cat conftest.$ac_ext >&5
|
|
8320 rm -rf conftest*
|
|
8321 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8322 fi
|
|
8323 rm -f conftest*
|
|
8324 xe_check_libs=""
|
|
8325
|
|
8326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8327 echo "$ac_t""yes" 1>&6
|
|
8328 libs_x="-lgz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgz\" to \$libs_x"; fi
|
|
8329 else
|
|
8330 echo "$ac_t""no" 1>&6
|
|
8331 fi
|
|
8332
|
|
8333
|
|
8334 fi
|
|
8335
|
|
8336
|
|
8337 fi
|
|
8338
|
|
8339
|
193
|
8340 fi
|
|
8341
|
251
|
8342 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
|
|
8343 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
|
561
|
8344 echo "configure:8345: checking for jpeglib.h" >&5
|
|
8345
|
|
8346 cat > conftest.$ac_ext <<EOF
|
|
8347 #line 8348 "configure"
|
251
|
8348 #include "confdefs.h"
|
|
8349 #include <jpeglib.h>
|
0
|
8350 EOF
|
149
|
8351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8352 { (eval echo configure:8353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
251
|
8354 if test -z "$ac_err"; then
|
|
8355 rm -rf conftest*
|
|
8356 eval "ac_cv_header_$ac_safe=yes"
|
|
8357 else
|
|
8358 echo "$ac_err" >&5
|
|
8359 echo "configure: failed program was:" >&5
|
|
8360 cat conftest.$ac_ext >&5
|
|
8361 rm -rf conftest*
|
|
8362 eval "ac_cv_header_$ac_safe=no"
|
|
8363 fi
|
|
8364 rm -f conftest*
|
|
8365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8366 echo "$ac_t""yes" 1>&6
|
|
8367 :
|
|
8368 else
|
|
8369 echo "$ac_t""no" 1>&6
|
|
8370 with_jpeg=no
|
|
8371 fi
|
|
8372 }
|
|
8373 test -z "$with_jpeg" && {
|
|
8374 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
|
561
|
8375 echo "configure:8376: checking for jpeg_destroy_decompress in -ljpeg" >&5
|
251
|
8376 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
|
|
8377
|
|
8378 xe_check_libs=" -ljpeg "
|
|
8379 cat > conftest.$ac_ext <<EOF
|
561
|
8380 #line 8381 "configure"
|
251
|
8381 #include "confdefs.h"
|
|
8382 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8383 /* We use char because int might match the return type of a gcc2
|
|
8384 builtin and then its argument prototype would still apply. */
|
|
8385 char jpeg_destroy_decompress();
|
|
8386
|
|
8387 int main() {
|
|
8388 jpeg_destroy_decompress()
|
|
8389 ; return 0; }
|
|
8390 EOF
|
561
|
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
8392 rm -rf conftest*
|
|
8393 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8394 else
|
|
8395 echo "configure: failed program was:" >&5
|
|
8396 cat conftest.$ac_ext >&5
|
|
8397 rm -rf conftest*
|
|
8398 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8399 fi
|
|
8400 rm -f conftest*
|
|
8401 xe_check_libs=""
|
|
8402
|
|
8403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8404 echo "$ac_t""yes" 1>&6
|
|
8405 :
|
|
8406 else
|
|
8407 echo "$ac_t""no" 1>&6
|
|
8408 with_jpeg=no
|
|
8409 fi
|
|
8410
|
|
8411 }
|
|
8412 test -z "$with_jpeg" && with_jpeg=yes
|
|
8413 if test "$with_jpeg" = "yes"; then
|
|
8414 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8415 Defining HAVE_JPEG
|
|
8416 EOF
|
|
8417 cat >> confdefs.h <<\EOF
|
|
8418 #define HAVE_JPEG 1
|
|
8419 EOF
|
|
8420 }
|
|
8421
|
|
8422 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
|
|
8423 fi
|
|
8424
|
373
|
8425 png_problem=""
|
251
|
8426 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
|
561
|
8427 echo "configure:8428: checking for pow" >&5
|
|
8428
|
|
8429 cat > conftest.$ac_ext <<EOF
|
|
8430 #line 8431 "configure"
|
251
|
8431 #include "confdefs.h"
|
|
8432 /* System header to define __stub macros and hopefully few prototypes,
|
|
8433 which can conflict with char pow(); below. */
|
|
8434 #include <assert.h>
|
243
|
8435 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8436 /* We use char because int might match the return type of a gcc2
|
|
8437 builtin and then its argument prototype would still apply. */
|
251
|
8438 char pow();
|
243
|
8439
|
|
8440 int main() {
|
251
|
8441
|
|
8442 /* The GNU C library defines this for functions which it implements
|
|
8443 to always fail with ENOSYS. Some functions are actually named
|
|
8444 something starting with __ and the normal name is an alias. */
|
|
8445 #if defined (__stub_pow) || defined (__stub___pow)
|
|
8446 choke me
|
|
8447 #else
|
|
8448 pow();
|
|
8449 #endif
|
|
8450
|
243
|
8451 ; return 0; }
|
|
8452 EOF
|
561
|
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
251
|
8454 rm -rf conftest*
|
|
8455 eval "ac_cv_func_pow=yes"
|
|
8456 else
|
|
8457 echo "configure: failed program was:" >&5
|
|
8458 cat conftest.$ac_ext >&5
|
|
8459 rm -rf conftest*
|
|
8460 eval "ac_cv_func_pow=no"
|
|
8461 fi
|
|
8462 rm -f conftest*
|
|
8463
|
|
8464 if eval "test \"`echo '$ac_cv_func_'pow`\" = yes"; then
|
|
8465 echo "$ac_t""yes" 1>&6
|
|
8466 :
|
|
8467 else
|
|
8468 echo "$ac_t""no" 1>&6
|
|
8469 with_png=no
|
|
8470 fi
|
|
8471 }
|
373
|
8472 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
|
|
8473 echo $ac_n "checking for png.h""... $ac_c" 1>&6
|
561
|
8474 echo "configure:8475: checking for png.h" >&5
|
|
8475
|
|
8476 cat > conftest.$ac_ext <<EOF
|
|
8477 #line 8478 "configure"
|
373
|
8478 #include "confdefs.h"
|
|
8479 #include <png.h>
|
|
8480 EOF
|
|
8481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8482 { (eval echo configure:8483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
373
|
8484 if test -z "$ac_err"; then
|
|
8485 rm -rf conftest*
|
|
8486 eval "ac_cv_header_$ac_safe=yes"
|
|
8487 else
|
|
8488 echo "$ac_err" >&5
|
|
8489 echo "configure: failed program was:" >&5
|
|
8490 cat conftest.$ac_ext >&5
|
|
8491 rm -rf conftest*
|
|
8492 eval "ac_cv_header_$ac_safe=no"
|
|
8493 fi
|
|
8494 rm -f conftest*
|
|
8495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8496 echo "$ac_t""yes" 1>&6
|
|
8497 :
|
|
8498 else
|
|
8499 echo "$ac_t""no" 1>&6
|
|
8500 with_png=no
|
|
8501 fi
|
|
8502 }
|
272
|
8503 test -z "$with_png" && {
|
|
8504 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
|
561
|
8505 echo "configure:8506: checking for png_read_image in -lpng" >&5
|
272
|
8506 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
|
|
8507
|
|
8508 xe_check_libs=" -lpng "
|
|
8509 cat > conftest.$ac_ext <<EOF
|
561
|
8510 #line 8511 "configure"
|
243
|
8511 #include "confdefs.h"
|
|
8512 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8513 /* We use char because int might match the return type of a gcc2
|
|
8514 builtin and then its argument prototype would still apply. */
|
272
|
8515 char png_read_image();
|
|
8516
|
|
8517 int main() {
|
|
8518 png_read_image()
|
|
8519 ; return 0; }
|
|
8520 EOF
|
561
|
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
8522 rm -rf conftest*
|
|
8523 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8524 else
|
|
8525 echo "configure: failed program was:" >&5
|
|
8526 cat conftest.$ac_ext >&5
|
|
8527 rm -rf conftest*
|
|
8528 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8529 fi
|
|
8530 rm -f conftest*
|
|
8531 xe_check_libs=""
|
|
8532
|
|
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8534 echo "$ac_t""yes" 1>&6
|
272
|
8535 :
|
|
8536 else
|
|
8537 echo "$ac_t""no" 1>&6
|
|
8538 with_png=no
|
|
8539 fi
|
|
8540
|
|
8541 }
|
373
|
8542 if test -z "$with_png"; then
|
|
8543 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
|
561
|
8544 echo "configure:8545: checking for workable png version information" >&5
|
373
|
8545 xe_check_libs="-lpng -lz"
|
|
8546 cat > conftest.$ac_ext <<EOF
|
561
|
8547 #line 8548 "configure"
|
373
|
8548 #include "confdefs.h"
|
|
8549 #include <png.h>
|
|
8550 int main(int c, char **v) {
|
|
8551 if (c == 1) return 0;
|
|
8552 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
|
|
8553 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
|
|
8554 EOF
|
561
|
8555 if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
373
|
8556 then
|
|
8557 ./conftest dummy_arg; png_status=$?;
|
|
8558 if test "$png_status" = "0"; then
|
|
8559 with_png=yes;
|
|
8560 else
|
|
8561 with_png=no;
|
|
8562 if test "$png_status" = "1"; then
|
|
8563 png_problem="PNG library version and header file don't match!"
|
|
8564 elif test "$png_status" = "2"; then
|
|
8565 png_problem="PNG library version too old (pre 1.0.2)!"
|
|
8566 fi
|
|
8567 echo "
|
|
8568 *** WARNING *** $png_problem
|
|
8569 I'm not touching that with a 10-foot pole!
|
|
8570 If you really want to use the installed version of libPNG, rerun
|
|
8571 configure and add '--with-png=yes', but don't blame me if XEmacs crashes!"
|
|
8572 fi
|
|
8573 else
|
|
8574 conftest_rc="$?"
|
|
8575 echo "configure: failed program was:" >&5
|
|
8576 cat conftest.$ac_ext >&5
|
|
8577 rm -fr conftest*
|
|
8578 with_png=no
|
|
8579 fi
|
|
8580 rm -fr conftest*
|
|
8581 xe_check_libs=
|
|
8582 echo "$ac_t""$with_png" 1>&6
|
|
8583 fi
|
251
|
8584 if test "$with_png" = "yes"; then
|
|
8585 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8586 Defining HAVE_PNG
|
|
8587 EOF
|
|
8588 cat >> confdefs.h <<\EOF
|
|
8589 #define HAVE_PNG 1
|
|
8590 EOF
|
|
8591 }
|
|
8592
|
272
|
8593 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
|
251
|
8594 fi
|
|
8595
|
272
|
8596 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
|
|
8597 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
|
561
|
8598 echo "configure:8599: checking for tiffio.h" >&5
|
|
8599
|
|
8600 cat > conftest.$ac_ext <<EOF
|
|
8601 #line 8602 "configure"
|
272
|
8602 #include "confdefs.h"
|
|
8603 #include <tiffio.h>
|
|
8604 EOF
|
|
8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
272
|
8608 if test -z "$ac_err"; then
|
|
8609 rm -rf conftest*
|
|
8610 eval "ac_cv_header_$ac_safe=yes"
|
|
8611 else
|
|
8612 echo "$ac_err" >&5
|
|
8613 echo "configure: failed program was:" >&5
|
|
8614 cat conftest.$ac_ext >&5
|
|
8615 rm -rf conftest*
|
|
8616 eval "ac_cv_header_$ac_safe=no"
|
|
8617 fi
|
|
8618 rm -f conftest*
|
|
8619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8620 echo "$ac_t""yes" 1>&6
|
|
8621 :
|
|
8622 else
|
|
8623 echo "$ac_t""no" 1>&6
|
|
8624 with_tiff=no
|
|
8625 fi
|
|
8626 }
|
|
8627 test -z "$with_tiff" && {
|
286
|
8628 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
|
561
|
8629 echo "configure:8630: checking for TIFFClientOpen in -ltiff" >&5
|
286
|
8630 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
|
251
|
8631
|
272
|
8632 xe_check_libs=" -ltiff "
|
|
8633 cat > conftest.$ac_ext <<EOF
|
561
|
8634 #line 8635 "configure"
|
217
|
8635 #include "confdefs.h"
|
|
8636 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8637 /* We use char because int might match the return type of a gcc2
|
|
8638 builtin and then its argument prototype would still apply. */
|
286
|
8639 char TIFFClientOpen();
|
|
8640
|
|
8641 int main() {
|
|
8642 TIFFClientOpen()
|
|
8643 ; return 0; }
|
|
8644 EOF
|
561
|
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
217
|
8646 rm -rf conftest*
|
|
8647 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8648 else
|
|
8649 echo "configure: failed program was:" >&5
|
|
8650 cat conftest.$ac_ext >&5
|
|
8651 rm -rf conftest*
|
|
8652 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8653 fi
|
|
8654 rm -f conftest*
|
|
8655 xe_check_libs=""
|
|
8656
|
|
8657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8658 echo "$ac_t""yes" 1>&6
|
272
|
8659 :
|
|
8660 else
|
|
8661 echo "$ac_t""no" 1>&6
|
|
8662 with_tiff=no
|
|
8663 fi
|
|
8664
|
|
8665 }
|
|
8666 test -z "$with_tiff" && with_tiff=yes
|
251
|
8667 if test "$with_tiff" = "yes"; then
|
|
8668 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8669 Defining HAVE_TIFF
|
|
8670 EOF
|
|
8671 cat >> confdefs.h <<\EOF
|
|
8672 #define HAVE_TIFF 1
|
|
8673 EOF
|
|
8674 }
|
|
8675
|
272
|
8676 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
|
251
|
8677 fi
|
278
|
8678 fi
|
|
8679
|
|
8680
|
462
|
8681 if test "$with_gtk" = "yes"; then
|
|
8682 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
|
|
8683 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
|
561
|
8684 echo "configure:8685: checking for compface.h" >&5
|
|
8685
|
|
8686 cat > conftest.$ac_ext <<EOF
|
|
8687 #line 8688 "configure"
|
462
|
8688 #include "confdefs.h"
|
|
8689 #include <compface.h>
|
|
8690 EOF
|
|
8691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8692 { (eval echo configure:8693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
462
|
8693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8694 if test -z "$ac_err"; then
|
|
8695 rm -rf conftest*
|
|
8696 eval "ac_cv_header_$ac_safe=yes"
|
|
8697 else
|
|
8698 echo "$ac_err" >&5
|
|
8699 echo "configure: failed program was:" >&5
|
|
8700 cat conftest.$ac_ext >&5
|
|
8701 rm -rf conftest*
|
|
8702 eval "ac_cv_header_$ac_safe=no"
|
|
8703 fi
|
|
8704 rm -f conftest*
|
|
8705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8706 echo "$ac_t""yes" 1>&6
|
|
8707 :
|
|
8708 else
|
|
8709 echo "$ac_t""no" 1>&6
|
|
8710 with_xface=no
|
|
8711 fi
|
|
8712 }
|
|
8713 test -z "$with_xface" && {
|
|
8714 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
|
561
|
8715 echo "configure:8716: checking for UnGenFace in -lcompface" >&5
|
462
|
8716 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
|
|
8717
|
|
8718 xe_check_libs=" -lcompface "
|
|
8719 cat > conftest.$ac_ext <<EOF
|
561
|
8720 #line 8721 "configure"
|
462
|
8721 #include "confdefs.h"
|
|
8722 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8723 /* We use char because int might match the return type of a gcc2
|
|
8724 builtin and then its argument prototype would still apply. */
|
|
8725 char UnGenFace();
|
|
8726
|
|
8727 int main() {
|
|
8728 UnGenFace()
|
|
8729 ; return 0; }
|
|
8730 EOF
|
561
|
8731 if { (eval echo configure:8732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
462
|
8732 rm -rf conftest*
|
|
8733 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8734 else
|
|
8735 echo "configure: failed program was:" >&5
|
|
8736 cat conftest.$ac_ext >&5
|
|
8737 rm -rf conftest*
|
|
8738 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8739 fi
|
|
8740 rm -f conftest*
|
|
8741 xe_check_libs=""
|
|
8742
|
|
8743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8744 echo "$ac_t""yes" 1>&6
|
|
8745 :
|
|
8746 else
|
|
8747 echo "$ac_t""no" 1>&6
|
|
8748 with_xface=no
|
|
8749 fi
|
|
8750
|
|
8751 }
|
|
8752 test -z "$with_xface" && with_xface=yes
|
|
8753 if test "$with_xface" = "yes"; then
|
|
8754 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
8755 Defining HAVE_XFACE
|
|
8756 EOF
|
|
8757 cat >> confdefs.h <<\EOF
|
|
8758 #define HAVE_XFACE 1
|
|
8759 EOF
|
|
8760 }
|
|
8761
|
|
8762 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
|
|
8763 fi
|
|
8764 fi
|
|
8765
|
|
8766
|
|
8767
|
278
|
8768 if test "$with_x11" = "yes"; then
|
|
8769
|
|
8770 echo "checking for X11 graphics libraries" 1>&6
|
561
|
8771 echo "configure:8772: checking for X11 graphics libraries" >&5
|
434
|
8772
|
|
8773 echo "checking for the Athena widgets" 1>&6
|
561
|
8774 echo "configure:8775: checking for the Athena widgets" >&5
|
434
|
8775
|
|
8776 case "$with_athena" in
|
|
8777 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
|
|
8778 "3d") athena_variant=Xaw3d athena_3d=yes ;;
|
|
8779 "next") athena_variant=neXtaw athena_3d=yes ;;
|
|
8780 "95") athena_variant=Xaw95 athena_3d=yes ;;
|
|
8781 "xpm") athena_variant=XawXpm athena_3d=yes ;;
|
|
8782 *) { echo "Error:" "Unknown Athena widget set \`$with_athena'. This should not happen." >&2; exit 1; } ;;
|
|
8783 esac
|
|
8784
|
|
8785 if test "$athena_3d" = "no"; then
|
193
|
8786
|
434
|
8787 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
|
561
|
8788 echo "configure:8789: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
|
434
|
8789 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
|
|
8790
|
|
8791 xe_check_libs=" -l$athena_variant "
|
|
8792 cat > conftest.$ac_ext <<EOF
|
561
|
8793 #line 8794 "configure"
|
193
|
8794 #include "confdefs.h"
|
|
8795 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8796 /* We use char because int might match the return type of a gcc2
|
|
8797 builtin and then its argument prototype would still apply. */
|
|
8798 char XawScrollbarSetThumb();
|
|
8799
|
|
8800 int main() {
|
|
8801 XawScrollbarSetThumb()
|
|
8802 ; return 0; }
|
|
8803 EOF
|
561
|
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
8805 rm -rf conftest*
|
|
8806 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8807 else
|
|
8808 echo "configure: failed program was:" >&5
|
|
8809 cat conftest.$ac_ext >&5
|
|
8810 rm -rf conftest*
|
|
8811 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8812 fi
|
|
8813 rm -f conftest*
|
|
8814 xe_check_libs=""
|
|
8815
|
|
8816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8817 echo "$ac_t""yes" 1>&6
|
|
8818
|
|
8819 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
561
|
8820 echo "configure:8821: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
8821 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8822
|
|
8823 xe_check_libs=" -l$athena_variant "
|
|
8824 cat > conftest.$ac_ext <<EOF
|
561
|
8825 #line 8826 "configure"
|
434
|
8826 #include "confdefs.h"
|
|
8827 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8828 /* We use char because int might match the return type of a gcc2
|
|
8829 builtin and then its argument prototype would still apply. */
|
|
8830 char threeDClassRec();
|
|
8831
|
|
8832 int main() {
|
|
8833 threeDClassRec()
|
|
8834 ; return 0; }
|
|
8835 EOF
|
561
|
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
8837 rm -rf conftest*
|
|
8838 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8839 else
|
|
8840 echo "configure: failed program was:" >&5
|
|
8841 cat conftest.$ac_ext >&5
|
|
8842 rm -rf conftest*
|
|
8843 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8844 fi
|
|
8845 rm -f conftest*
|
|
8846 xe_check_libs=""
|
|
8847
|
|
8848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8849 echo "$ac_t""yes" 1>&6
|
|
8850 echo "configure: warning: Could not find a non-3d Athena widget library." 1>&2
|
434
|
8851 else
|
|
8852 echo "$ac_t""no" 1>&6
|
|
8853 athena_lib=$athena_variant
|
|
8854 fi
|
|
8855
|
|
8856
|
|
8857
|
|
8858 else
|
|
8859 echo "$ac_t""no" 1>&6
|
561
|
8860 echo "configure: warning: Could not find an Athena widget library." 1>&2
|
434
|
8861 fi
|
|
8862
|
|
8863
|
|
8864 else
|
|
8865
|
|
8866 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
|
561
|
8867 echo "configure:8868: checking for threeDClassRec in -l$athena_variant" >&5
|
434
|
8868 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8869
|
|
8870 xe_check_libs=" -l$athena_variant "
|
|
8871 cat > conftest.$ac_ext <<EOF
|
561
|
8872 #line 8873 "configure"
|
434
|
8873 #include "confdefs.h"
|
|
8874 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8875 /* We use char because int might match the return type of a gcc2
|
|
8876 builtin and then its argument prototype would still apply. */
|
|
8877 char threeDClassRec();
|
|
8878
|
|
8879 int main() {
|
|
8880 threeDClassRec()
|
|
8881 ; return 0; }
|
|
8882 EOF
|
561
|
8883 if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
434
|
8884 rm -rf conftest*
|
|
8885 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8886 else
|
|
8887 echo "configure: failed program was:" >&5
|
|
8888 cat conftest.$ac_ext >&5
|
|
8889 rm -rf conftest*
|
|
8890 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8891 fi
|
|
8892 rm -f conftest*
|
|
8893 xe_check_libs=""
|
|
8894
|
|
8895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8896 echo "$ac_t""yes" 1>&6
|
|
8897 athena_lib=$athena_variant
|
|
8898 else
|
|
8899 echo "$ac_t""no" 1>&6
|
|
8900 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
|
561
|
8901 echo "configure:8902: checking for threeDClassRec in -lXaw" >&5
|
434
|
8902 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
|
|
8903
|
|
8904 xe_check_libs=" -lXaw "
|
|
8905 cat > conftest.$ac_ext <<EOF
|
561
|
8906 #line 8907 "configure"
|
434
|
8907 #include "confdefs.h"
|
|
8908 /* Override any gcc2 internal prototype to avoid an error. */
|
|
8909 /* We use char because int might match the return type of a gcc2
|
|
8910 builtin and then its argument prototype would still apply. */
|
|
8911 char threeDClassRec();
|
|
8912
|
|
8913 int main() {
|
|
8914 threeDClassRec()
|
|
8915 ; return 0; }
|
|
8916 EOF
|
561
|
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
193
|
8918 rm -rf conftest*
|
|
8919 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
8920 else
|
|
8921 echo "configure: failed program was:" >&5
|
|
8922 cat conftest.$ac_ext >&5
|
|
8923 rm -rf conftest*
|
|
8924 eval "ac_cv_lib_$ac_lib_var=no"
|
|
8925 fi
|
|
8926 rm -f conftest*
|
|
8927 xe_check_libs=""
|
|
8928
|
|
8929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
8930 echo "$ac_t""yes" 1>&6
|
438
|
8931 athena_lib=Xaw;
|
561
|
8932 echo "configure: warning: Assuming that libXaw is actually $athena_variant." 1>&2;
|
434
|
8933
|
|
8934 else
|
|
8935 echo "$ac_t""no" 1>&6
|
561
|
8936 echo "configure: warning: Could not find a 3d Athena widget library that looked like $athena_variant." 1>&2
|
434
|
8937 fi
|
|
8938
|
|
8939
|
|
8940 fi
|
|
8941
|
|
8942
|
|
8943 fi
|
|
8944
|
|
8945 if test "$athena_3d" = "no"; then
|
|
8946 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
8947 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
561
|
8948 echo "configure:8949: checking for X11/Xaw/ThreeD.h" >&5
|
|
8949
|
|
8950 cat > conftest.$ac_ext <<EOF
|
|
8951 #line 8952 "configure"
|
434
|
8952 #include "confdefs.h"
|
|
8953 #include <X11/Xaw/ThreeD.h>
|
|
8954 EOF
|
|
8955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8956 { (eval echo configure:8957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
8957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8958 if test -z "$ac_err"; then
|
|
8959 rm -rf conftest*
|
|
8960 eval "ac_cv_header_$ac_safe=yes"
|
|
8961 else
|
|
8962 echo "$ac_err" >&5
|
|
8963 echo "configure: failed program was:" >&5
|
|
8964 cat conftest.$ac_ext >&5
|
|
8965 rm -rf conftest*
|
|
8966 eval "ac_cv_header_$ac_safe=no"
|
|
8967 fi
|
|
8968 rm -f conftest*
|
|
8969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8970 echo "$ac_t""yes" 1>&6
|
|
8971 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
8972 else
|
|
8973 echo "$ac_t""no" 1>&6
|
|
8974 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
8975 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
|
561
|
8976 echo "configure:8977: checking for X11/Xaw/XawInit.h" >&5
|
|
8977
|
|
8978 cat > conftest.$ac_ext <<EOF
|
|
8979 #line 8980 "configure"
|
434
|
8980 #include "confdefs.h"
|
|
8981 #include <X11/Xaw/XawInit.h>
|
|
8982 EOF
|
|
8983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
8984 { (eval echo configure:8985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
8985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
8986 if test -z "$ac_err"; then
|
|
8987 rm -rf conftest*
|
|
8988 eval "ac_cv_header_$ac_safe=yes"
|
|
8989 else
|
|
8990 echo "$ac_err" >&5
|
|
8991 echo "configure: failed program was:" >&5
|
|
8992 cat conftest.$ac_ext >&5
|
|
8993 rm -rf conftest*
|
|
8994 eval "ac_cv_header_$ac_safe=no"
|
|
8995 fi
|
|
8996 rm -f conftest*
|
|
8997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
8998 echo "$ac_t""yes" 1>&6
|
|
8999 athena_h_path=X11/Xaw
|
|
9000 else
|
|
9001 echo "$ac_t""no" 1>&6
|
561
|
9002 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
|
434
|
9003 fi
|
|
9004
|
|
9005 fi
|
|
9006
|
|
9007 else
|
|
9008 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9009 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
|
561
|
9010 echo "configure:9011: checking for X11/$athena_variant/XawInit.h" >&5
|
|
9011
|
|
9012 cat > conftest.$ac_ext <<EOF
|
|
9013 #line 9014 "configure"
|
434
|
9014 #include "confdefs.h"
|
|
9015 #include <X11/$athena_variant/XawInit.h>
|
|
9016 EOF
|
|
9017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9018 { (eval echo configure:9019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9020 if test -z "$ac_err"; then
|
|
9021 rm -rf conftest*
|
|
9022 eval "ac_cv_header_$ac_safe=yes"
|
|
9023 else
|
|
9024 echo "$ac_err" >&5
|
|
9025 echo "configure: failed program was:" >&5
|
|
9026 cat conftest.$ac_ext >&5
|
|
9027 rm -rf conftest*
|
|
9028 eval "ac_cv_header_$ac_safe=no"
|
|
9029 fi
|
|
9030 rm -f conftest*
|
|
9031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9032 echo "$ac_t""yes" 1>&6
|
|
9033 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9034 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
|
561
|
9035 echo "configure:9036: checking for X11/$athena_variant/ThreeD.h" >&5
|
|
9036
|
|
9037 cat > conftest.$ac_ext <<EOF
|
|
9038 #line 9039 "configure"
|
434
|
9039 #include "confdefs.h"
|
|
9040 #include <X11/$athena_variant/ThreeD.h>
|
|
9041 EOF
|
|
9042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9043 { (eval echo configure:9044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9045 if test -z "$ac_err"; then
|
|
9046 rm -rf conftest*
|
|
9047 eval "ac_cv_header_$ac_safe=yes"
|
|
9048 else
|
|
9049 echo "$ac_err" >&5
|
|
9050 echo "configure: failed program was:" >&5
|
|
9051 cat conftest.$ac_ext >&5
|
|
9052 rm -rf conftest*
|
|
9053 eval "ac_cv_header_$ac_safe=no"
|
|
9054 fi
|
|
9055 rm -f conftest*
|
|
9056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9057 echo "$ac_t""yes" 1>&6
|
|
9058 athena_h_path=X11/$athena_variant
|
|
9059 else
|
|
9060 echo "$ac_t""no" 1>&6
|
|
9061 fi
|
|
9062
|
|
9063 else
|
|
9064 echo "$ac_t""no" 1>&6
|
|
9065 fi
|
|
9066
|
|
9067
|
440
|
9068 if test -z "$athena_h_path"; then
|
|
9069 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9070 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
|
561
|
9071 echo "configure:9072: checking for $athena_variant/XawInit.h" >&5
|
|
9072
|
|
9073 cat > conftest.$ac_ext <<EOF
|
|
9074 #line 9075 "configure"
|
440
|
9075 #include "confdefs.h"
|
|
9076 #include <$athena_variant/XawInit.h>
|
|
9077 EOF
|
|
9078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9079 { (eval echo configure:9080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9081 if test -z "$ac_err"; then
|
|
9082 rm -rf conftest*
|
|
9083 eval "ac_cv_header_$ac_safe=yes"
|
|
9084 else
|
|
9085 echo "$ac_err" >&5
|
|
9086 echo "configure: failed program was:" >&5
|
|
9087 cat conftest.$ac_ext >&5
|
|
9088 rm -rf conftest*
|
|
9089 eval "ac_cv_header_$ac_safe=no"
|
|
9090 fi
|
|
9091 rm -f conftest*
|
|
9092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9093 echo "$ac_t""yes" 1>&6
|
|
9094 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9095 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
|
561
|
9096 echo "configure:9097: checking for $athena_variant/ThreeD.h" >&5
|
|
9097
|
|
9098 cat > conftest.$ac_ext <<EOF
|
|
9099 #line 9100 "configure"
|
440
|
9100 #include "confdefs.h"
|
|
9101 #include <$athena_variant/ThreeD.h>
|
|
9102 EOF
|
|
9103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9104 { (eval echo configure:9105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9106 if test -z "$ac_err"; then
|
|
9107 rm -rf conftest*
|
|
9108 eval "ac_cv_header_$ac_safe=yes"
|
|
9109 else
|
|
9110 echo "$ac_err" >&5
|
|
9111 echo "configure: failed program was:" >&5
|
|
9112 cat conftest.$ac_ext >&5
|
|
9113 rm -rf conftest*
|
|
9114 eval "ac_cv_header_$ac_safe=no"
|
|
9115 fi
|
|
9116 rm -f conftest*
|
|
9117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9118 echo "$ac_t""yes" 1>&6
|
|
9119 athena_h_path=$athena_variant
|
|
9120 else
|
|
9121 echo "$ac_t""no" 1>&6
|
|
9122 fi
|
|
9123
|
|
9124 else
|
|
9125 echo "$ac_t""no" 1>&6
|
|
9126 fi
|
|
9127
|
|
9128 fi
|
|
9129
|
434
|
9130 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
9131 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9132 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
|
561
|
9133 echo "configure:9134: checking for X11/Xaw3d/XawInit.h" >&5
|
|
9134
|
|
9135 cat > conftest.$ac_ext <<EOF
|
|
9136 #line 9137 "configure"
|
434
|
9137 #include "confdefs.h"
|
|
9138 #include <X11/Xaw3d/XawInit.h>
|
|
9139 EOF
|
|
9140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9141 { (eval echo configure:9142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9143 if test -z "$ac_err"; then
|
|
9144 rm -rf conftest*
|
|
9145 eval "ac_cv_header_$ac_safe=yes"
|
|
9146 else
|
|
9147 echo "$ac_err" >&5
|
|
9148 echo "configure: failed program was:" >&5
|
|
9149 cat conftest.$ac_ext >&5
|
|
9150 rm -rf conftest*
|
|
9151 eval "ac_cv_header_$ac_safe=no"
|
|
9152 fi
|
|
9153 rm -f conftest*
|
|
9154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9155 echo "$ac_t""yes" 1>&6
|
|
9156 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9157 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
561
|
9158 echo "configure:9159: checking for X11/Xaw3d/ThreeD.h" >&5
|
|
9159
|
|
9160 cat > conftest.$ac_ext <<EOF
|
|
9161 #line 9162 "configure"
|
434
|
9162 #include "confdefs.h"
|
|
9163 #include <X11/Xaw3d/ThreeD.h>
|
|
9164 EOF
|
|
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9168 if test -z "$ac_err"; then
|
|
9169 rm -rf conftest*
|
|
9170 eval "ac_cv_header_$ac_safe=yes"
|
|
9171 else
|
|
9172 echo "$ac_err" >&5
|
|
9173 echo "configure: failed program was:" >&5
|
|
9174 cat conftest.$ac_ext >&5
|
|
9175 rm -rf conftest*
|
|
9176 eval "ac_cv_header_$ac_safe=no"
|
|
9177 fi
|
|
9178 rm -f conftest*
|
|
9179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9180 echo "$ac_t""yes" 1>&6
|
|
9181
|
561
|
9182 echo "configure: warning: Assuming that X11/Xaw3d headers are suitable for $athena_variant." 1>&2
|
434
|
9183 athena_h_path=X11/Xaw3d
|
|
9184
|
|
9185 else
|
|
9186 echo "$ac_t""no" 1>&6
|
|
9187 fi
|
|
9188
|
|
9189 else
|
|
9190 echo "$ac_t""no" 1>&6
|
|
9191 fi
|
|
9192
|
|
9193 fi
|
|
9194
|
440
|
9195 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
|
|
9196 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
|
|
9197 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
|
561
|
9198 echo "configure:9199: checking for Xaw3d/XawInit.h" >&5
|
|
9199
|
|
9200 cat > conftest.$ac_ext <<EOF
|
|
9201 #line 9202 "configure"
|
440
|
9202 #include "confdefs.h"
|
|
9203 #include <Xaw3d/XawInit.h>
|
|
9204 EOF
|
|
9205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9206 { (eval echo configure:9207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9208 if test -z "$ac_err"; then
|
|
9209 rm -rf conftest*
|
|
9210 eval "ac_cv_header_$ac_safe=yes"
|
|
9211 else
|
|
9212 echo "$ac_err" >&5
|
|
9213 echo "configure: failed program was:" >&5
|
|
9214 cat conftest.$ac_ext >&5
|
|
9215 rm -rf conftest*
|
|
9216 eval "ac_cv_header_$ac_safe=no"
|
|
9217 fi
|
|
9218 rm -f conftest*
|
|
9219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9220 echo "$ac_t""yes" 1>&6
|
|
9221 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9222 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
|
561
|
9223 echo "configure:9224: checking for Xaw3d/ThreeD.h" >&5
|
|
9224
|
|
9225 cat > conftest.$ac_ext <<EOF
|
|
9226 #line 9227 "configure"
|
440
|
9227 #include "confdefs.h"
|
|
9228 #include <Xaw3d/ThreeD.h>
|
|
9229 EOF
|
|
9230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9231 { (eval echo configure:9232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
440
|
9232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9233 if test -z "$ac_err"; then
|
|
9234 rm -rf conftest*
|
|
9235 eval "ac_cv_header_$ac_safe=yes"
|
|
9236 else
|
|
9237 echo "$ac_err" >&5
|
|
9238 echo "configure: failed program was:" >&5
|
|
9239 cat conftest.$ac_ext >&5
|
|
9240 rm -rf conftest*
|
|
9241 eval "ac_cv_header_$ac_safe=no"
|
|
9242 fi
|
|
9243 rm -f conftest*
|
|
9244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9245 echo "$ac_t""yes" 1>&6
|
|
9246
|
561
|
9247 echo "configure: warning: Assuming that Xaw3d headers are suitable for $athena_variant." 1>&2
|
440
|
9248 athena_h_path=Xaw3d
|
|
9249
|
|
9250 else
|
|
9251 echo "$ac_t""no" 1>&6
|
|
9252 fi
|
|
9253
|
|
9254 else
|
|
9255 echo "$ac_t""no" 1>&6
|
|
9256 fi
|
|
9257
|
|
9258 fi
|
|
9259
|
434
|
9260 if test -z "$athena_h_path"; then
|
|
9261 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
|
|
9262 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
|
561
|
9263 echo "configure:9264: checking for X11/Xaw/ThreeD.h" >&5
|
|
9264
|
|
9265 cat > conftest.$ac_ext <<EOF
|
|
9266 #line 9267 "configure"
|
434
|
9267 #include "confdefs.h"
|
|
9268 #include <X11/Xaw/ThreeD.h>
|
|
9269 EOF
|
|
9270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9271 { (eval echo configure:9272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
434
|
9272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
9273 if test -z "$ac_err"; then
|
|
9274 rm -rf conftest*
|
|
9275 eval "ac_cv_header_$ac_safe=yes"
|
|
9276 else
|
|
9277 echo "$ac_err" >&5
|
|
9278 echo "configure: failed program was:" >&5
|
|
9279 cat conftest.$ac_ext >&5
|
|
9280 rm -rf conftest*
|
|
9281 eval "ac_cv_header_$ac_safe=no"
|
|
9282 fi
|
|
9283 rm -f conftest*
|
|
9284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9285 echo "$ac_t""yes" 1>&6
|
|
9286
|
561
|
9287 echo "configure: warning: Assuming that X11/Xaw headers are suitable for $athena_variant." 1>&2
|
434
|
9288 athena_h_path=X11/Xaw
|
|
9289
|
|
9290 else
|
|
9291 echo "$ac_t""no" 1>&6
|
561
|
9292 echo "configure: warning: Could not find a suitable 3d Athena header set." 1>&2
|
434
|
9293 fi
|
|
9294
|
|
9295 fi
|
|
9296 fi
|
|
9297
|
|
9298 if test -n "$athena_lib" -a -n "$athena_h_path"; then
|
|
9299 have_xaw=yes
|
|
9300 else
|
|
9301 have_xaw=no
|
|
9302 fi
|
424
|
9303
|
193
|
9304 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
|
151
|
9305 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
|
561
|
9306 echo "configure:9307: checking for Xm/Xm.h" >&5
|
|
9307
|
|
9308 cat > conftest.$ac_ext <<EOF
|
|
9309 #line 9310 "configure"
|
151
|
9310 #include "confdefs.h"
|
|
9311 #include <Xm/Xm.h>
|
|
9312 EOF
|
|
9313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9314 { (eval echo configure:9315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
151
|
9316 if test -z "$ac_err"; then
|
|
9317 rm -rf conftest*
|
|
9318 eval "ac_cv_header_$ac_safe=yes"
|
|
9319 else
|
|
9320 echo "$ac_err" >&5
|
|
9321 echo "configure: failed program was:" >&5
|
|
9322 cat conftest.$ac_ext >&5
|
|
9323 rm -rf conftest*
|
|
9324 eval "ac_cv_header_$ac_safe=no"
|
|
9325 fi
|
|
9326 rm -f conftest*
|
|
9327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9328 echo "$ac_t""yes" 1>&6
|
|
9329
|
|
9330 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
|
561
|
9331 echo "configure:9332: checking for XmStringFree in -lXm" >&5
|
151
|
9332 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
|
|
9333
|
|
9334 xe_check_libs=" -lXm "
|
|
9335 cat > conftest.$ac_ext <<EOF
|
561
|
9336 #line 9337 "configure"
|
151
|
9337 #include "confdefs.h"
|
|
9338 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9339 /* We use char because int might match the return type of a gcc2
|
|
9340 builtin and then its argument prototype would still apply. */
|
|
9341 char XmStringFree();
|
|
9342
|
|
9343 int main() {
|
|
9344 XmStringFree()
|
|
9345 ; return 0; }
|
|
9346 EOF
|
561
|
9347 if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
151
|
9348 rm -rf conftest*
|
|
9349 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9350 else
|
|
9351 echo "configure: failed program was:" >&5
|
|
9352 cat conftest.$ac_ext >&5
|
|
9353 rm -rf conftest*
|
|
9354 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9355 fi
|
|
9356 rm -f conftest*
|
|
9357 xe_check_libs=""
|
|
9358
|
|
9359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9360 echo "$ac_t""yes" 1>&6
|
|
9361 have_motif=yes
|
|
9362 else
|
|
9363 echo "$ac_t""no" 1>&6
|
|
9364 have_motif=no
|
|
9365 fi
|
|
9366
|
|
9367
|
|
9368 else
|
|
9369 echo "$ac_t""no" 1>&6
|
|
9370 have_motif=no
|
|
9371 fi
|
|
9372
|
149
|
9373
|
272
|
9374 if test "$have_motif" = "yes"; then
|
|
9375 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
|
561
|
9376 echo "configure:9377: checking for Lesstif" >&5
|
272
|
9377 cat > conftest.$ac_ext <<EOF
|
561
|
9378 #line 9379 "configure"
|
272
|
9379 #include "confdefs.h"
|
|
9380 #include <Xm/Xm.h>
|
|
9381 #ifdef LESSTIF_VERSION
|
|
9382 yes
|
|
9383 #endif
|
|
9384
|
|
9385 EOF
|
|
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
9387 egrep "yes" >/dev/null 2>&1; then
|
|
9388 rm -rf conftest*
|
|
9389 have_lesstif=yes
|
|
9390 else
|
|
9391 rm -rf conftest*
|
|
9392 have_lesstif=no
|
|
9393 fi
|
|
9394 rm -f conftest*
|
|
9395
|
|
9396 echo "$ac_t""$have_lesstif" 1>&6
|
|
9397 fi
|
|
9398
|
193
|
9399 fi
|
149
|
9400
|
434
|
9401 case "$with_menubars" in "" | "yes" | "athena" )
|
149
|
9402 with_menubars="lucid" ;;
|
|
9403 esac
|
243
|
9404 case "$with_dialogs" in "" | "yes" | "lucid" )
|
434
|
9405 if test "$have_motif" = "yes"; then with_dialogs="motif"
|
|
9406 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
|
149
|
9407 else with_dialogs=no
|
|
9408 fi ;;
|
|
9409 esac
|
|
9410 case "$with_scrollbars" in "" | "yes" )
|
|
9411 with_scrollbars="lucid" ;;
|
|
9412 esac
|
424
|
9413 case "$with_widgets" in "" | "yes" | "lucid")
|
420
|
9414 if test "$have_motif" = "yes"; then with_widgets="motif"
|
424
|
9415 elif test "$have_xaw" = "yes"; then with_widgets="athena"
|
420
|
9416 else with_widgets=no
|
|
9417 fi ;;
|
|
9418 esac
|
|
9419
|
|
9420 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
|
412
|
9421
|
424
|
9422 case "$all_widgets" in
|
434
|
9423 *athena* )
|
|
9424 if test "$have_xaw" != "yes"; then
|
|
9425 { echo "Error:" "Could not find a suitable Athena library to build with." >&2; exit 1; }
|
|
9426 fi
|
|
9427
|
|
9428 lwlib_objs="$lwlib_objs lwlib-Xaw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xaw.o\" to \$lwlib_objs"; fi
|
|
9429
|
|
9430 libs_x="-l$athena_lib $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$athena_lib\" to \$libs_x"; fi
|
|
9431
|
442
|
9432 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9433 Defining ATHENA_Scrollbar_h_ = "$athena_h_path/Scrollbar.h"
|
|
9434 EOF
|
|
9435 cat >> confdefs.h <<EOF
|
|
9436 #define ATHENA_Scrollbar_h_ "$athena_h_path/Scrollbar.h"
|
|
9437 EOF
|
|
9438 }
|
|
9439
|
|
9440 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9441 Defining ATHENA_Dialog_h_ = "$athena_h_path/Dialog.h"
|
|
9442 EOF
|
|
9443 cat >> confdefs.h <<EOF
|
|
9444 #define ATHENA_Dialog_h_ "$athena_h_path/Dialog.h"
|
|
9445 EOF
|
|
9446 }
|
|
9447
|
|
9448 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9449 Defining ATHENA_Form_h_ = "$athena_h_path/Form.h"
|
|
9450 EOF
|
|
9451 cat >> confdefs.h <<EOF
|
|
9452 #define ATHENA_Form_h_ "$athena_h_path/Form.h"
|
|
9453 EOF
|
|
9454 }
|
|
9455
|
|
9456 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9457 Defining ATHENA_Command_h_ = "$athena_h_path/Command.h"
|
|
9458 EOF
|
|
9459 cat >> confdefs.h <<EOF
|
|
9460 #define ATHENA_Command_h_ "$athena_h_path/Command.h"
|
|
9461 EOF
|
|
9462 }
|
|
9463
|
|
9464 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9465 Defining ATHENA_Label_h_ = "$athena_h_path/Label.h"
|
|
9466 EOF
|
|
9467 cat >> confdefs.h <<EOF
|
|
9468 #define ATHENA_Label_h_ "$athena_h_path/Label.h"
|
|
9469 EOF
|
|
9470 }
|
|
9471
|
|
9472 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9473 Defining ATHENA_LabelP_h_ = "$athena_h_path/LabelP.h"
|
|
9474 EOF
|
|
9475 cat >> confdefs.h <<EOF
|
|
9476 #define ATHENA_LabelP_h_ "$athena_h_path/LabelP.h"
|
|
9477 EOF
|
|
9478 }
|
|
9479
|
|
9480 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9481 Defining ATHENA_Toggle_h_ = "$athena_h_path/Toggle.h"
|
|
9482 EOF
|
|
9483 cat >> confdefs.h <<EOF
|
|
9484 #define ATHENA_Toggle_h_ "$athena_h_path/Toggle.h"
|
|
9485 EOF
|
|
9486 }
|
|
9487
|
|
9488 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9489 Defining ATHENA_ToggleP_h_ = "$athena_h_path/ToggleP.h"
|
|
9490 EOF
|
|
9491 cat >> confdefs.h <<EOF
|
|
9492 #define ATHENA_ToggleP_h_ "$athena_h_path/ToggleP.h"
|
|
9493 EOF
|
|
9494 }
|
|
9495
|
|
9496 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9497 Defining ATHENA_AsciiText_h_ = "$athena_h_path/AsciiText.h"
|
|
9498 EOF
|
|
9499 cat >> confdefs.h <<EOF
|
|
9500 #define ATHENA_AsciiText_h_ "$athena_h_path/AsciiText.h"
|
|
9501 EOF
|
|
9502 }
|
|
9503
|
|
9504 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9505 Defining ATHENA_XawInit_h_ = "$athena_h_path/XawInit.h"
|
|
9506 EOF
|
|
9507 cat >> confdefs.h <<EOF
|
|
9508 #define ATHENA_XawInit_h_ "$athena_h_path/XawInit.h"
|
434
|
9509 EOF
|
|
9510 }
|
|
9511
|
|
9512
|
|
9513 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9514 Defining LWLIB_USES_ATHENA
|
|
9515 EOF
|
|
9516 cat >> confdefs.h <<\EOF
|
|
9517 #define LWLIB_USES_ATHENA 1
|
|
9518 EOF
|
|
9519 }
|
|
9520
|
434
|
9521 { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9522 Defining NEED_ATHENA
|
|
9523 EOF
|
|
9524 cat >> confdefs.h <<\EOF
|
|
9525 #define NEED_ATHENA 1
|
|
9526 EOF
|
|
9527 }
|
|
9528
|
442
|
9529 need_athena="yes"
|
434
|
9530
|
|
9531 if test "$athena_3d" = "yes"; then
|
|
9532 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9533 Defining HAVE_ATHENA_3D
|
|
9534 EOF
|
|
9535 cat >> confdefs.h <<\EOF
|
|
9536 #define HAVE_ATHENA_3D 1
|
|
9537 EOF
|
|
9538 }
|
|
9539
|
|
9540 fi
|
|
9541 ;;
|
149
|
9542 esac
|
|
9543
|
|
9544 case "$all_widgets" in *motif* )
|
|
9545 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9546 Defining LWLIB_USES_MOTIF
|
|
9547 EOF
|
|
9548 cat >> confdefs.h <<\EOF
|
|
9549 #define LWLIB_USES_MOTIF 1
|
|
9550 EOF
|
|
9551 }
|
|
9552
|
157
|
9553 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9554 Defining NEED_MOTIF
|
|
9555 EOF
|
|
9556 cat >> confdefs.h <<\EOF
|
|
9557 #define NEED_MOTIF 1
|
|
9558 EOF
|
|
9559 }
|
|
9560
|
|
9561 lwlib_objs="$lwlib_objs lwlib-Xm.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xm.o\" to \$lwlib_objs"; fi
|
149
|
9562 need_motif=yes ;;
|
70
|
9563 esac
|
|
9564
|
157
|
9565 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
|
9566 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
|
9567 test "$with_scrollbars" = "lucid" && lwlib_objs="$lwlib_objs xlwscrollbar.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwscrollbar.o\" to \$lwlib_objs"; fi
|
424
|
9568 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
9569 lwlib_objs="$lwlib_objs xlwtabs.o xlwgcs.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwtabs.o xlwgcs.o\" to \$lwlib_objs"; fi
|
|
9570 case "$with_widgets" in athena* )
|
|
9571 lwlib_objs="$lwlib_objs xlwradio.o xlwcheckbox.o xlwgauge.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"xlwradio.o xlwcheckbox.o xlwgauge.o\" to \$lwlib_objs"; fi;;
|
|
9572 esac
|
157
|
9573 case "$all_widgets" in *lucid* )
|
|
9574 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9575 Defining NEED_LUCID
|
|
9576 EOF
|
|
9577 cat >> confdefs.h <<\EOF
|
|
9578 #define NEED_LUCID 1
|
|
9579 EOF
|
|
9580 }
|
|
9581
|
|
9582 lwlib_objs="$lwlib_objs lwlib-Xlw.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib-Xlw.o\" to \$lwlib_objs"; fi ;;
|
|
9583 esac
|
|
9584
|
|
9585
|
|
9586
|
434
|
9587 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9588 Defining LWLIB_SCROLLBARS_ATHENA
|
|
9589 EOF
|
|
9590 cat >> confdefs.h <<\EOF
|
|
9591 #define LWLIB_SCROLLBARS_ATHENA 1
|
|
9592 EOF
|
|
9593 }
|
434
|
9594
|
|
9595 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9596 Defining LWLIB_DIALOGS_ATHENA
|
|
9597 EOF
|
|
9598 cat >> confdefs.h <<\EOF
|
|
9599 #define LWLIB_DIALOGS_ATHENA 1
|
|
9600 EOF
|
|
9601 }
|
434
|
9602
|
|
9603
|
|
9604 if test "$athena_3d" = "yes"; then
|
|
9605 test "$with_scrollbars" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9606 Defining LWLIB_SCROLLBARS_ATHENA3D
|
|
9607 EOF
|
|
9608 cat >> confdefs.h <<\EOF
|
|
9609 #define LWLIB_SCROLLBARS_ATHENA3D 1
|
|
9610 EOF
|
|
9611 }
|
|
9612
|
434
|
9613 test "$with_dialogs" = "athena" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
9614 Defining LWLIB_DIALOGS_ATHENA3D
|
|
9615 EOF
|
|
9616 cat >> confdefs.h <<\EOF
|
|
9617 #define LWLIB_DIALOGS_ATHENA3D 1
|
|
9618 EOF
|
|
9619 }
|
|
9620
|
434
|
9621 fi
|
|
9622
|
424
|
9623 case "$with_widgets" in athena* ) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9624 Defining LWLIB_WIDGETS_ATHENA
|
|
9625 EOF
|
|
9626 cat >> confdefs.h <<\EOF
|
|
9627 #define LWLIB_WIDGETS_ATHENA 1
|
|
9628 EOF
|
|
9629 }
|
|
9630 ;; esac
|
|
9631 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
|
|
9632 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9633 Defining LWLIB_TABS_LUCID
|
|
9634 EOF
|
|
9635 cat >> confdefs.h <<\EOF
|
|
9636 #define LWLIB_TABS_LUCID 1
|
|
9637 EOF
|
|
9638 }
|
|
9639
|
149
|
9640
|
|
9641 test "$with_menubars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9642 Defining HAVE_MENUBARS
|
|
9643 EOF
|
|
9644 cat >> confdefs.h <<\EOF
|
|
9645 #define HAVE_MENUBARS 1
|
|
9646 EOF
|
|
9647 }
|
|
9648
|
|
9649 test "$with_scrollbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9650 Defining HAVE_SCROLLBARS
|
|
9651 EOF
|
|
9652 cat >> confdefs.h <<\EOF
|
|
9653 #define HAVE_SCROLLBARS 1
|
|
9654 EOF
|
|
9655 }
|
|
9656
|
|
9657 test "$with_dialogs" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9658 Defining HAVE_DIALOGS
|
|
9659 EOF
|
|
9660 cat >> confdefs.h <<\EOF
|
|
9661 #define HAVE_DIALOGS 1
|
|
9662 EOF
|
|
9663 }
|
|
9664
|
|
9665 test "$with_toolbars" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9666 Defining HAVE_TOOLBARS
|
|
9667 EOF
|
|
9668 cat >> confdefs.h <<\EOF
|
|
9669 #define HAVE_TOOLBARS 1
|
|
9670 EOF
|
|
9671 }
|
|
9672
|
440
|
9673 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
|
424
|
9674 Defining HAVE_WIDGETS
|
|
9675 EOF
|
|
9676 cat >> confdefs.h <<\EOF
|
|
9677 #define HAVE_WIDGETS 1
|
|
9678 EOF
|
|
9679 }
|
|
9680
|
149
|
9681
|
|
9682 test "$with_menubars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9683 Defining LWLIB_MENUBARS_LUCID
|
|
9684 EOF
|
|
9685 cat >> confdefs.h <<\EOF
|
|
9686 #define LWLIB_MENUBARS_LUCID 1
|
|
9687 EOF
|
|
9688 }
|
|
9689
|
|
9690 test "$with_scrollbars" = "lucid" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9691 Defining LWLIB_SCROLLBARS_LUCID
|
|
9692 EOF
|
|
9693 cat >> confdefs.h <<\EOF
|
|
9694 #define LWLIB_SCROLLBARS_LUCID 1
|
|
9695 EOF
|
|
9696 }
|
|
9697
|
|
9698
|
|
9699 test "$with_menubars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9700 Defining LWLIB_MENUBARS_MOTIF
|
|
9701 EOF
|
|
9702 cat >> confdefs.h <<\EOF
|
|
9703 #define LWLIB_MENUBARS_MOTIF 1
|
|
9704 EOF
|
|
9705 }
|
|
9706
|
|
9707 test "$with_scrollbars" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9708 Defining LWLIB_SCROLLBARS_MOTIF
|
|
9709 EOF
|
|
9710 cat >> confdefs.h <<\EOF
|
|
9711 #define LWLIB_SCROLLBARS_MOTIF 1
|
|
9712 EOF
|
|
9713 }
|
|
9714
|
|
9715 test "$with_dialogs" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9716 Defining LWLIB_DIALOGS_MOTIF
|
|
9717 EOF
|
|
9718 cat >> confdefs.h <<\EOF
|
|
9719 #define LWLIB_DIALOGS_MOTIF 1
|
|
9720 EOF
|
|
9721 }
|
|
9722
|
424
|
9723 test "$with_widgets" = "motif" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9724 Defining LWLIB_WIDGETS_MOTIF
|
|
9725 EOF
|
|
9726 cat >> confdefs.h <<\EOF
|
|
9727 #define LWLIB_WIDGETS_MOTIF 1
|
|
9728 EOF
|
|
9729 }
|
|
9730
|
412
|
9731
|
440
|
9732 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9733 echo " xemacs will be linked with \"menubar.o\""
|
|
9734 fi
|
440
|
9735 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9736 echo " xemacs will be linked with \"scrollbar.o\""
|
|
9737 fi
|
440
|
9738 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9739 echo " xemacs will be linked with \"dialog.o\""
|
|
9740 fi
|
440
|
9741 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9742 echo " xemacs will be linked with \"toolbar.o\""
|
|
9743 fi
|
149
|
9744
|
462
|
9745 if test "$with_gtk" = "yes"; then
|
|
9746 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
9747 echo " xemacs will be linked with \"menubar-gtk.o\""
|
|
9748 fi
|
|
9749 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
9750 echo " xemacs will be linked with \"scrollbar-gtk.o\""
|
|
9751 fi
|
|
9752 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
9753 echo " xemacs will be linked with \"dialog-gtk.o\""
|
|
9754 fi
|
|
9755 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
9756 echo " xemacs will be linked with \"toolbar-gtk.o\""
|
|
9757 fi
|
|
9758 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
|
|
9759 echo " xemacs will be linked with \"gui-gtk.o\""
|
|
9760 fi
|
|
9761 fi
|
|
9762
|
149
|
9763 if test "$with_x11" = "yes"; then
|
440
|
9764 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9765 echo " xemacs will be linked with \"menubar-x.o\""
|
|
9766 fi
|
440
|
9767 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9768 echo " xemacs will be linked with \"scrollbar-x.o\""
|
|
9769 fi
|
440
|
9770 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9771 echo " xemacs will be linked with \"dialog-x.o\""
|
|
9772 fi
|
440
|
9773 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9774 echo " xemacs will be linked with \"toolbar-x.o\""
|
|
9775 fi
|
420
|
9776 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
|
151
|
9777 echo " xemacs will be linked with \"gui-x.o\""
|
|
9778 fi
|
398
|
9779 fi
|
272
|
9780
|
|
9781
|
|
9782 test -z "$with_mule" && with_mule=no
|
561
|
9783
|
|
9784
|
|
9785 if test "$with_file_coding" = "no" && test "$with_mule" = "yes"; then
|
|
9786 echo "configure: warning: --with-file-coding forced to \`yes': Required for Mule support" 1>&2
|
|
9787 with_file_coding=yes
|
|
9788 fi
|
259
|
9789
|
|
9790 if test "$with_file_coding" = "yes" && test "$with_mule" = "no"; then
|
251
|
9791 { test "$extra_verbose" = "yes" && cat << \EOF
|
259
|
9792 Defining FILE_CODING
|
|
9793 EOF
|
|
9794 cat >> confdefs.h <<\EOF
|
|
9795 #define FILE_CODING 1
|
|
9796 EOF
|
|
9797 }
|
|
9798
|
|
9799 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
9800 echo " xemacs will be linked with \"file-coding.o\""
|
251
|
9801 fi
|
|
9802 fi
|
207
|
9803
|
149
|
9804 if test "$with_mule" = "yes" ; then
|
151
|
9805 echo "checking for Mule-related features" 1>&6
|
561
|
9806 echo "configure:9807: checking for Mule-related features" >&5
|
149
|
9807 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
9808 Defining MULE
|
|
9809 EOF
|
|
9810 cat >> confdefs.h <<\EOF
|
|
9811 #define MULE 1
|
|
9812 EOF
|
|
9813 }
|
|
9814
|
251
|
9815 { test "$extra_verbose" = "yes" && cat << \EOF
|
259
|
9816 Defining FILE_CODING
|
|
9817 EOF
|
|
9818 cat >> confdefs.h <<\EOF
|
|
9819 #define FILE_CODING 1
|
|
9820 EOF
|
|
9821 }
|
|
9822
|
398
|
9823 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o file-coding.o" && if test "$extra_verbose" = "yes"; then
|
|
9824 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o file-coding.o\""
|
151
|
9825 fi
|
149
|
9826
|
155
|
9827 for ac_hdr in libintl.h
|
|
9828 do
|
|
9829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
9830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
9831 echo "configure:9832: checking for $ac_hdr" >&5
|
|
9832
|
|
9833 cat > conftest.$ac_ext <<EOF
|
|
9834 #line 9835 "configure"
|
155
|
9835 #include "confdefs.h"
|
|
9836 #include <$ac_hdr>
|
|
9837 EOF
|
|
9838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
9839 { (eval echo configure:9840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
9840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
9841 if test -z "$ac_err"; then
|
|
9842 rm -rf conftest*
|
|
9843 eval "ac_cv_header_$ac_safe=yes"
|
|
9844 else
|
|
9845 echo "$ac_err" >&5
|
|
9846 echo "configure: failed program was:" >&5
|
|
9847 cat conftest.$ac_ext >&5
|
|
9848 rm -rf conftest*
|
|
9849 eval "ac_cv_header_$ac_safe=no"
|
|
9850 fi
|
|
9851 rm -f conftest*
|
|
9852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
9853 echo "$ac_t""yes" 1>&6
|
|
9854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
9855 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9856 Defining $ac_tr_hdr
|
|
9857 EOF
|
|
9858 cat >> confdefs.h <<EOF
|
|
9859 #define $ac_tr_hdr 1
|
|
9860 EOF
|
|
9861 }
|
|
9862
|
|
9863 else
|
|
9864 echo "$ac_t""no" 1>&6
|
|
9865 fi
|
|
9866 done
|
|
9867
|
|
9868
|
149
|
9869 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
|
561
|
9870 echo "configure:9871: checking for strerror in -lintl" >&5
|
149
|
9871 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
|
|
9872
|
|
9873 xe_check_libs=" -lintl "
|
|
9874 cat > conftest.$ac_ext <<EOF
|
561
|
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 strerror();
|
|
9881
|
|
9882 int main() {
|
|
9883 strerror()
|
|
9884 ; return 0; }
|
|
9885 EOF
|
561
|
9886 if { (eval echo configure:9887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
9901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
9902 { test "$extra_verbose" = "yes" && cat << EOF
|
|
9903 Defining $ac_tr_lib
|
|
9904 EOF
|
|
9905 cat >> confdefs.h <<EOF
|
|
9906 #define $ac_tr_lib 1
|
|
9907 EOF
|
|
9908 }
|
|
9909
|
151
|
9910 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi
|
149
|
9911
|
|
9912 else
|
|
9913 echo "$ac_t""no" 1>&6
|
|
9914 fi
|
|
9915
|
|
9916
|
|
9917
|
|
9918 echo "checking for Mule input methods" 1>&6
|
561
|
9919 echo "configure:9920: checking for Mule input methods" >&5
|
272
|
9920 case "$with_xim" in "" | "yes" )
|
149
|
9921 echo "checking for XIM" 1>&6
|
561
|
9922 echo "configure:9923: checking for XIM" >&5
|
392
|
9923
|
|
9924 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
|
561
|
9925 echo "configure:9926: checking for XOpenIM in -lX11" >&5
|
392
|
9926 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
|
|
9927
|
|
9928 xe_check_libs=" -lX11 "
|
|
9929 cat > conftest.$ac_ext <<EOF
|
561
|
9930 #line 9931 "configure"
|
392
|
9931 #include "confdefs.h"
|
|
9932 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9933 /* We use char because int might match the return type of a gcc2
|
|
9934 builtin and then its argument prototype would still apply. */
|
|
9935 char XOpenIM();
|
|
9936
|
|
9937 int main() {
|
|
9938 XOpenIM()
|
|
9939 ; return 0; }
|
|
9940 EOF
|
561
|
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
392
|
9942 rm -rf conftest*
|
|
9943 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9944 else
|
|
9945 echo "configure: failed program was:" >&5
|
|
9946 cat conftest.$ac_ext >&5
|
|
9947 rm -rf conftest*
|
|
9948 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9949 fi
|
|
9950 rm -f conftest*
|
|
9951 xe_check_libs=""
|
|
9952
|
|
9953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
9954 echo "$ac_t""yes" 1>&6
|
|
9955 with_xim=xlib
|
|
9956 else
|
|
9957 echo "$ac_t""no" 1>&6
|
|
9958 with_xim=no
|
|
9959 fi
|
|
9960
|
|
9961
|
|
9962 if test "$have_motif $have_lesstif" = "yes no"; then
|
|
9963
|
149
|
9964 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
|
561
|
9965 echo "configure:9966: checking for XmImMbLookupString in -lXm" >&5
|
149
|
9966 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
|
|
9967
|
|
9968 xe_check_libs=" -lXm "
|
|
9969 cat > conftest.$ac_ext <<EOF
|
561
|
9970 #line 9971 "configure"
|
149
|
9971 #include "confdefs.h"
|
|
9972 /* Override any gcc2 internal prototype to avoid an error. */
|
|
9973 /* We use char because int might match the return type of a gcc2
|
|
9974 builtin and then its argument prototype would still apply. */
|
|
9975 char XmImMbLookupString();
|
|
9976
|
|
9977 int main() {
|
|
9978 XmImMbLookupString()
|
|
9979 ; return 0; }
|
|
9980 EOF
|
561
|
9981 if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
9982 rm -rf conftest*
|
|
9983 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
9984 else
|
|
9985 echo "configure: failed program was:" >&5
|
|
9986 cat conftest.$ac_ext >&5
|
|
9987 rm -rf conftest*
|
|
9988 eval "ac_cv_lib_$ac_lib_var=no"
|
|
9989 fi
|
|
9990 rm -f conftest*
|
|
9991 xe_check_libs=""
|
|
9992
|
151
|
9993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
9994 echo "$ac_t""yes" 1>&6
|
|
9995 with_xim=motif
|
|
9996 else
|
|
9997 echo "$ac_t""no" 1>&6
|
392
|
9998 fi
|
|
9999
|
|
10000
|
|
10001 fi ;;
|
149
|
10002 esac
|
272
|
10003 if test "$with_xim" != "no"; then
|
149
|
10004 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10005 Defining HAVE_XIM
|
|
10006 EOF
|
|
10007 cat >> confdefs.h <<\EOF
|
|
10008 #define HAVE_XIM 1
|
|
10009 EOF
|
|
10010 }
|
|
10011
|
|
10012 if test "$with_xim" = "xlib"; then
|
|
10013 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10014 Defining XIM_XLIB
|
|
10015 EOF
|
|
10016 cat >> confdefs.h <<\EOF
|
|
10017 #define XIM_XLIB 1
|
|
10018 EOF
|
|
10019 }
|
|
10020
|
151
|
10021 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
10022 echo " xemacs will be linked with \"input-method-xlib.o\""
|
|
10023 fi
|
|
10024 fi
|
149
|
10025 if test "$with_xim" = "motif"; then
|
|
10026 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10027 Defining XIM_MOTIF
|
|
10028 EOF
|
|
10029 cat >> confdefs.h <<\EOF
|
|
10030 #define XIM_MOTIF 1
|
|
10031 EOF
|
|
10032 }
|
|
10033
|
|
10034 need_motif=yes
|
151
|
10035 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then
|
|
10036 echo " xemacs will be linked with \"input-method-motif.o\""
|
|
10037 fi
|
149
|
10038 fi
|
215
|
10039 if test "$with_xim" = "motif"; then
|
177
|
10040 with_xfs=no
|
|
10041 fi
|
215
|
10042 fi
|
|
10043
|
|
10044 if test "$with_xfs" = "yes" ; then
|
|
10045 echo "checking for XFontSet" 1>&6
|
561
|
10046 echo "configure:10047: checking for XFontSet" >&5
|
215
|
10047
|
177
|
10048 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
|
561
|
10049 echo "configure:10050: checking for XmbDrawString in -lX11" >&5
|
177
|
10050 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
|
|
10051
|
|
10052 xe_check_libs=" -lX11 "
|
|
10053 cat > conftest.$ac_ext <<EOF
|
561
|
10054 #line 10055 "configure"
|
177
|
10055 #include "confdefs.h"
|
|
10056 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10057 /* We use char because int might match the return type of a gcc2
|
|
10058 builtin and then its argument prototype would still apply. */
|
|
10059 char XmbDrawString();
|
|
10060
|
|
10061 int main() {
|
|
10062 XmbDrawString()
|
|
10063 ; return 0; }
|
|
10064 EOF
|
561
|
10065 if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
177
|
10066 rm -rf conftest*
|
|
10067 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10068 else
|
|
10069 echo "configure: failed program was:" >&5
|
|
10070 cat conftest.$ac_ext >&5
|
|
10071 rm -rf conftest*
|
|
10072 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10073 fi
|
|
10074 rm -f conftest*
|
|
10075 xe_check_libs=""
|
|
10076
|
|
10077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10078 echo "$ac_t""yes" 1>&6
|
|
10079 :
|
|
10080 else
|
|
10081 echo "$ac_t""no" 1>&6
|
|
10082 with_xfs=no
|
|
10083 fi
|
|
10084
|
|
10085
|
|
10086 if test "$with_xfs" = "yes" && test "$with_menubars" = "lucid"; then
|
|
10087 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10088 Defining USE_XFONTSET
|
|
10089 EOF
|
|
10090 cat >> confdefs.h <<\EOF
|
|
10091 #define USE_XFONTSET 1
|
|
10092 EOF
|
|
10093 }
|
|
10094
|
215
|
10095 if test "$with_xim" = "no" ; then
|
450
|
10096 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then
|
|
10097 echo " xemacs will be linked with \"input-method-xlib.o\""
|
177
|
10098 fi
|
215
|
10099 fi
|
177
|
10100 fi
|
151
|
10101 fi
|
149
|
10102 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
|
151
|
10103 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
|
|
10104 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
|
561
|
10105 echo "configure:10106: checking for wnn/jllib.h" >&5
|
|
10106
|
|
10107 cat > conftest.$ac_ext <<EOF
|
|
10108 #line 10109 "configure"
|
151
|
10109 #include "confdefs.h"
|
|
10110 #include <wnn/jllib.h>
|
149
|
10111 EOF
|
|
10112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
10113 { (eval echo configure:10114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
458
|
10114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
10115 if test -z "$ac_err"; then
|
|
10116 rm -rf conftest*
|
|
10117 eval "ac_cv_header_$ac_safe=yes"
|
|
10118 else
|
|
10119 echo "$ac_err" >&5
|
|
10120 echo "configure: failed program was:" >&5
|
|
10121 cat conftest.$ac_ext >&5
|
|
10122 rm -rf conftest*
|
|
10123 eval "ac_cv_header_$ac_safe=no"
|
|
10124 fi
|
|
10125 rm -f conftest*
|
|
10126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10127 echo "$ac_t""yes" 1>&6
|
|
10128 :
|
|
10129 else
|
|
10130 echo "$ac_t""no" 1>&6
|
|
10131 with_wnn=no
|
|
10132 fi
|
|
10133 }
|
|
10134 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
|
|
10135 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
|
561
|
10136 echo "configure:10137: checking for wnn/commonhd.h" >&5
|
|
10137
|
|
10138 cat > conftest.$ac_ext <<EOF
|
|
10139 #line 10140 "configure"
|
458
|
10140 #include "confdefs.h"
|
|
10141 #include <wnn/commonhd.h>
|
|
10142 EOF
|
|
10143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
10144 { (eval echo configure:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
10146 if test -z "$ac_err"; then
|
|
10147 rm -rf conftest*
|
|
10148 eval "ac_cv_header_$ac_safe=yes"
|
|
10149 else
|
|
10150 echo "$ac_err" >&5
|
|
10151 echo "configure: failed program was:" >&5
|
|
10152 cat conftest.$ac_ext >&5
|
|
10153 rm -rf conftest*
|
|
10154 eval "ac_cv_header_$ac_safe=no"
|
|
10155 fi
|
|
10156 rm -f conftest*
|
|
10157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10158 echo "$ac_t""yes" 1>&6
|
|
10159 :
|
|
10160 else
|
|
10161 echo "$ac_t""no" 1>&6
|
|
10162 with_wnn=no
|
|
10163 fi
|
|
10164 }
|
167
|
10165 if test "$with_wnn" != "no"; then
|
|
10166 for ac_func in crypt
|
|
10167 do
|
|
10168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
10169 echo "configure:10170: checking for $ac_func" >&5
|
|
10170
|
|
10171 cat > conftest.$ac_ext <<EOF
|
|
10172 #line 10173 "configure"
|
167
|
10173 #include "confdefs.h"
|
|
10174 /* System header to define __stub macros and hopefully few prototypes,
|
|
10175 which can conflict with char $ac_func(); below. */
|
|
10176 #include <assert.h>
|
|
10177 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10178 /* We use char because int might match the return type of a gcc2
|
|
10179 builtin and then its argument prototype would still apply. */
|
|
10180 char $ac_func();
|
|
10181
|
|
10182 int main() {
|
|
10183
|
|
10184 /* The GNU C library defines this for functions which it implements
|
|
10185 to always fail with ENOSYS. Some functions are actually named
|
|
10186 something starting with __ and the normal name is an alias. */
|
|
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10188 choke me
|
|
10189 #else
|
|
10190 $ac_func();
|
|
10191 #endif
|
|
10192
|
|
10193 ; return 0; }
|
|
10194 EOF
|
561
|
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
10196 rm -rf conftest*
|
|
10197 eval "ac_cv_func_$ac_func=yes"
|
|
10198 else
|
|
10199 echo "configure: failed program was:" >&5
|
|
10200 cat conftest.$ac_ext >&5
|
|
10201 rm -rf conftest*
|
|
10202 eval "ac_cv_func_$ac_func=no"
|
|
10203 fi
|
|
10204 rm -f conftest*
|
|
10205
|
|
10206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10207 echo "$ac_t""yes" 1>&6
|
|
10208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10209 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10210 Defining $ac_tr_func
|
|
10211 EOF
|
|
10212 cat >> confdefs.h <<EOF
|
|
10213 #define $ac_tr_func 1
|
|
10214 EOF
|
|
10215 }
|
|
10216
|
|
10217 else
|
|
10218 echo "$ac_t""no" 1>&6
|
|
10219 fi
|
|
10220 done
|
|
10221
|
|
10222 test "$ac_cv_func_crypt" != "yes" && {
|
|
10223 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
561
|
10224 echo "configure:10225: checking for crypt in -lcrypt" >&5
|
167
|
10225 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
|
10226
|
|
10227 xe_check_libs=" -lcrypt "
|
|
10228 cat > conftest.$ac_ext <<EOF
|
561
|
10229 #line 10230 "configure"
|
167
|
10230 #include "confdefs.h"
|
|
10231 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10232 /* We use char because int might match the return type of a gcc2
|
|
10233 builtin and then its argument prototype would still apply. */
|
|
10234 char crypt();
|
|
10235
|
|
10236 int main() {
|
|
10237 crypt()
|
|
10238 ; return 0; }
|
|
10239 EOF
|
561
|
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
167
|
10241 rm -rf conftest*
|
|
10242 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10243 else
|
|
10244 echo "configure: failed program was:" >&5
|
|
10245 cat conftest.$ac_ext >&5
|
|
10246 rm -rf conftest*
|
|
10247 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10248 fi
|
|
10249 rm -f conftest*
|
|
10250 xe_check_libs=""
|
|
10251
|
|
10252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10253 echo "$ac_t""yes" 1>&6
|
|
10254 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
10255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
10256 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10257 Defining $ac_tr_lib
|
|
10258 EOF
|
|
10259 cat >> confdefs.h <<EOF
|
|
10260 #define $ac_tr_lib 1
|
|
10261 EOF
|
|
10262 }
|
|
10263
|
|
10264 LIBS="-lcrypt $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcrypt\" to \$LIBS"; fi
|
|
10265
|
|
10266 else
|
|
10267 echo "$ac_t""no" 1>&6
|
|
10268 fi
|
|
10269
|
|
10270 }
|
|
10271 fi
|
377
|
10272 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
|
|
10273
|
159
|
10274 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
|
561
|
10275 echo "configure:10276: checking for jl_dic_list_e in -lwnn" >&5
|
155
|
10276 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
149
|
10277
|
159
|
10278 xe_check_libs=" -lwnn "
|
|
10279 cat > conftest.$ac_ext <<EOF
|
561
|
10280 #line 10281 "configure"
|
149
|
10281 #include "confdefs.h"
|
|
10282 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10283 /* We use char because int might match the return type of a gcc2
|
|
10284 builtin and then its argument prototype would still apply. */
|
155
|
10285 char jl_dic_list_e();
|
149
|
10286
|
|
10287 int main() {
|
155
|
10288 jl_dic_list_e()
|
149
|
10289 ; return 0; }
|
|
10290 EOF
|
561
|
10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10292 rm -rf conftest*
|
|
10293 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10294 else
|
|
10295 echo "configure: failed program was:" >&5
|
|
10296 cat conftest.$ac_ext >&5
|
|
10297 rm -rf conftest*
|
|
10298 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10299 fi
|
|
10300 rm -f conftest*
|
|
10301 xe_check_libs=""
|
|
10302
|
|
10303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10304 echo "$ac_t""yes" 1>&6
|
|
10305 libwnn=wnn
|
|
10306 else
|
|
10307 echo "$ac_t""no" 1>&6
|
|
10308 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
|
561
|
10309 echo "configure:10310: checking for jl_dic_list_e in -lwnn4" >&5
|
377
|
10310 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
10311
|
|
10312 xe_check_libs=" -lwnn4 "
|
|
10313 cat > conftest.$ac_ext <<EOF
|
561
|
10314 #line 10315 "configure"
|
377
|
10315 #include "confdefs.h"
|
|
10316 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10317 /* We use char because int might match the return type of a gcc2
|
|
10318 builtin and then its argument prototype would still apply. */
|
|
10319 char jl_dic_list_e();
|
|
10320
|
|
10321 int main() {
|
|
10322 jl_dic_list_e()
|
|
10323 ; return 0; }
|
|
10324 EOF
|
561
|
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10326 rm -rf conftest*
|
|
10327 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10328 else
|
|
10329 echo "configure: failed program was:" >&5
|
|
10330 cat conftest.$ac_ext >&5
|
|
10331 rm -rf conftest*
|
|
10332 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10333 fi
|
|
10334 rm -f conftest*
|
|
10335 xe_check_libs=""
|
|
10336
|
151
|
10337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10338 echo "$ac_t""yes" 1>&6
|
377
|
10339 libwnn=wnn4
|
|
10340 else
|
|
10341 echo "$ac_t""no" 1>&6
|
|
10342 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
|
561
|
10343 echo "configure:10344: checking for jl_dic_list_e in -lwnn6" >&5
|
377
|
10344 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
|
|
10345
|
|
10346 xe_check_libs=" -lwnn6 "
|
|
10347 cat > conftest.$ac_ext <<EOF
|
561
|
10348 #line 10349 "configure"
|
377
|
10349 #include "confdefs.h"
|
|
10350 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10351 /* We use char because int might match the return type of a gcc2
|
|
10352 builtin and then its argument prototype would still apply. */
|
|
10353 char jl_dic_list_e();
|
|
10354
|
|
10355 int main() {
|
|
10356 jl_dic_list_e()
|
|
10357 ; return 0; }
|
|
10358 EOF
|
561
|
10359 if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10360 rm -rf conftest*
|
|
10361 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10362 else
|
|
10363 echo "configure: failed program was:" >&5
|
|
10364 cat conftest.$ac_ext >&5
|
|
10365 rm -rf conftest*
|
|
10366 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10367 fi
|
|
10368 rm -f conftest*
|
|
10369 xe_check_libs=""
|
|
10370
|
|
10371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10372 echo "$ac_t""yes" 1>&6
|
|
10373 libwnn=wnn6
|
|
10374 else
|
|
10375 echo "$ac_t""no" 1>&6
|
|
10376 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
|
561
|
10377 echo "configure:10378: checking for dic_list_e in -lwnn6_fromsrc" >&5
|
377
|
10378 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
|
|
10379
|
|
10380 xe_check_libs=" -lwnn6_fromsrc "
|
|
10381 cat > conftest.$ac_ext <<EOF
|
561
|
10382 #line 10383 "configure"
|
377
|
10383 #include "confdefs.h"
|
|
10384 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10385 /* We use char because int might match the return type of a gcc2
|
|
10386 builtin and then its argument prototype would still apply. */
|
|
10387 char dic_list_e();
|
|
10388
|
|
10389 int main() {
|
|
10390 dic_list_e()
|
|
10391 ; return 0; }
|
|
10392 EOF
|
561
|
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
377
|
10394 rm -rf conftest*
|
|
10395 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10396 else
|
|
10397 echo "configure: failed program was:" >&5
|
|
10398 cat conftest.$ac_ext >&5
|
|
10399 rm -rf conftest*
|
|
10400 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10401 fi
|
|
10402 rm -f conftest*
|
|
10403 xe_check_libs=""
|
|
10404
|
|
10405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10406 echo "$ac_t""yes" 1>&6
|
|
10407 libwnn=wnn6_fromsrc
|
159
|
10408 else
|
|
10409 echo "$ac_t""no" 1>&6
|
|
10410 with_wnn=no
|
149
|
10411 fi
|
|
10412
|
377
|
10413
|
|
10414 fi
|
|
10415
|
|
10416
|
|
10417 fi
|
|
10418
|
|
10419
|
|
10420 fi
|
|
10421
|
|
10422
|
|
10423 fi
|
149
|
10424 test -z "$with_wnn" && with_wnn=yes
|
|
10425 if test "$with_wnn" = "yes"; then
|
|
10426 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10427 Defining HAVE_WNN
|
|
10428 EOF
|
|
10429 cat >> confdefs.h <<\EOF
|
|
10430 #define HAVE_WNN 1
|
|
10431 EOF
|
|
10432 }
|
|
10433
|
377
|
10434 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
|
151
|
10435 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
|
|
10436 echo " xemacs will be linked with \"mule-wnnfns.o\""
|
|
10437 fi
|
284
|
10438 if test "$with_wnn6" != "no"; then
|
|
10439
|
377
|
10440 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
|
561
|
10441 echo "configure:10442: checking for jl_fi_dic_list in -l$libwnn" >&5
|
377
|
10442 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
|
|
10443
|
|
10444 xe_check_libs=" -l$libwnn "
|
|
10445 cat > conftest.$ac_ext <<EOF
|
561
|
10446 #line 10447 "configure"
|
149
|
10447 #include "confdefs.h"
|
|
10448 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10449 /* We use char because int might match the return type of a gcc2
|
|
10450 builtin and then its argument prototype would still apply. */
|
|
10451 char jl_fi_dic_list();
|
|
10452
|
|
10453 int main() {
|
|
10454 jl_fi_dic_list()
|
|
10455 ; return 0; }
|
|
10456 EOF
|
561
|
10457 if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10458 rm -rf conftest*
|
|
10459 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10460 else
|
|
10461 echo "configure: failed program was:" >&5
|
|
10462 cat conftest.$ac_ext >&5
|
|
10463 rm -rf conftest*
|
|
10464 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10465 fi
|
|
10466 rm -f conftest*
|
|
10467 xe_check_libs=""
|
|
10468
|
151
|
10469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10470 echo "$ac_t""yes" 1>&6
|
|
10471 with_wnn6=yes
|
|
10472 else
|
|
10473 echo "$ac_t""no" 1>&6
|
|
10474 fi
|
|
10475
|
|
10476
|
284
|
10477 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
151
|
10478 Defining WNN6
|
|
10479 EOF
|
|
10480 cat >> confdefs.h <<\EOF
|
|
10481 #define WNN6 1
|
|
10482 EOF
|
|
10483 }
|
|
10484
|
284
|
10485 fi
|
151
|
10486 fi
|
149
|
10487
|
267
|
10488 canna_includes_found=no
|
|
10489 if test "$with_canna" != "no"; then
|
|
10490 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
10491 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
561
|
10492 echo "configure:10493: checking for canna/jrkanji.h" >&5
|
|
10493
|
|
10494 cat > conftest.$ac_ext <<EOF
|
|
10495 #line 10496 "configure"
|
267
|
10496 #include "confdefs.h"
|
|
10497 #include <canna/jrkanji.h>
|
|
10498 EOF
|
|
10499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
10500 { (eval echo configure:10501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
10502 if test -z "$ac_err"; then
|
|
10503 rm -rf conftest*
|
|
10504 eval "ac_cv_header_$ac_safe=yes"
|
|
10505 else
|
|
10506 echo "$ac_err" >&5
|
|
10507 echo "configure: failed program was:" >&5
|
|
10508 cat conftest.$ac_ext >&5
|
|
10509 rm -rf conftest*
|
|
10510 eval "ac_cv_header_$ac_safe=no"
|
|
10511 fi
|
|
10512 rm -f conftest*
|
|
10513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10514 echo "$ac_t""yes" 1>&6
|
|
10515 canna_includes_found=yes
|
|
10516 else
|
|
10517 echo "$ac_t""no" 1>&6
|
|
10518 fi
|
|
10519
|
|
10520 fi
|
|
10521 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
|
|
10522 -d "/usr/local/canna/include"; then
|
|
10523 save_c_switch_site="$c_switch_site"
|
|
10524 c_switch_site="$c_switch_site -I/usr/local/canna/include"
|
|
10525 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
|
|
10526 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
|
561
|
10527 echo "configure:10528: checking for canna/jrkanji.h" >&5
|
|
10528
|
|
10529 cat > conftest.$ac_ext <<EOF
|
|
10530 #line 10531 "configure"
|
267
|
10531 #include "confdefs.h"
|
|
10532 #include <canna/jrkanji.h>
|
|
10533 EOF
|
|
10534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
10535 { (eval echo configure:10536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
267
|
10537 if test -z "$ac_err"; then
|
|
10538 rm -rf conftest*
|
|
10539 eval "ac_cv_header_$ac_safe=yes"
|
|
10540 else
|
|
10541 echo "$ac_err" >&5
|
|
10542 echo "configure: failed program was:" >&5
|
|
10543 cat conftest.$ac_ext >&5
|
|
10544 rm -rf conftest*
|
|
10545 eval "ac_cv_header_$ac_safe=no"
|
|
10546 fi
|
|
10547 rm -f conftest*
|
|
10548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10549 echo "$ac_t""yes" 1>&6
|
|
10550 canna_includes_found=yes
|
|
10551 else
|
|
10552 echo "$ac_t""no" 1>&6
|
|
10553 fi
|
|
10554
|
|
10555 if test "$canna_includes_found" != "yes"; then
|
|
10556 c_switch_site="$save_c_switch_site"
|
|
10557 with_canna="no"
|
|
10558 fi
|
|
10559 fi
|
|
10560
|
|
10561 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
|
149
|
10562 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
|
561
|
10563 echo "configure:10564: checking for canna/RK.h" >&5
|
|
10564
|
|
10565 cat > conftest.$ac_ext <<EOF
|
|
10566 #line 10567 "configure"
|
149
|
10567 #include "confdefs.h"
|
|
10568 #include <canna/RK.h>
|
|
10569 EOF
|
|
10570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
10571 { (eval echo configure:10572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
10572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
10573 if test -z "$ac_err"; then
|
|
10574 rm -rf conftest*
|
|
10575 eval "ac_cv_header_$ac_safe=yes"
|
|
10576 else
|
|
10577 echo "$ac_err" >&5
|
|
10578 echo "configure: failed program was:" >&5
|
|
10579 cat conftest.$ac_ext >&5
|
|
10580 rm -rf conftest*
|
|
10581 eval "ac_cv_header_$ac_safe=no"
|
|
10582 fi
|
|
10583 rm -f conftest*
|
|
10584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
10585 echo "$ac_t""yes" 1>&6
|
|
10586 :
|
|
10587 else
|
|
10588 echo "$ac_t""no" 1>&6
|
|
10589 with_canna=no
|
|
10590 fi
|
|
10591 }
|
|
10592 test -z "$with_canna" && {
|
|
10593 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
|
561
|
10594 echo "configure:10595: checking for RkBgnBun in -lRKC" >&5
|
149
|
10595 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
|
|
10596
|
|
10597 xe_check_libs=" -lRKC "
|
|
10598 cat > conftest.$ac_ext <<EOF
|
561
|
10599 #line 10600 "configure"
|
149
|
10600 #include "confdefs.h"
|
|
10601 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10602 /* We use char because int might match the return type of a gcc2
|
|
10603 builtin and then its argument prototype would still apply. */
|
|
10604 char RkBgnBun();
|
|
10605
|
|
10606 int main() {
|
|
10607 RkBgnBun()
|
|
10608 ; return 0; }
|
|
10609 EOF
|
561
|
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10611 rm -rf conftest*
|
|
10612 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10613 else
|
|
10614 echo "configure: failed program was:" >&5
|
|
10615 cat conftest.$ac_ext >&5
|
|
10616 rm -rf conftest*
|
|
10617 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10618 fi
|
|
10619 rm -f conftest*
|
|
10620 xe_check_libs=""
|
|
10621
|
151
|
10622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10623 echo "$ac_t""yes" 1>&6
|
|
10624 :
|
|
10625 else
|
|
10626 echo "$ac_t""no" 1>&6
|
|
10627 with_canna=no
|
|
10628 fi
|
|
10629
|
|
10630 }
|
|
10631 test -z "$with_canna" && {
|
|
10632 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
|
561
|
10633 echo "configure:10634: checking for jrKanjiControl in -lcanna" >&5
|
149
|
10634 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
|
|
10635
|
|
10636 xe_check_libs=" -lcanna "
|
|
10637 cat > conftest.$ac_ext <<EOF
|
561
|
10638 #line 10639 "configure"
|
149
|
10639 #include "confdefs.h"
|
|
10640 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10641 /* We use char because int might match the return type of a gcc2
|
|
10642 builtin and then its argument prototype would still apply. */
|
|
10643 char jrKanjiControl();
|
|
10644
|
|
10645 int main() {
|
|
10646 jrKanjiControl()
|
|
10647 ; return 0; }
|
|
10648 EOF
|
561
|
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
10650 rm -rf conftest*
|
|
10651 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10652 else
|
|
10653 echo "configure: failed program was:" >&5
|
|
10654 cat conftest.$ac_ext >&5
|
|
10655 rm -rf conftest*
|
|
10656 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10657 fi
|
|
10658 rm -f conftest*
|
|
10659 xe_check_libs=""
|
|
10660
|
151
|
10661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
10662 echo "$ac_t""yes" 1>&6
|
|
10663 :
|
|
10664 else
|
|
10665 echo "$ac_t""no" 1>&6
|
|
10666 with_canna=no
|
|
10667 fi
|
|
10668
|
|
10669 }
|
|
10670 test -z "$with_canna" && with_canna=yes
|
|
10671 if test "$with_canna" = "yes"; then
|
|
10672 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10673 Defining HAVE_CANNA
|
|
10674 EOF
|
|
10675 cat >> confdefs.h <<\EOF
|
|
10676 #define HAVE_CANNA 1
|
|
10677 EOF
|
|
10678 }
|
|
10679
|
151
|
10680 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi
|
|
10681 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then
|
|
10682 echo " xemacs will be linked with \"mule-canna.o\""
|
|
10683 fi
|
|
10684 fi
|
155
|
10685
|
151
|
10686 else for feature in xim canna wnn; do
|
149
|
10687 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
10688 echo "configure: warning: --with-${feature} ignored: Not valid without Mule support" 1>&2
|
149
|
10689 fi
|
|
10690 eval "with_${feature}=no"
|
|
10691 done
|
151
|
10692 fi
|
|
10693
|
|
10694 if test "$need_motif" = "yes" ; then
|
|
10695 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
|
207
|
10696
|
|
10697 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
|
561
|
10698 echo "configure:10699: checking for layout_object_getvalue in -li18n" >&5
|
207
|
10699 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
|
|
10700
|
|
10701 xe_check_libs=" -li18n "
|
|
10702 cat > conftest.$ac_ext <<EOF
|
561
|
10703 #line 10704 "configure"
|
207
|
10704 #include "confdefs.h"
|
|
10705 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10706 /* We use char because int might match the return type of a gcc2
|
|
10707 builtin and then its argument prototype would still apply. */
|
|
10708 char layout_object_getvalue();
|
|
10709
|
|
10710 int main() {
|
|
10711 layout_object_getvalue()
|
|
10712 ; return 0; }
|
|
10713 EOF
|
561
|
10714 if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
207
|
10715 rm -rf conftest*
|
|
10716 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10717 else
|
|
10718 echo "configure: failed program was:" >&5
|
|
10719 cat conftest.$ac_ext >&5
|
|
10720 rm -rf conftest*
|
|
10721 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10722 fi
|
|
10723 rm -f conftest*
|
|
10724 xe_check_libs=""
|
|
10725
|
|
10726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10727 echo "$ac_t""yes" 1>&6
|
|
10728 libs_x="-li18n $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-li18n\" to \$libs_x"; fi
|
|
10729 else
|
|
10730 echo "$ac_t""no" 1>&6
|
|
10731 fi
|
|
10732
|
|
10733
|
151
|
10734
|
|
10735 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then
|
165
|
10736 ld_switch_site=`echo '' $ld_switch_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
|
10737 ld_switch_x_site=`echo '' $ld_switch_x_site | sed -e 's:^ ::' -e "s/$dash_r[^ ]*//g"`
|
151
|
10738
|
163
|
10739 runpath="" runpath_dirs=""
|
155
|
10740 if test -n "$LD_RUN_PATH"; then
|
151
|
10741 runpath="$LD_RUN_PATH"
|
155
|
10742 elif test "$GCC" = "yes"; then
|
163
|
10743 ld_switch_run_save="$ld_switch_run"; ld_switch_run=""
|
|
10744 echo "int main(int argc, char *argv[]) {return 0;}" > conftest.c
|
155
|
10745 xe_runpath_link='${CC-cc} -o conftest -v $CFLAGS '"$xe_ldflags"' conftest.$ac_ext 2>&1 1>/dev/null'
|
|
10746 for arg in `eval "$xe_runpath_link" | grep ' -L'`; do
|
|
10747 case "$arg" in P,* | -L* | -R* )
|
159
|
10748 for dir in `echo '' "$arg" | sed -e 's:^ ::' -e 's/^..//' -e 'y/:/ /'`; do
|
163
|
10749 {
|
155
|
10750 xe_runpath_dir="$dir"
|
163
|
10751 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
10752 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
10753 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
10754 eval "$xe_add_unique_runpath_dir"
|
|
10755 }
|
155
|
10756 done ;;
|
|
10757 esac
|
|
10758 done
|
163
|
10759 ld_switch_run="$ld_switch_run_save"
|
155
|
10760 rm -f conftest*
|
151
|
10761 else
|
155
|
10762 for arg in $ld_switch_site $ld_switch_x_site; do
|
163
|
10763 case "$arg" in -L*) {
|
159
|
10764 xe_runpath_dir=`echo '' "$arg" | sed -e 's:^ ::' -e 's/^-L//'`
|
163
|
10765 test "$xe_runpath_dir" != "/lib" -a \
|
155
|
10766 "$xe_runpath_dir" != "/usr/lib" -a \
|
371
|
10767 -n "`ls ${xe_runpath_dir}/*.s[ol] 2>/dev/null`" && \
|
163
|
10768 eval "$xe_add_unique_runpath_dir"
|
|
10769 };; esac
|
151
|
10770 done
|
163
|
10771 if test "$opsys $need_motif" = "sol2 yes"; then
|
|
10772 xe_runpath_dir="/opt/SUNWdt/lib";
|
|
10773 eval "$xe_add_unique_runpath_dir";
|
|
10774 fi
|
155
|
10775 fi
|
151
|
10776 if test -n "$runpath"; then
|
|
10777 ld_switch_run="${dash_r}${runpath}"
|
272
|
10778
|
|
10779 if test "$GCC" = "yes"; then
|
|
10780 set x $ld_switch_run; shift; ld_switch_run=""
|
|
10781 while test -n "$1"; do
|
|
10782 case $1 in
|
380
|
10783 -L | -l | -u ) ld_switch_run="$ld_switch_run $1 $2"; shift ;;
|
|
10784 -L* | -l* | -u* | -Wl* | -pg ) ld_switch_run="$ld_switch_run $1" ;;
|
272
|
10785 -Xlinker* ) ;;
|
|
10786 * ) ld_switch_run="$ld_switch_run -Xlinker $1" ;;
|
|
10787 esac
|
|
10788 shift
|
|
10789 done
|
|
10790 fi
|
151
|
10791 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath"
|
|
10792 fi
|
|
10793 fi
|
|
10794
|
|
10795 fi
|
|
10796
|
460
|
10797 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
|
149
|
10798 do
|
|
10799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
10800 echo "configure:10801: checking for $ac_func" >&5
|
|
10801
|
|
10802 cat > conftest.$ac_ext <<EOF
|
|
10803 #line 10804 "configure"
|
410
|
10804 #include "confdefs.h"
|
|
10805 /* System header to define __stub macros and hopefully few prototypes,
|
|
10806 which can conflict with char $ac_func(); below. */
|
|
10807 #include <assert.h>
|
|
10808 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10809 /* We use char because int might match the return type of a gcc2
|
|
10810 builtin and then its argument prototype would still apply. */
|
|
10811 char $ac_func();
|
|
10812
|
|
10813 int main() {
|
|
10814
|
|
10815 /* The GNU C library defines this for functions which it implements
|
|
10816 to always fail with ENOSYS. Some functions are actually named
|
|
10817 something starting with __ and the normal name is an alias. */
|
|
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10819 choke me
|
|
10820 #else
|
|
10821 $ac_func();
|
|
10822 #endif
|
|
10823
|
|
10824 ; return 0; }
|
|
10825 EOF
|
561
|
10826 if { (eval echo configure:10827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
10827 rm -rf conftest*
|
|
10828 eval "ac_cv_func_$ac_func=yes"
|
|
10829 else
|
|
10830 echo "configure: failed program was:" >&5
|
|
10831 cat conftest.$ac_ext >&5
|
|
10832 rm -rf conftest*
|
|
10833 eval "ac_cv_func_$ac_func=no"
|
|
10834 fi
|
|
10835 rm -f conftest*
|
|
10836
|
|
10837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10838 echo "$ac_t""yes" 1>&6
|
|
10839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10840 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10841 Defining $ac_tr_func
|
|
10842 EOF
|
|
10843 cat >> confdefs.h <<EOF
|
|
10844 #define $ac_tr_func 1
|
|
10845 EOF
|
|
10846 }
|
|
10847
|
|
10848 else
|
|
10849 echo "$ac_t""no" 1>&6
|
|
10850 fi
|
|
10851 done
|
|
10852
|
|
10853
|
458
|
10854
|
444
|
10855 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
|
442
|
10856 do
|
|
10857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
10858 echo "configure:10859: checking for $ac_func" >&5
|
|
10859
|
|
10860 cat > conftest.$ac_ext <<EOF
|
|
10861 #line 10862 "configure"
|
442
|
10862 #include "confdefs.h"
|
|
10863 /* System header to define __stub macros and hopefully few prototypes,
|
|
10864 which can conflict with char $ac_func(); below. */
|
|
10865 #include <assert.h>
|
|
10866 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10867 /* We use char because int might match the return type of a gcc2
|
|
10868 builtin and then its argument prototype would still apply. */
|
|
10869 char $ac_func();
|
|
10870
|
|
10871 int main() {
|
|
10872
|
|
10873 /* The GNU C library defines this for functions which it implements
|
|
10874 to always fail with ENOSYS. Some functions are actually named
|
|
10875 something starting with __ and the normal name is an alias. */
|
|
10876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
10877 choke me
|
|
10878 #else
|
|
10879 $ac_func();
|
|
10880 #endif
|
|
10881
|
|
10882 ; return 0; }
|
|
10883 EOF
|
561
|
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
410
|
10885 rm -rf conftest*
|
|
10886 eval "ac_cv_func_$ac_func=yes"
|
|
10887 else
|
|
10888 echo "configure: failed program was:" >&5
|
|
10889 cat conftest.$ac_ext >&5
|
|
10890 rm -rf conftest*
|
|
10891 eval "ac_cv_func_$ac_func=no"
|
|
10892 fi
|
|
10893 rm -f conftest*
|
|
10894
|
|
10895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
10896 echo "$ac_t""yes" 1>&6
|
|
10897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
10898 { test "$extra_verbose" = "yes" && cat << EOF
|
|
10899 Defining $ac_tr_func
|
|
10900 EOF
|
|
10901 cat >> confdefs.h <<EOF
|
|
10902 #define $ac_tr_func 1
|
|
10903 EOF
|
|
10904 }
|
|
10905
|
|
10906 else
|
|
10907 echo "$ac_t""no" 1>&6
|
|
10908 fi
|
|
10909 done
|
|
10910
|
|
10911
|
442
|
10912 echo $ac_n "checking for openpty""... $ac_c" 1>&6
|
561
|
10913 echo "configure:10914: checking for openpty" >&5
|
|
10914
|
|
10915 cat > conftest.$ac_ext <<EOF
|
|
10916 #line 10917 "configure"
|
442
|
10917 #include "confdefs.h"
|
|
10918 /* System header to define __stub macros and hopefully few prototypes,
|
|
10919 which can conflict with char openpty(); below. */
|
|
10920 #include <assert.h>
|
|
10921 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10922 /* We use char because int might match the return type of a gcc2
|
|
10923 builtin and then its argument prototype would still apply. */
|
|
10924 char openpty();
|
|
10925
|
|
10926 int main() {
|
|
10927
|
|
10928 /* The GNU C library defines this for functions which it implements
|
|
10929 to always fail with ENOSYS. Some functions are actually named
|
|
10930 something starting with __ and the normal name is an alias. */
|
|
10931 #if defined (__stub_openpty) || defined (__stub___openpty)
|
|
10932 choke me
|
|
10933 #else
|
|
10934 openpty();
|
|
10935 #endif
|
|
10936
|
|
10937 ; return 0; }
|
|
10938 EOF
|
561
|
10939 if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
10940 rm -rf conftest*
|
|
10941 eval "ac_cv_func_openpty=yes"
|
|
10942 else
|
|
10943 echo "configure: failed program was:" >&5
|
|
10944 cat conftest.$ac_ext >&5
|
|
10945 rm -rf conftest*
|
|
10946 eval "ac_cv_func_openpty=no"
|
|
10947 fi
|
|
10948 rm -f conftest*
|
|
10949
|
|
10950 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
|
|
10951 echo "$ac_t""yes" 1>&6
|
|
10952 have_openpty=yes
|
|
10953 else
|
|
10954 echo "$ac_t""no" 1>&6
|
|
10955
|
|
10956
|
|
10957 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
|
561
|
10958 echo "configure:10959: checking for openpty in -lutil" >&5
|
442
|
10959 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
|
|
10960
|
|
10961 xe_check_libs=" -lutil "
|
|
10962 cat > conftest.$ac_ext <<EOF
|
561
|
10963 #line 10964 "configure"
|
442
|
10964 #include "confdefs.h"
|
|
10965 /* Override any gcc2 internal prototype to avoid an error. */
|
|
10966 /* We use char because int might match the return type of a gcc2
|
|
10967 builtin and then its argument prototype would still apply. */
|
|
10968 char openpty();
|
|
10969
|
|
10970 int main() {
|
|
10971 openpty()
|
|
10972 ; return 0; }
|
|
10973 EOF
|
561
|
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
10975 rm -rf conftest*
|
|
10976 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
10977 else
|
|
10978 echo "configure: failed program was:" >&5
|
|
10979 cat conftest.$ac_ext >&5
|
|
10980 rm -rf conftest*
|
|
10981 eval "ac_cv_lib_$ac_lib_var=no"
|
|
10982 fi
|
|
10983 rm -f conftest*
|
|
10984 xe_check_libs=""
|
|
10985
|
|
10986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
10987 echo "$ac_t""yes" 1>&6
|
|
10988 have_openpty=yes need_libutil=yes
|
|
10989 else
|
|
10990 echo "$ac_t""no" 1>&6
|
|
10991 fi
|
|
10992
|
|
10993
|
|
10994 fi
|
|
10995
|
|
10996 if test "$have_openpty" = "yes"; then
|
|
10997 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
10998 Defining HAVE_OPENPTY
|
|
10999 EOF
|
|
11000 cat >> confdefs.h <<\EOF
|
|
11001 #define HAVE_OPENPTY 1
|
|
11002 EOF
|
|
11003 }
|
|
11004
|
535
|
11005 for ac_hdr in libutil.h util.h
|
442
|
11006 do
|
|
11007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11009 echo "configure:11010: checking for $ac_hdr" >&5
|
|
11010
|
|
11011 cat > conftest.$ac_ext <<EOF
|
|
11012 #line 11013 "configure"
|
442
|
11013 #include "confdefs.h"
|
|
11014 #include <$ac_hdr>
|
|
11015 EOF
|
|
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11019 if test -z "$ac_err"; then
|
|
11020 rm -rf conftest*
|
|
11021 eval "ac_cv_header_$ac_safe=yes"
|
|
11022 else
|
|
11023 echo "$ac_err" >&5
|
|
11024 echo "configure: failed program was:" >&5
|
|
11025 cat conftest.$ac_ext >&5
|
|
11026 rm -rf conftest*
|
|
11027 eval "ac_cv_header_$ac_safe=no"
|
|
11028 fi
|
|
11029 rm -f conftest*
|
|
11030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11031 echo "$ac_t""yes" 1>&6
|
|
11032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11033 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11034 Defining $ac_tr_hdr
|
|
11035 EOF
|
|
11036 cat >> confdefs.h <<EOF
|
|
11037 #define $ac_tr_hdr 1
|
|
11038 EOF
|
|
11039 }
|
458
|
11040 break
|
442
|
11041 else
|
|
11042 echo "$ac_t""no" 1>&6
|
|
11043 fi
|
|
11044 done
|
|
11045
|
|
11046 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi
|
|
11047 fi
|
|
11048
|
535
|
11049 case "$opsys" in
|
|
11050 hpux*) for ac_hdr in sys/ptyio.h
|
|
11051 do
|
|
11052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11054 echo "configure:11055: checking for $ac_hdr" >&5
|
|
11055
|
|
11056 cat > conftest.$ac_ext <<EOF
|
|
11057 #line 11058 "configure"
|
535
|
11058 #include "confdefs.h"
|
|
11059 #include <$ac_hdr>
|
|
11060 EOF
|
|
11061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11062 { (eval echo configure:11063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11064 if test -z "$ac_err"; then
|
|
11065 rm -rf conftest*
|
|
11066 eval "ac_cv_header_$ac_safe=yes"
|
|
11067 else
|
|
11068 echo "$ac_err" >&5
|
|
11069 echo "configure: failed program was:" >&5
|
|
11070 cat conftest.$ac_ext >&5
|
|
11071 rm -rf conftest*
|
|
11072 eval "ac_cv_header_$ac_safe=no"
|
|
11073 fi
|
|
11074 rm -f conftest*
|
|
11075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11076 echo "$ac_t""yes" 1>&6
|
|
11077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11078 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11079 Defining $ac_tr_hdr
|
|
11080 EOF
|
|
11081 cat >> confdefs.h <<EOF
|
|
11082 #define $ac_tr_hdr 1
|
|
11083 EOF
|
|
11084 }
|
|
11085
|
|
11086 else
|
|
11087 echo "$ac_t""no" 1>&6
|
|
11088 fi
|
|
11089 done
|
|
11090 ;;
|
|
11091 *) for ac_hdr in pty.h
|
|
11092 do
|
|
11093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11095 echo "configure:11096: checking for $ac_hdr" >&5
|
|
11096
|
|
11097 cat > conftest.$ac_ext <<EOF
|
|
11098 #line 11099 "configure"
|
535
|
11099 #include "confdefs.h"
|
|
11100 #include <$ac_hdr>
|
|
11101 EOF
|
|
11102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11103 { (eval echo configure:11104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11105 if test -z "$ac_err"; then
|
|
11106 rm -rf conftest*
|
|
11107 eval "ac_cv_header_$ac_safe=yes"
|
|
11108 else
|
|
11109 echo "$ac_err" >&5
|
|
11110 echo "configure: failed program was:" >&5
|
|
11111 cat conftest.$ac_ext >&5
|
|
11112 rm -rf conftest*
|
|
11113 eval "ac_cv_header_$ac_safe=no"
|
|
11114 fi
|
|
11115 rm -f conftest*
|
|
11116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11117 echo "$ac_t""yes" 1>&6
|
|
11118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11119 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11120 Defining $ac_tr_hdr
|
|
11121 EOF
|
|
11122 cat >> confdefs.h <<EOF
|
|
11123 #define $ac_tr_hdr 1
|
|
11124 EOF
|
|
11125 }
|
|
11126
|
|
11127 else
|
|
11128 echo "$ac_t""no" 1>&6
|
|
11129 fi
|
|
11130 done
|
|
11131
|
|
11132 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
|
|
11133 do
|
|
11134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11136 echo "configure:11137: checking for $ac_hdr" >&5
|
|
11137
|
|
11138 cat > conftest.$ac_ext <<EOF
|
|
11139 #line 11140 "configure"
|
535
|
11140 #include "confdefs.h"
|
|
11141 #include <$ac_hdr>
|
|
11142 EOF
|
|
11143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11144 { (eval echo configure:11145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
535
|
11145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11146 if test -z "$ac_err"; then
|
|
11147 rm -rf conftest*
|
|
11148 eval "ac_cv_header_$ac_safe=yes"
|
|
11149 else
|
|
11150 echo "$ac_err" >&5
|
|
11151 echo "configure: failed program was:" >&5
|
|
11152 cat conftest.$ac_ext >&5
|
|
11153 rm -rf conftest*
|
|
11154 eval "ac_cv_header_$ac_safe=no"
|
|
11155 fi
|
|
11156 rm -f conftest*
|
|
11157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11158 echo "$ac_t""yes" 1>&6
|
|
11159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11160 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11161 Defining $ac_tr_hdr
|
|
11162 EOF
|
|
11163 cat >> confdefs.h <<EOF
|
|
11164 #define $ac_tr_hdr 1
|
|
11165 EOF
|
|
11166 }
|
|
11167
|
|
11168 else
|
|
11169 echo "$ac_t""no" 1>&6
|
|
11170 fi
|
|
11171 done
|
|
11172
|
|
11173 ;;
|
|
11174 esac
|
|
11175
|
444
|
11176 for ac_hdr in stropts.h
|
442
|
11177 do
|
|
11178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11180 echo "configure:11181: checking for $ac_hdr" >&5
|
|
11181
|
|
11182 cat > conftest.$ac_ext <<EOF
|
|
11183 #line 11184 "configure"
|
442
|
11184 #include "confdefs.h"
|
|
11185 #include <$ac_hdr>
|
|
11186 EOF
|
|
11187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11188 { (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11190 if test -z "$ac_err"; then
|
|
11191 rm -rf conftest*
|
|
11192 eval "ac_cv_header_$ac_safe=yes"
|
|
11193 else
|
|
11194 echo "$ac_err" >&5
|
|
11195 echo "configure: failed program was:" >&5
|
|
11196 cat conftest.$ac_ext >&5
|
|
11197 rm -rf conftest*
|
|
11198 eval "ac_cv_header_$ac_safe=no"
|
|
11199 fi
|
|
11200 rm -f conftest*
|
|
11201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11202 echo "$ac_t""yes" 1>&6
|
|
11203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11204 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11205 Defining $ac_tr_hdr
|
|
11206 EOF
|
|
11207 cat >> confdefs.h <<EOF
|
|
11208 #define $ac_tr_hdr 1
|
|
11209 EOF
|
|
11210 }
|
|
11211
|
|
11212 else
|
|
11213 echo "$ac_t""no" 1>&6
|
|
11214 fi
|
|
11215 done
|
|
11216
|
444
|
11217 if test "$ac_cv_header_stropts_h" = "yes"; then
|
442
|
11218 for ac_func in isastream
|
410
|
11219 do
|
|
11220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
11221 echo "configure:11222: checking for $ac_func" >&5
|
|
11222
|
|
11223 cat > conftest.$ac_ext <<EOF
|
|
11224 #line 11225 "configure"
|
149
|
11225 #include "confdefs.h"
|
|
11226 /* System header to define __stub macros and hopefully few prototypes,
|
|
11227 which can conflict with char $ac_func(); below. */
|
|
11228 #include <assert.h>
|
|
11229 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11230 /* We use char because int might match the return type of a gcc2
|
|
11231 builtin and then its argument prototype would still apply. */
|
|
11232 char $ac_func();
|
|
11233
|
|
11234 int main() {
|
|
11235
|
70
|
11236 /* The GNU C library defines this for functions which it implements
|
|
11237 to always fail with ENOSYS. Some functions are actually named
|
|
11238 something starting with __ and the normal name is an alias. */
|
149
|
11239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
70
|
11240 choke me
|
|
11241 #else
|
149
|
11242 $ac_func();
|
70
|
11243 #endif
|
149
|
11244
|
70
|
11245 ; return 0; }
|
|
11246 EOF
|
561
|
11247 if { (eval echo configure:11248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
11248 rm -rf conftest*
|
|
11249 eval "ac_cv_func_$ac_func=yes"
|
|
11250 else
|
|
11251 echo "configure: failed program was:" >&5
|
|
11252 cat conftest.$ac_ext >&5
|
|
11253 rm -rf conftest*
|
|
11254 eval "ac_cv_func_$ac_func=no"
|
|
11255 fi
|
|
11256 rm -f conftest*
|
|
11257
|
|
11258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11259 echo "$ac_t""yes" 1>&6
|
|
11260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11261 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11262 Defining $ac_tr_func
|
|
11263 EOF
|
|
11264 cat >> confdefs.h <<EOF
|
|
11265 #define $ac_tr_func 1
|
|
11266 EOF
|
|
11267 }
|
|
11268
|
|
11269 else
|
|
11270 echo "$ac_t""no" 1>&6
|
|
11271 fi
|
|
11272 done
|
|
11273
|
444
|
11274 for ac_hdr in strtio.h
|
442
|
11275 do
|
|
11276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11278 echo "configure:11279: checking for $ac_hdr" >&5
|
|
11279
|
|
11280 cat > conftest.$ac_ext <<EOF
|
|
11281 #line 11282 "configure"
|
442
|
11282 #include "confdefs.h"
|
|
11283 #include <$ac_hdr>
|
|
11284 EOF
|
|
11285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11286 { (eval echo configure:11287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11288 if test -z "$ac_err"; then
|
|
11289 rm -rf conftest*
|
|
11290 eval "ac_cv_header_$ac_safe=yes"
|
|
11291 else
|
|
11292 echo "$ac_err" >&5
|
|
11293 echo "configure: failed program was:" >&5
|
|
11294 cat conftest.$ac_ext >&5
|
|
11295 rm -rf conftest*
|
|
11296 eval "ac_cv_header_$ac_safe=no"
|
|
11297 fi
|
|
11298 rm -f conftest*
|
|
11299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11300 echo "$ac_t""yes" 1>&6
|
|
11301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11302 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11303 Defining $ac_tr_hdr
|
|
11304 EOF
|
|
11305 cat >> confdefs.h <<EOF
|
|
11306 #define $ac_tr_hdr 1
|
|
11307 EOF
|
|
11308 }
|
|
11309
|
|
11310 else
|
|
11311 echo "$ac_t""no" 1>&6
|
|
11312 fi
|
|
11313 done
|
|
11314 fi
|
|
11315
|
|
11316 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
|
|
11317 echo " xemacs will be linked with \"realpath.o\""
|
|
11318 fi
|
|
11319
|
|
11320 for ac_func in getloadavg
|
|
11321 do
|
|
11322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
11323 echo "configure:11324: checking for $ac_func" >&5
|
|
11324
|
|
11325 cat > conftest.$ac_ext <<EOF
|
|
11326 #line 11327 "configure"
|
442
|
11327 #include "confdefs.h"
|
|
11328 /* System header to define __stub macros and hopefully few prototypes,
|
|
11329 which can conflict with char $ac_func(); below. */
|
|
11330 #include <assert.h>
|
|
11331 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11332 /* We use char because int might match the return type of a gcc2
|
|
11333 builtin and then its argument prototype would still apply. */
|
|
11334 char $ac_func();
|
|
11335
|
|
11336 int main() {
|
|
11337
|
|
11338 /* The GNU C library defines this for functions which it implements
|
|
11339 to always fail with ENOSYS. Some functions are actually named
|
|
11340 something starting with __ and the normal name is an alias. */
|
|
11341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11342 choke me
|
|
11343 #else
|
|
11344 $ac_func();
|
|
11345 #endif
|
|
11346
|
|
11347 ; return 0; }
|
|
11348 EOF
|
561
|
11349 if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
442
|
11350 rm -rf conftest*
|
|
11351 eval "ac_cv_func_$ac_func=yes"
|
|
11352 else
|
|
11353 echo "configure: failed program was:" >&5
|
|
11354 cat conftest.$ac_ext >&5
|
|
11355 rm -rf conftest*
|
|
11356 eval "ac_cv_func_$ac_func=no"
|
|
11357 fi
|
|
11358 rm -f conftest*
|
|
11359
|
|
11360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11361 echo "$ac_t""yes" 1>&6
|
|
11362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
11363 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11364 Defining $ac_tr_func
|
|
11365 EOF
|
|
11366 cat >> confdefs.h <<EOF
|
|
11367 #define $ac_tr_func 1
|
|
11368 EOF
|
|
11369 }
|
|
11370
|
|
11371 else
|
|
11372 echo "$ac_t""no" 1>&6
|
|
11373 fi
|
|
11374 done
|
|
11375
|
|
11376
|
|
11377 if test "$ac_cv_func_getloadavg" = "yes"; then
|
|
11378 for ac_hdr in sys/loadavg.h
|
|
11379 do
|
|
11380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11382 echo "configure:11383: checking for $ac_hdr" >&5
|
|
11383
|
|
11384 cat > conftest.$ac_ext <<EOF
|
|
11385 #line 11386 "configure"
|
442
|
11386 #include "confdefs.h"
|
|
11387 #include <$ac_hdr>
|
|
11388 EOF
|
|
11389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11390 { (eval echo configure:11391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11392 if test -z "$ac_err"; then
|
|
11393 rm -rf conftest*
|
|
11394 eval "ac_cv_header_$ac_safe=yes"
|
|
11395 else
|
|
11396 echo "$ac_err" >&5
|
|
11397 echo "configure: failed program was:" >&5
|
|
11398 cat conftest.$ac_ext >&5
|
|
11399 rm -rf conftest*
|
|
11400 eval "ac_cv_header_$ac_safe=no"
|
|
11401 fi
|
|
11402 rm -f conftest*
|
|
11403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11404 echo "$ac_t""yes" 1>&6
|
|
11405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11406 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11407 Defining $ac_tr_hdr
|
|
11408 EOF
|
|
11409 cat >> confdefs.h <<EOF
|
|
11410 #define $ac_tr_hdr 1
|
|
11411 EOF
|
|
11412 }
|
|
11413
|
|
11414 else
|
|
11415 echo "$ac_t""no" 1>&6
|
|
11416 fi
|
|
11417 done
|
|
11418
|
|
11419 else
|
|
11420 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
|
398
|
11421 echo " xemacs will be linked with \"getloadavg.o\""
|
|
11422 fi
|
|
11423
|
|
11424
|
|
11425 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
|
561
|
11426 echo "configure:11427: checking for kstat_open in -lkstat" >&5
|
398
|
11427 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
|
|
11428
|
|
11429 xe_check_libs=" -lkstat "
|
|
11430 cat > conftest.$ac_ext <<EOF
|
561
|
11431 #line 11432 "configure"
|
398
|
11432 #include "confdefs.h"
|
|
11433 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11434 /* We use char because int might match the return type of a gcc2
|
|
11435 builtin and then its argument prototype would still apply. */
|
|
11436 char kstat_open();
|
|
11437
|
|
11438 int main() {
|
|
11439 kstat_open()
|
|
11440 ; return 0; }
|
|
11441 EOF
|
561
|
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
11443 rm -rf conftest*
|
|
11444 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11445 else
|
|
11446 echo "configure: failed program was:" >&5
|
|
11447 cat conftest.$ac_ext >&5
|
|
11448 rm -rf conftest*
|
|
11449 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11450 fi
|
|
11451 rm -f conftest*
|
|
11452 xe_check_libs=""
|
|
11453
|
|
11454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11455 echo "$ac_t""yes" 1>&6
|
|
11456 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
369
|
11458 { test "$extra_verbose" = "yes" && cat << EOF
|
398
|
11459 Defining $ac_tr_lib
|
369
|
11460 EOF
|
|
11461 cat >> confdefs.h <<EOF
|
398
|
11462 #define $ac_tr_lib 1
|
|
11463 EOF
|
|
11464 }
|
|
11465
|
|
11466 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi
|
|
11467
|
|
11468 else
|
|
11469 echo "$ac_t""no" 1>&6
|
|
11470 fi
|
|
11471
|
|
11472
|
442
|
11473 for ac_hdr in kstat.h
|
|
11474 do
|
|
11475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
11476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
561
|
11477 echo "configure:11478: checking for $ac_hdr" >&5
|
|
11478
|
|
11479 cat > conftest.$ac_ext <<EOF
|
|
11480 #line 11481 "configure"
|
442
|
11481 #include "confdefs.h"
|
|
11482 #include <$ac_hdr>
|
|
11483 EOF
|
|
11484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
11485 { (eval echo configure:11486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
442
|
11486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
11487 if test -z "$ac_err"; then
|
|
11488 rm -rf conftest*
|
|
11489 eval "ac_cv_header_$ac_safe=yes"
|
|
11490 else
|
|
11491 echo "$ac_err" >&5
|
|
11492 echo "configure: failed program was:" >&5
|
|
11493 cat conftest.$ac_ext >&5
|
|
11494 rm -rf conftest*
|
|
11495 eval "ac_cv_header_$ac_safe=no"
|
|
11496 fi
|
|
11497 rm -f conftest*
|
|
11498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
11499 echo "$ac_t""yes" 1>&6
|
|
11500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
11501 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11502 Defining $ac_tr_hdr
|
|
11503 EOF
|
|
11504 cat >> confdefs.h <<EOF
|
|
11505 #define $ac_tr_hdr 1
|
|
11506 EOF
|
|
11507 }
|
|
11508
|
|
11509 else
|
|
11510 echo "$ac_t""no" 1>&6
|
|
11511 fi
|
|
11512 done
|
|
11513
|
398
|
11514
|
|
11515
|
|
11516 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
|
561
|
11517 echo "configure:11518: checking for kvm_read in -lkvm" >&5
|
398
|
11518 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
|
|
11519
|
|
11520 xe_check_libs=" -lkvm "
|
|
11521 cat > conftest.$ac_ext <<EOF
|
561
|
11522 #line 11523 "configure"
|
398
|
11523 #include "confdefs.h"
|
|
11524 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11525 /* We use char because int might match the return type of a gcc2
|
|
11526 builtin and then its argument prototype would still apply. */
|
|
11527 char kvm_read();
|
|
11528
|
|
11529 int main() {
|
|
11530 kvm_read()
|
|
11531 ; return 0; }
|
|
11532 EOF
|
561
|
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
398
|
11534 rm -rf conftest*
|
|
11535 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
11536 else
|
|
11537 echo "configure: failed program was:" >&5
|
|
11538 cat conftest.$ac_ext >&5
|
|
11539 rm -rf conftest*
|
|
11540 eval "ac_cv_lib_$ac_lib_var=no"
|
|
11541 fi
|
|
11542 rm -f conftest*
|
|
11543 xe_check_libs=""
|
|
11544
|
|
11545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
11546 echo "$ac_t""yes" 1>&6
|
|
11547 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
11548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
11549 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11550 Defining $ac_tr_lib
|
|
11551 EOF
|
|
11552 cat >> confdefs.h <<EOF
|
|
11553 #define $ac_tr_lib 1
|
|
11554 EOF
|
|
11555 }
|
|
11556
|
|
11557 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi
|
|
11558
|
|
11559 else
|
|
11560 echo "$ac_t""no" 1>&6
|
|
11561 fi
|
|
11562
|
|
11563
|
|
11564 fi
|
151
|
11565
|
149
|
11566 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
|
561
|
11567 echo "configure:11568: checking whether netdb declares h_errno" >&5
|
|
11568 cat > conftest.$ac_ext <<EOF
|
|
11569 #line 11570 "configure"
|
0
|
11570 #include "confdefs.h"
|
|
11571 #include <netdb.h>
|
149
|
11572 int main() {
|
|
11573 return h_errno;
|
|
11574 ; return 0; }
|
|
11575 EOF
|
561
|
11576 if { (eval echo configure:11577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11577 rm -rf conftest*
|
|
11578 echo "$ac_t""yes" 1>&6
|
|
11579 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11580 Defining HAVE_H_ERRNO
|
|
11581 EOF
|
|
11582 cat >> confdefs.h <<\EOF
|
|
11583 #define HAVE_H_ERRNO 1
|
|
11584 EOF
|
|
11585 }
|
|
11586
|
|
11587 else
|
|
11588 echo "configure: failed program was:" >&5
|
|
11589 cat conftest.$ac_ext >&5
|
|
11590 rm -rf conftest*
|
|
11591 echo "$ac_t""no" 1>&6
|
|
11592 fi
|
|
11593 rm -f conftest*
|
|
11594
|
|
11595 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
561
|
11596 echo "configure:11597: checking for sigsetjmp" >&5
|
|
11597 cat > conftest.$ac_ext <<EOF
|
|
11598 #line 11599 "configure"
|
0
|
11599 #include "confdefs.h"
|
|
11600 #include <setjmp.h>
|
149
|
11601 int main() {
|
|
11602 sigjmp_buf bar; sigsetjmp (bar, 0);
|
|
11603 ; return 0; }
|
|
11604 EOF
|
561
|
11605 if { (eval echo configure:11606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
11606 rm -rf conftest*
|
|
11607 echo "$ac_t""yes" 1>&6
|
|
11608 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11609 Defining HAVE_SIGSETJMP
|
|
11610 EOF
|
|
11611 cat >> confdefs.h <<\EOF
|
|
11612 #define HAVE_SIGSETJMP 1
|
|
11613 EOF
|
|
11614 }
|
|
11615
|
|
11616 else
|
|
11617 echo "configure: failed program was:" >&5
|
|
11618 cat conftest.$ac_ext >&5
|
|
11619 rm -rf conftest*
|
|
11620 echo "$ac_t""no" 1>&6
|
|
11621 fi
|
|
11622 rm -f conftest*
|
|
11623
|
|
11624 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
|
561
|
11625 echo "configure:11626: checking whether localtime caches TZ" >&5
|
149
|
11626
|
|
11627 if test "$ac_cv_func_tzset" = "yes"; then
|
|
11628 cat > conftest.$ac_ext <<EOF
|
561
|
11629 #line 11630 "configure"
|
0
|
11630 #include "confdefs.h"
|
|
11631 #include <time.h>
|
149
|
11632 #if STDC_HEADERS
|
0
|
11633 # include <stdlib.h>
|
|
11634 #endif
|
|
11635 extern char **environ;
|
|
11636 unset_TZ ()
|
|
11637 {
|
|
11638 char **from, **to;
|
|
11639 for (to = from = environ; (*to = *from); from++)
|
|
11640 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
|
|
11641 to++;
|
|
11642 }
|
149
|
11643 char TZ_GMT0[] = "TZ=GMT0";
|
|
11644 char TZ_PST8[] = "TZ=PST8";
|
0
|
11645 main()
|
|
11646 {
|
|
11647 time_t now = time ((time_t *) 0);
|
|
11648 int hour_GMT0, hour_unset;
|
149
|
11649 if (putenv (TZ_GMT0) != 0)
|
0
|
11650 exit (1);
|
|
11651 hour_GMT0 = localtime (&now)->tm_hour;
|
|
11652 unset_TZ ();
|
|
11653 hour_unset = localtime (&now)->tm_hour;
|
149
|
11654 if (putenv (TZ_PST8) != 0)
|
0
|
11655 exit (1);
|
|
11656 if (localtime (&now)->tm_hour == hour_GMT0)
|
|
11657 exit (1);
|
|
11658 unset_TZ ();
|
|
11659 if (localtime (&now)->tm_hour != hour_unset)
|
|
11660 exit (1);
|
|
11661 exit (0);
|
|
11662 }
|
|
11663 EOF
|
561
|
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
11665 then
|
0
|
11666 emacs_cv_localtime_cache=no
|
149
|
11667 else
|
373
|
11668 conftest_rc="$?"
|
149
|
11669 echo "configure: failed program was:" >&5
|
|
11670 cat conftest.$ac_ext >&5
|
|
11671 rm -fr conftest*
|
0
|
11672 emacs_cv_localtime_cache=yes
|
|
11673 fi
|
|
11674 rm -fr conftest*
|
149
|
11675 else
|
|
11676 # If we lack tzset, report that localtime does not cache TZ,
|
|
11677 # since we can't invalidate the cache if we don't have tzset.
|
|
11678 emacs_cv_localtime_cache=no
|
|
11679 fi
|
|
11680 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
|
|
11681 if test $emacs_cv_localtime_cache = yes; then
|
|
11682 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11683 Defining LOCALTIME_CACHE
|
|
11684 EOF
|
|
11685 cat >> confdefs.h <<\EOF
|
|
11686 #define LOCALTIME_CACHE 1
|
|
11687 EOF
|
|
11688 }
|
|
11689
|
|
11690 fi
|
|
11691
|
|
11692 if test "$HAVE_TIMEVAL" = "yes"; then
|
274
|
11693 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
|
561
|
11694 echo "configure:11695: checking whether gettimeofday accepts one or two arguments" >&5
|
|
11695 cat > conftest.$ac_ext <<EOF
|
|
11696 #line 11697 "configure"
|
0
|
11697 #include "confdefs.h"
|
|
11698
|
|
11699 #ifdef TIME_WITH_SYS_TIME
|
|
11700 #include <sys/time.h>
|
|
11701 #include <time.h>
|
|
11702 #else
|
|
11703 #ifdef HAVE_SYS_TIME_H
|
|
11704 #include <sys/time.h>
|
|
11705 #else
|
|
11706 #include <time.h>
|
|
11707 #endif
|
|
11708 #endif
|
|
11709
|
149
|
11710 int main() {
|
|
11711
|
0
|
11712 struct timeval time;
|
442
|
11713 gettimeofday (&time, 0);
|
|
11714
|
|
11715 ; return 0; }
|
|
11716 EOF
|
561
|
11717 if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
274
|
11718 rm -rf conftest*
|
|
11719 echo "$ac_t""two" 1>&6
|
|
11720 else
|
|
11721 echo "configure: failed program was:" >&5
|
|
11722 cat conftest.$ac_ext >&5
|
|
11723 rm -rf conftest*
|
|
11724 echo "$ac_t""one" 1>&6
|
149
|
11725 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11726 Defining GETTIMEOFDAY_ONE_ARGUMENT
|
|
11727 EOF
|
|
11728 cat >> confdefs.h <<\EOF
|
|
11729 #define GETTIMEOFDAY_ONE_ARGUMENT 1
|
|
11730 EOF
|
|
11731 }
|
|
11732
|
|
11733 fi
|
|
11734 rm -f conftest*
|
|
11735 fi
|
|
11736
|
|
11737
|
|
11738 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
561
|
11739 echo "configure:11740: checking for inline" >&5
|
149
|
11740
|
|
11741 ac_cv_c_inline=no
|
|
11742 for ac_kw in inline __inline__ __inline; do
|
|
11743 cat > conftest.$ac_ext <<EOF
|
561
|
11744 #line 11745 "configure"
|
149
|
11745 #include "confdefs.h"
|
|
11746
|
|
11747 int main() {
|
|
11748 } $ac_kw foo() {
|
0
|
11749 ; return 0; }
|
|
11750 EOF
|
561
|
11751 if { (eval echo configure:11752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
149
|
11752 rm -rf conftest*
|
|
11753 ac_cv_c_inline=$ac_kw; break
|
|
11754 else
|
|
11755 echo "configure: failed program was:" >&5
|
|
11756 cat conftest.$ac_ext >&5
|
|
11757 fi
|
|
11758 rm -f conftest*
|
|
11759 done
|
|
11760
|
|
11761
|
|
11762 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
11763 case "$ac_cv_c_inline" in
|
|
11764 inline | yes) ;;
|
|
11765 no) { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11766 Defining inline =
|
|
11767 EOF
|
|
11768 cat >> confdefs.h <<\EOF
|
|
11769 #define inline
|
|
11770 EOF
|
|
11771 }
|
|
11772 ;;
|
|
11773 *) { test "$extra_verbose" = "yes" && cat << EOF
|
|
11774 Defining inline = $ac_cv_c_inline
|
|
11775 EOF
|
|
11776 cat >> confdefs.h <<EOF
|
|
11777 #define inline $ac_cv_c_inline
|
|
11778 EOF
|
|
11779 }
|
|
11780 ;;
|
|
11781 esac
|
|
11782
|
442
|
11783 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
|
155
|
11784 echo " xemacs will be linked with \"inline.o\""
|
|
11785 fi
|
149
|
11786
|
|
11787
|
444
|
11788 if test "$__DECC" != "yes"; then
|
|
11789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
0
|
11790 # for constant arguments. Useless!
|
149
|
11791 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
561
|
11792 echo "configure:11793: checking for working alloca.h" >&5
|
|
11793
|
|
11794 cat > conftest.$ac_ext <<EOF
|
|
11795 #line 11796 "configure"
|
0
|
11796 #include "confdefs.h"
|
|
11797 #include <alloca.h>
|
149
|
11798 int main() {
|
|
11799 char *p = alloca(2 * sizeof(int));
|
0
|
11800 ; return 0; }
|
|
11801 EOF
|
561
|
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11803 rm -rf conftest*
|
|
11804 ac_cv_header_alloca_h=yes
|
|
11805 else
|
|
11806 echo "configure: failed program was:" >&5
|
|
11807 cat conftest.$ac_ext >&5
|
|
11808 rm -rf conftest*
|
|
11809 ac_cv_header_alloca_h=no
|
|
11810 fi
|
|
11811 rm -f conftest*
|
|
11812
|
|
11813 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
11814 if test $ac_cv_header_alloca_h = yes; then
|
|
11815 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11816 Defining HAVE_ALLOCA_H
|
|
11817 EOF
|
|
11818 cat >> confdefs.h <<\EOF
|
|
11819 #define HAVE_ALLOCA_H 1
|
|
11820 EOF
|
|
11821 }
|
|
11822
|
|
11823 fi
|
|
11824
|
|
11825 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
561
|
11826 echo "configure:11827: checking for alloca" >&5
|
|
11827
|
|
11828 cat > conftest.$ac_ext <<EOF
|
|
11829 #line 11830 "configure"
|
149
|
11830 #include "confdefs.h"
|
|
11831
|
|
11832 #ifdef __GNUC__
|
|
11833 # define alloca __builtin_alloca
|
0
|
11834 #else
|
420
|
11835 # ifdef _MSC_VER
|
|
11836 # include <malloc.h>
|
|
11837 # define alloca _alloca
|
149
|
11838 # else
|
420
|
11839 # if HAVE_ALLOCA_H
|
|
11840 # include <alloca.h>
|
149
|
11841 # else
|
420
|
11842 # ifdef _AIX
|
|
11843 #pragma alloca
|
|
11844 # else
|
|
11845 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
149
|
11846 char *alloca ();
|
420
|
11847 # endif
|
149
|
11848 # endif
|
|
11849 # endif
|
|
11850 # endif
|
0
|
11851 #endif
|
149
|
11852
|
|
11853 int main() {
|
|
11854 char *p = (char *) alloca(1);
|
0
|
11855 ; return 0; }
|
|
11856 EOF
|
561
|
11857 if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11858 rm -rf conftest*
|
|
11859 ac_cv_func_alloca_works=yes
|
|
11860 else
|
|
11861 echo "configure: failed program was:" >&5
|
|
11862 cat conftest.$ac_ext >&5
|
|
11863 rm -rf conftest*
|
|
11864 ac_cv_func_alloca_works=no
|
|
11865 fi
|
|
11866 rm -f conftest*
|
|
11867
|
|
11868 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
11869 if test $ac_cv_func_alloca_works = yes; then
|
|
11870 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11871 Defining HAVE_ALLOCA
|
|
11872 EOF
|
|
11873 cat >> confdefs.h <<\EOF
|
|
11874 #define HAVE_ALLOCA 1
|
|
11875 EOF
|
|
11876 }
|
|
11877
|
|
11878 fi
|
|
11879
|
|
11880 if test $ac_cv_func_alloca_works = no; then
|
0
|
11881 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
11882 # that cause trouble. Some versions do not even contain alloca or
|
|
11883 # contain a buggy version. If you still want to use their alloca,
|
|
11884 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
420
|
11885 ALLOCA=alloca.${ac_objext}
|
149
|
11886 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
11887 Defining C_ALLOCA
|
|
11888 EOF
|
|
11889 cat >> confdefs.h <<\EOF
|
|
11890 #define C_ALLOCA 1
|
|
11891 EOF
|
|
11892 }
|
|
11893
|
|
11894
|
|
11895 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
561
|
11896 echo "configure:11897: checking whether alloca needs Cray hooks" >&5
|
|
11897
|
|
11898 cat > conftest.$ac_ext <<EOF
|
|
11899 #line 11900 "configure"
|
149
|
11900 #include "confdefs.h"
|
|
11901 #if defined(CRAY) && ! defined(CRAY2)
|
|
11902 webecray
|
|
11903 #else
|
|
11904 wenotbecray
|
|
11905 #endif
|
|
11906
|
|
11907 EOF
|
|
11908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
11909 egrep "webecray" >/dev/null 2>&1; then
|
|
11910 rm -rf conftest*
|
|
11911 ac_cv_os_cray=yes
|
|
11912 else
|
|
11913 rm -rf conftest*
|
|
11914 ac_cv_os_cray=no
|
|
11915 fi
|
|
11916 rm -f conftest*
|
|
11917
|
|
11918
|
|
11919 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
11920 if test $ac_cv_os_cray = yes; then
|
|
11921 for ac_func in _getb67 GETB67 getb67; do
|
|
11922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
11923 echo "configure:11924: checking for $ac_func" >&5
|
|
11924
|
|
11925 cat > conftest.$ac_ext <<EOF
|
|
11926 #line 11927 "configure"
|
149
|
11927 #include "confdefs.h"
|
|
11928 /* System header to define __stub macros and hopefully few prototypes,
|
|
11929 which can conflict with char $ac_func(); below. */
|
|
11930 #include <assert.h>
|
|
11931 /* Override any gcc2 internal prototype to avoid an error. */
|
|
11932 /* We use char because int might match the return type of a gcc2
|
|
11933 builtin and then its argument prototype would still apply. */
|
|
11934 char $ac_func();
|
|
11935
|
|
11936 int main() {
|
|
11937
|
|
11938 /* The GNU C library defines this for functions which it implements
|
|
11939 to always fail with ENOSYS. Some functions are actually named
|
|
11940 something starting with __ and the normal name is an alias. */
|
|
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
11942 choke me
|
|
11943 #else
|
|
11944 $ac_func();
|
|
11945 #endif
|
|
11946
|
|
11947 ; return 0; }
|
|
11948 EOF
|
561
|
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
11950 rm -rf conftest*
|
|
11951 eval "ac_cv_func_$ac_func=yes"
|
|
11952 else
|
|
11953 echo "configure: failed program was:" >&5
|
|
11954 cat conftest.$ac_ext >&5
|
|
11955 rm -rf conftest*
|
|
11956 eval "ac_cv_func_$ac_func=no"
|
|
11957 fi
|
|
11958 rm -f conftest*
|
|
11959
|
|
11960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
11961 echo "$ac_t""yes" 1>&6
|
|
11962 { test "$extra_verbose" = "yes" && cat << EOF
|
|
11963 Defining CRAY_STACKSEG_END = $ac_func
|
|
11964 EOF
|
|
11965 cat >> confdefs.h <<EOF
|
|
11966 #define CRAY_STACKSEG_END $ac_func
|
|
11967 EOF
|
|
11968 }
|
|
11969
|
|
11970 break
|
|
11971 else
|
|
11972 echo "$ac_t""no" 1>&6
|
|
11973 fi
|
|
11974
|
|
11975 done
|
|
11976 fi
|
|
11977
|
|
11978 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
561
|
11979 echo "configure:11980: checking stack direction for C alloca" >&5
|
|
11980
|
|
11981 cat > conftest.$ac_ext <<EOF
|
|
11982 #line 11983 "configure"
|
0
|
11983 #include "confdefs.h"
|
|
11984 find_stack_direction ()
|
|
11985 {
|
|
11986 static char *addr = 0;
|
|
11987 auto char dummy;
|
|
11988 if (addr == 0)
|
|
11989 {
|
|
11990 addr = &dummy;
|
|
11991 return find_stack_direction ();
|
|
11992 }
|
|
11993 else
|
|
11994 return (&dummy > addr) ? 1 : -1;
|
|
11995 }
|
|
11996 main ()
|
|
11997 {
|
|
11998 exit (find_stack_direction() < 0);
|
|
11999 }
|
|
12000 EOF
|
561
|
12001 if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12002 then
|
|
12003 ac_cv_c_stack_direction=1
|
|
12004 else
|
373
|
12005 conftest_rc="$?"
|
149
|
12006 echo "configure: failed program was:" >&5
|
|
12007 cat conftest.$ac_ext >&5
|
|
12008 rm -fr conftest*
|
|
12009 ac_cv_c_stack_direction=-1
|
0
|
12010 fi
|
|
12011 rm -fr conftest*
|
149
|
12012
|
|
12013 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
12014 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12015 Defining STACK_DIRECTION = $ac_cv_c_stack_direction
|
|
12016 EOF
|
|
12017 cat >> confdefs.h <<EOF
|
|
12018 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
12019 EOF
|
|
12020 }
|
|
12021
|
|
12022 fi
|
|
12023
|
444
|
12024 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then
|
151
|
12025 echo " xemacs will be linked with \"$ALLOCA\""
|
|
12026 fi
|
444
|
12027 fi
|
149
|
12028
|
|
12029 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
|
|
12030 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
|
561
|
12031 echo "configure:12032: checking for vfork.h" >&5
|
|
12032
|
|
12033 cat > conftest.$ac_ext <<EOF
|
|
12034 #line 12035 "configure"
|
0
|
12035 #include "confdefs.h"
|
|
12036 #include <vfork.h>
|
|
12037 EOF
|
149
|
12038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12039 { (eval echo configure:12040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12041 if test -z "$ac_err"; then
|
|
12042 rm -rf conftest*
|
149
|
12043 eval "ac_cv_header_$ac_safe=yes"
|
|
12044 else
|
|
12045 echo "$ac_err" >&5
|
|
12046 echo "configure: failed program was:" >&5
|
|
12047 cat conftest.$ac_ext >&5
|
|
12048 rm -rf conftest*
|
|
12049 eval "ac_cv_header_$ac_safe=no"
|
|
12050 fi
|
|
12051 rm -f conftest*
|
|
12052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12053 echo "$ac_t""yes" 1>&6
|
|
12054 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12055 Defining HAVE_VFORK_H
|
|
12056 EOF
|
|
12057 cat >> confdefs.h <<\EOF
|
|
12058 #define HAVE_VFORK_H 1
|
|
12059 EOF
|
|
12060 }
|
|
12061
|
|
12062 else
|
|
12063 echo "$ac_t""no" 1>&6
|
|
12064 fi
|
|
12065
|
|
12066 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
|
561
|
12067 echo "configure:12068: checking for working vfork" >&5
|
|
12068
|
|
12069 cat > conftest.$ac_ext <<EOF
|
|
12070 #line 12071 "configure"
|
0
|
12071 #include "confdefs.h"
|
|
12072 /* Thanks to Paul Eggert for this test. */
|
|
12073 #include <stdio.h>
|
|
12074 #include <sys/types.h>
|
|
12075 #include <sys/stat.h>
|
|
12076 #ifdef HAVE_UNISTD_H
|
|
12077 #include <unistd.h>
|
|
12078 #endif
|
|
12079 #ifdef HAVE_VFORK_H
|
|
12080 #include <vfork.h>
|
|
12081 #endif
|
149
|
12082 /* On some sparc systems, changes by the child to local and incoming
|
|
12083 argument registers are propagated back to the parent.
|
|
12084 The compiler is told about this with #include <vfork.h>,
|
|
12085 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
|
|
12086 Test for this by using a static variable whose address
|
|
12087 is put into a register that is clobbered by the vfork. */
|
|
12088 static
|
|
12089 #ifdef __cplusplus
|
|
12090 sparc_address_test (int arg)
|
|
12091 #else
|
|
12092 sparc_address_test (arg) int arg;
|
|
12093 #endif
|
|
12094 {
|
|
12095 static pid_t child;
|
|
12096 if (!child) {
|
|
12097 child = vfork ();
|
|
12098 if (child < 0) {
|
|
12099 perror ("vfork");
|
|
12100 _exit(2);
|
|
12101 }
|
|
12102 if (!child) {
|
|
12103 arg = getpid();
|
|
12104 write(-1, "", 0);
|
|
12105 _exit (arg);
|
|
12106 }
|
|
12107 }
|
|
12108 }
|
0
|
12109 main() {
|
|
12110 pid_t parent = getpid ();
|
|
12111 pid_t child;
|
|
12112
|
149
|
12113 sparc_address_test ();
|
0
|
12114
|
|
12115 child = vfork ();
|
|
12116
|
|
12117 if (child == 0) {
|
149
|
12118 /* Here is another test for sparc vfork register problems.
|
|
12119 This test uses lots of local variables, at least
|
0
|
12120 as many local variables as main has allocated so far
|
|
12121 including compiler temporaries. 4 locals are enough for
|
149
|
12122 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
|
0
|
12123 A buggy compiler should reuse the register of parent
|
|
12124 for one of the local variables, since it will think that
|
|
12125 parent can't possibly be used any more in this routine.
|
|
12126 Assigning to the local variable will thus munge parent
|
|
12127 in the parent process. */
|
|
12128 pid_t
|
|
12129 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
12130 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
12131 /* Convince the compiler that p..p7 are live; otherwise, it might
|
|
12132 use the same hardware register for all 8 local variables. */
|
|
12133 if (p != p1 || p != p2 || p != p3 || p != p4
|
|
12134 || p != p5 || p != p6 || p != p7)
|
|
12135 _exit(1);
|
|
12136
|
|
12137 /* On some systems (e.g. IRIX 3.3),
|
|
12138 vfork doesn't separate parent from child file descriptors.
|
|
12139 If the child closes a descriptor before it execs or exits,
|
|
12140 this munges the parent's descriptor as well.
|
|
12141 Test for this by closing stdout in the child. */
|
|
12142 _exit(close(fileno(stdout)) != 0);
|
|
12143 } else {
|
|
12144 int status;
|
|
12145 struct stat st;
|
|
12146
|
|
12147 while (wait(&status) != child)
|
|
12148 ;
|
|
12149 exit(
|
|
12150 /* Was there some problem with vforking? */
|
|
12151 child < 0
|
|
12152
|
|
12153 /* Did the child fail? (This shouldn't happen.) */
|
|
12154 || status
|
|
12155
|
|
12156 /* Did the vfork/compiler bug occur? */
|
|
12157 || parent != getpid()
|
|
12158
|
|
12159 /* Did the file descriptor bug occur? */
|
|
12160 || fstat(fileno(stdout), &st) != 0
|
|
12161 );
|
|
12162 }
|
|
12163 }
|
|
12164 EOF
|
561
|
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12166 then
|
|
12167 ac_cv_func_vfork_works=yes
|
|
12168 else
|
373
|
12169 conftest_rc="$?"
|
149
|
12170 echo "configure: failed program was:" >&5
|
|
12171 cat conftest.$ac_ext >&5
|
|
12172 rm -fr conftest*
|
|
12173 ac_cv_func_vfork_works=no
|
0
|
12174 fi
|
|
12175 rm -fr conftest*
|
|
12176
|
149
|
12177 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
|
|
12178 if test $ac_cv_func_vfork_works = no; then
|
|
12179 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12180 Defining vfork = fork
|
|
12181 EOF
|
|
12182 cat >> confdefs.h <<\EOF
|
|
12183 #define vfork fork
|
|
12184 EOF
|
|
12185 }
|
|
12186
|
|
12187 fi
|
|
12188
|
|
12189
|
|
12190 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
|
561
|
12191 echo "configure:12192: checking for working strcoll" >&5
|
|
12192
|
|
12193 cat > conftest.$ac_ext <<EOF
|
|
12194 #line 12195 "configure"
|
0
|
12195 #include "confdefs.h"
|
|
12196 #include <string.h>
|
|
12197 main ()
|
|
12198 {
|
|
12199 exit (strcoll ("abc", "def") >= 0 ||
|
|
12200 strcoll ("ABC", "DEF") >= 0 ||
|
|
12201 strcoll ("123", "456") >= 0);
|
|
12202 }
|
|
12203 EOF
|
561
|
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12205 then
|
|
12206 ac_cv_func_strcoll_works=yes
|
|
12207 else
|
373
|
12208 conftest_rc="$?"
|
149
|
12209 echo "configure: failed program was:" >&5
|
|
12210 cat conftest.$ac_ext >&5
|
|
12211 rm -fr conftest*
|
|
12212 ac_cv_func_strcoll_works=no
|
0
|
12213 fi
|
|
12214 rm -fr conftest*
|
|
12215
|
149
|
12216 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
|
|
12217 if test $ac_cv_func_strcoll_works = yes; then
|
|
12218 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12219 Defining HAVE_STRCOLL
|
|
12220 EOF
|
|
12221 cat >> confdefs.h <<\EOF
|
|
12222 #define HAVE_STRCOLL 1
|
|
12223 EOF
|
|
12224 }
|
|
12225
|
|
12226 fi
|
|
12227
|
|
12228
|
163
|
12229 for ac_func in getpgrp
|
|
12230 do
|
|
12231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
12232 echo "configure:12233: checking for $ac_func" >&5
|
|
12233
|
|
12234 cat > conftest.$ac_ext <<EOF
|
|
12235 #line 12236 "configure"
|
163
|
12236 #include "confdefs.h"
|
|
12237 /* System header to define __stub macros and hopefully few prototypes,
|
|
12238 which can conflict with char $ac_func(); below. */
|
|
12239 #include <assert.h>
|
|
12240 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12241 /* We use char because int might match the return type of a gcc2
|
|
12242 builtin and then its argument prototype would still apply. */
|
|
12243 char $ac_func();
|
|
12244
|
|
12245 int main() {
|
|
12246
|
|
12247 /* The GNU C library defines this for functions which it implements
|
|
12248 to always fail with ENOSYS. Some functions are actually named
|
|
12249 something starting with __ and the normal name is an alias. */
|
|
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
12251 choke me
|
|
12252 #else
|
|
12253 $ac_func();
|
|
12254 #endif
|
|
12255
|
|
12256 ; return 0; }
|
|
12257 EOF
|
561
|
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
163
|
12259 rm -rf conftest*
|
|
12260 eval "ac_cv_func_$ac_func=yes"
|
|
12261 else
|
|
12262 echo "configure: failed program was:" >&5
|
|
12263 cat conftest.$ac_ext >&5
|
|
12264 rm -rf conftest*
|
|
12265 eval "ac_cv_func_$ac_func=no"
|
|
12266 fi
|
|
12267 rm -f conftest*
|
|
12268
|
|
12269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
12270 echo "$ac_t""yes" 1>&6
|
|
12271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
12272 { test "$extra_verbose" = "yes" && cat << EOF
|
|
12273 Defining $ac_tr_func
|
|
12274 EOF
|
|
12275 cat >> confdefs.h <<EOF
|
|
12276 #define $ac_tr_func 1
|
|
12277 EOF
|
|
12278 }
|
|
12279
|
|
12280 else
|
|
12281 echo "$ac_t""no" 1>&6
|
|
12282 fi
|
|
12283 done
|
|
12284
|
|
12285 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
|
561
|
12286 echo "configure:12287: checking whether getpgrp takes no argument" >&5
|
|
12287
|
|
12288 cat > conftest.$ac_ext <<EOF
|
|
12289 #line 12290 "configure"
|
163
|
12290 #include "confdefs.h"
|
|
12291
|
|
12292 /*
|
|
12293 * If this system has a BSD-style getpgrp(),
|
|
12294 * which takes a pid argument, exit unsuccessfully.
|
|
12295 *
|
|
12296 * Snarfed from Chet Ramey's bash pgrp.c test program
|
|
12297 */
|
|
12298 #include <stdio.h>
|
|
12299 #include <sys/types.h>
|
|
12300
|
|
12301 int pid;
|
|
12302 int pg1, pg2, pg3, pg4;
|
|
12303 int ng, np, s, child;
|
|
12304
|
|
12305 main()
|
|
12306 {
|
|
12307 pid = getpid();
|
|
12308 pg1 = getpgrp(0);
|
|
12309 pg2 = getpgrp();
|
|
12310 pg3 = getpgrp(pid);
|
|
12311 pg4 = getpgrp(1);
|
|
12312
|
|
12313 /*
|
|
12314 * If all of these values are the same, it's pretty sure that
|
|
12315 * we're on a system that ignores getpgrp's first argument.
|
|
12316 */
|
|
12317 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
|
|
12318 exit(0);
|
|
12319
|
|
12320 child = fork();
|
|
12321 if (child < 0)
|
|
12322 exit(1);
|
|
12323 else if (child == 0) {
|
|
12324 np = getpid();
|
|
12325 /*
|
|
12326 * If this is Sys V, this will not work; pgrp will be
|
|
12327 * set to np because setpgrp just changes a pgrp to be
|
|
12328 * the same as the pid.
|
|
12329 */
|
|
12330 setpgrp(np, pg1);
|
|
12331 ng = getpgrp(0); /* Same result for Sys V and BSD */
|
|
12332 if (ng == pg1) {
|
|
12333 exit(1);
|
|
12334 } else {
|
|
12335 exit(0);
|
|
12336 }
|
|
12337 } else {
|
|
12338 wait(&s);
|
|
12339 exit(s>>8);
|
|
12340 }
|
|
12341 }
|
|
12342
|
|
12343 EOF
|
561
|
12344 if { (eval echo configure:12345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
163
|
12345 then
|
|
12346 ac_cv_func_getpgrp_void=yes
|
|
12347 else
|
373
|
12348 conftest_rc="$?"
|
163
|
12349 echo "configure: failed program was:" >&5
|
|
12350 cat conftest.$ac_ext >&5
|
|
12351 rm -fr conftest*
|
|
12352 ac_cv_func_getpgrp_void=no
|
|
12353 fi
|
|
12354 rm -fr conftest*
|
|
12355
|
|
12356
|
|
12357 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
|
|
12358 if test $ac_cv_func_getpgrp_void = yes; then
|
|
12359 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12360 Defining GETPGRP_VOID
|
|
12361 EOF
|
|
12362 cat >> confdefs.h <<\EOF
|
|
12363 #define GETPGRP_VOID 1
|
|
12364 EOF
|
|
12365 }
|
|
12366
|
|
12367 fi
|
|
12368
|
|
12369
|
149
|
12370 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
561
|
12371 echo "configure:12372: checking for working mmap" >&5
|
155
|
12372 case "$opsys" in ultrix* ) have_mmap=no ;; *)
|
|
12373 cat > conftest.$ac_ext <<EOF
|
561
|
12374 #line 12375 "configure"
|
153
|
12375 #include "confdefs.h"
|
|
12376 #include <stdio.h>
|
|
12377 #include <unistd.h>
|
149
|
12378 #include <fcntl.h>
|
|
12379 #include <sys/mman.h>
|
|
12380
|
153
|
12381 #ifndef MAP_VARIABLE
|
|
12382 #define MAP_VARIABLE 0
|
0
|
12383 #endif
|
149
|
12384
|
153
|
12385 #ifndef MAP_FAILED
|
|
12386 #define MAP_FAILED -1
|
|
12387 #endif
|
|
12388
|
|
12389 int main (int argc, char *argv[])
|
0
|
12390 {
|
153
|
12391 int fd = -1;
|
|
12392 caddr_t p;
|
|
12393 #ifndef MAP_ANONYMOUS
|
|
12394 fd = open ("/dev/zero", O_RDWR);
|
|
12395 if (fd < 0)
|
|
12396 return 1;
|
|
12397 #define MAP_ANONYMOUS 0
|
|
12398 #endif
|
|
12399 if (mmap(0, 1024, PROT_READ | PROT_WRITE,
|
|
12400 MAP_PRIVATE | MAP_VARIABLE | MAP_ANONYMOUS,
|
|
12401 fd, 0) != (void *) MAP_FAILED)
|
|
12402 return 0;
|
|
12403 perror ("conftest: mmap failed");
|
|
12404 return 1;
|
|
12405 }
|
|
12406 EOF
|
561
|
12407 if { (eval echo configure:12408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
149
|
12408 then
|
153
|
12409 have_mmap=yes
|
149
|
12410 else
|
373
|
12411 conftest_rc="$?"
|
149
|
12412 echo "configure: failed program was:" >&5
|
|
12413 cat conftest.$ac_ext >&5
|
|
12414 rm -fr conftest*
|
153
|
12415 have_mmap=no
|
149
|
12416 fi
|
155
|
12417 rm -fr conftest* ;;
|
|
12418 esac
|
153
|
12419 echo "$ac_t""$have_mmap" 1>&6
|
|
12420 test "$have_mmap" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
12421 Defining HAVE_MMAP
|
|
12422 EOF
|
|
12423 cat >> confdefs.h <<\EOF
|
|
12424 #define HAVE_MMAP 1
|
|
12425 EOF
|
|
12426 }
|
|
12427
|
412
|
12428
|
535
|
12429 case "$opsys" in cygwin*)
|
462
|
12430 test "$rel_alloc" = "default" && rel_alloc=no ;;
|
|
12431 esac
|
442
|
12432 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
|
|
12433 if test "$rel_alloc $have_mmap" = "default yes"; then
|
|
12434 if test "$doug_lea_malloc" = "yes"; then
|
|
12435 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
|
561
|
12436 echo "configure:12437: checking for M_MMAP_THRESHOLD" >&5
|
442
|
12437 cat > conftest.$ac_ext <<EOF
|
561
|
12438 #line 12439 "configure"
|
442
|
12439 #include "confdefs.h"
|
|
12440 #include <malloc.h>
|
|
12441 int main() {
|
|
12442
|
|
12443 #ifndef M_MMAP_THRESHOLD
|
|
12444 #error No M_MMAP_THRESHOLD :-(
|
|
12445 !@+$%^&*_)(_ - unlikely to compile...
|
|
12446 #endif
|
|
12447
|
|
12448 ; return 0; }
|
|
12449 EOF
|
561
|
12450 if { (eval echo configure:12451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
12451 rm -rf conftest*
|
|
12452 rel_alloc=no; echo "$ac_t""yes" 1>&6;
|
|
12453 else
|
|
12454 echo "configure: failed program was:" >&5
|
|
12455 cat conftest.$ac_ext >&5
|
|
12456 rm -rf conftest*
|
|
12457 rel_alloc=yes; echo "$ac_t""no" 1>&6;
|
|
12458 fi
|
|
12459 rm -f conftest*
|
|
12460 else
|
|
12461 rel_alloc=yes
|
|
12462 fi
|
|
12463 fi
|
149
|
12464 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12465 Defining REL_ALLOC
|
|
12466 EOF
|
|
12467 cat >> confdefs.h <<\EOF
|
|
12468 #define REL_ALLOC 1
|
|
12469 EOF
|
|
12470 }
|
|
12471
|
|
12472
|
175
|
12473 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
|
|
12474 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
|
561
|
12475 echo "configure:12476: checking for termios.h" >&5
|
|
12476
|
|
12477 cat > conftest.$ac_ext <<EOF
|
|
12478 #line 12479 "configure"
|
175
|
12479 #include "confdefs.h"
|
|
12480 #include <termios.h>
|
|
12481 EOF
|
|
12482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12483 { (eval echo configure:12484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
12485 if test -z "$ac_err"; then
|
|
12486 rm -rf conftest*
|
|
12487 eval "ac_cv_header_$ac_safe=yes"
|
|
12488 else
|
|
12489 echo "$ac_err" >&5
|
|
12490 echo "configure: failed program was:" >&5
|
|
12491 cat conftest.$ac_ext >&5
|
|
12492 rm -rf conftest*
|
|
12493 eval "ac_cv_header_$ac_safe=no"
|
|
12494 fi
|
|
12495 rm -f conftest*
|
|
12496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12497 echo "$ac_t""yes" 1>&6
|
|
12498 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12499 Defining HAVE_TERMIOS
|
|
12500 EOF
|
|
12501 cat >> confdefs.h <<\EOF
|
|
12502 #define HAVE_TERMIOS 1
|
|
12503 EOF
|
|
12504 }
|
|
12505
|
|
12506 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12507 Defining SIGNALS_VIA_CHARACTERS
|
|
12508 EOF
|
|
12509 cat >> confdefs.h <<\EOF
|
|
12510 #define SIGNALS_VIA_CHARACTERS 1
|
|
12511 EOF
|
|
12512 }
|
|
12513
|
|
12514 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12515 Defining NO_TERMIO
|
|
12516 EOF
|
|
12517 cat >> confdefs.h <<\EOF
|
|
12518 #define NO_TERMIO 1
|
|
12519 EOF
|
|
12520 }
|
|
12521
|
|
12522 else
|
|
12523 echo "$ac_t""no" 1>&6
|
|
12524 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
|
|
12525 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
|
561
|
12526 echo "configure:12527: checking for termio.h" >&5
|
|
12527
|
|
12528 cat > conftest.$ac_ext <<EOF
|
|
12529 #line 12530 "configure"
|
175
|
12530 #include "confdefs.h"
|
|
12531 #include <termio.h>
|
|
12532 EOF
|
|
12533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12534 { (eval echo configure:12535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
175
|
12536 if test -z "$ac_err"; then
|
|
12537 rm -rf conftest*
|
|
12538 eval "ac_cv_header_$ac_safe=yes"
|
|
12539 else
|
|
12540 echo "$ac_err" >&5
|
|
12541 echo "configure: failed program was:" >&5
|
|
12542 cat conftest.$ac_ext >&5
|
|
12543 rm -rf conftest*
|
|
12544 eval "ac_cv_header_$ac_safe=no"
|
|
12545 fi
|
|
12546 rm -f conftest*
|
|
12547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12548 echo "$ac_t""yes" 1>&6
|
|
12549 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12550 Defining HAVE_TERMIO
|
|
12551 EOF
|
|
12552 cat >> confdefs.h <<\EOF
|
|
12553 #define HAVE_TERMIO 1
|
|
12554 EOF
|
|
12555 }
|
|
12556
|
|
12557 else
|
|
12558 echo "$ac_t""no" 1>&6
|
|
12559 fi
|
|
12560
|
|
12561 fi
|
|
12562
|
|
12563
|
|
12564
|
149
|
12565 echo $ac_n "checking for socket""... $ac_c" 1>&6
|
561
|
12566 echo "configure:12567: checking for socket" >&5
|
|
12567
|
|
12568 cat > conftest.$ac_ext <<EOF
|
|
12569 #line 12570 "configure"
|
149
|
12570 #include "confdefs.h"
|
|
12571 /* System header to define __stub macros and hopefully few prototypes,
|
|
12572 which can conflict with char socket(); below. */
|
|
12573 #include <assert.h>
|
|
12574 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12575 /* We use char because int might match the return type of a gcc2
|
|
12576 builtin and then its argument prototype would still apply. */
|
|
12577 char socket();
|
|
12578
|
|
12579 int main() {
|
|
12580
|
0
|
12581 /* The GNU C library defines this for functions which it implements
|
|
12582 to always fail with ENOSYS. Some functions are actually named
|
|
12583 something starting with __ and the normal name is an alias. */
|
|
12584 #if defined (__stub_socket) || defined (__stub___socket)
|
|
12585 choke me
|
|
12586 #else
|
149
|
12587 socket();
|
0
|
12588 #endif
|
149
|
12589
|
0
|
12590 ; return 0; }
|
|
12591 EOF
|
561
|
12592 if { (eval echo configure:12593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12593 rm -rf conftest*
|
|
12594 eval "ac_cv_func_socket=yes"
|
|
12595 else
|
|
12596 echo "configure: failed program was:" >&5
|
|
12597 cat conftest.$ac_ext >&5
|
|
12598 rm -rf conftest*
|
|
12599 eval "ac_cv_func_socket=no"
|
|
12600 fi
|
|
12601 rm -f conftest*
|
|
12602
|
|
12603 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
12604 echo "$ac_t""yes" 1>&6
|
|
12605 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
|
|
12606 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
|
561
|
12607 echo "configure:12608: checking for netinet/in.h" >&5
|
|
12608
|
|
12609 cat > conftest.$ac_ext <<EOF
|
|
12610 #line 12611 "configure"
|
0
|
12611 #include "confdefs.h"
|
|
12612 #include <netinet/in.h>
|
|
12613 EOF
|
149
|
12614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12615 { (eval echo configure:12616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12617 if test -z "$ac_err"; then
|
149
|
12618 rm -rf conftest*
|
|
12619 eval "ac_cv_header_$ac_safe=yes"
|
|
12620 else
|
|
12621 echo "$ac_err" >&5
|
|
12622 echo "configure: failed program was:" >&5
|
|
12623 cat conftest.$ac_ext >&5
|
|
12624 rm -rf conftest*
|
|
12625 eval "ac_cv_header_$ac_safe=no"
|
|
12626 fi
|
|
12627 rm -f conftest*
|
|
12628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12629 echo "$ac_t""yes" 1>&6
|
|
12630 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
|
|
12631 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
|
561
|
12632 echo "configure:12633: checking for arpa/inet.h" >&5
|
|
12633
|
|
12634 cat > conftest.$ac_ext <<EOF
|
|
12635 #line 12636 "configure"
|
0
|
12636 #include "confdefs.h"
|
|
12637 #include <arpa/inet.h>
|
|
12638 EOF
|
149
|
12639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12640 { (eval echo configure:12641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12642 if test -z "$ac_err"; then
|
149
|
12643 rm -rf conftest*
|
|
12644 eval "ac_cv_header_$ac_safe=yes"
|
|
12645 else
|
|
12646 echo "$ac_err" >&5
|
|
12647 echo "configure: failed program was:" >&5
|
|
12648 cat conftest.$ac_ext >&5
|
|
12649 rm -rf conftest*
|
|
12650 eval "ac_cv_header_$ac_safe=no"
|
|
12651 fi
|
|
12652 rm -f conftest*
|
|
12653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12654 echo "$ac_t""yes" 1>&6
|
0
|
12655
|
149
|
12656 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12657 Defining HAVE_SOCKETS
|
|
12658 EOF
|
|
12659 cat >> confdefs.h <<\EOF
|
|
12660 #define HAVE_SOCKETS 1
|
|
12661 EOF
|
|
12662 }
|
|
12663
|
|
12664 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
|
561
|
12665 echo "configure:12666: checking "for sun_len member in struct sockaddr_un"" >&5
|
149
|
12666 cat > conftest.$ac_ext <<EOF
|
561
|
12667 #line 12668 "configure"
|
149
|
12668 #include "confdefs.h"
|
|
12669
|
0
|
12670 #include <sys/types.h>
|
149
|
12671 #include <sys/socket.h>
|
|
12672 #include <sys/un.h>
|
|
12673
|
|
12674 int main() {
|
|
12675 static struct sockaddr_un x; x.sun_len = 1;
|
|
12676 ; return 0; }
|
|
12677 EOF
|
561
|
12678 if { (eval echo configure:12679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12679 rm -rf conftest*
|
|
12680 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12681 Defining HAVE_SOCKADDR_SUN_LEN
|
|
12682 EOF
|
|
12683 cat >> confdefs.h <<\EOF
|
|
12684 #define HAVE_SOCKADDR_SUN_LEN 1
|
|
12685 EOF
|
|
12686 }
|
|
12687
|
|
12688 else
|
|
12689 echo "configure: failed program was:" >&5
|
|
12690 cat conftest.$ac_ext >&5
|
|
12691 rm -rf conftest*
|
|
12692 echo "$ac_t""no" 1>&6
|
|
12693 fi
|
|
12694 rm -f conftest*
|
259
|
12695 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
|
561
|
12696 echo "configure:12697: checking "for ip_mreq struct in netinet/in.h"" >&5
|
259
|
12697 cat > conftest.$ac_ext <<EOF
|
561
|
12698 #line 12699 "configure"
|
284
|
12699 #include "confdefs.h"
|
|
12700
|
|
12701 #include <sys/types.h>
|
259
|
12702 #include <netinet/in.h>
|
|
12703
|
|
12704 int main() {
|
|
12705 static struct ip_mreq x;
|
|
12706 ; return 0; }
|
|
12707 EOF
|
561
|
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
259
|
12709 rm -rf conftest*
|
|
12710 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12711 Defining HAVE_MULTICAST
|
|
12712 EOF
|
|
12713 cat >> confdefs.h <<\EOF
|
|
12714 #define HAVE_MULTICAST 1
|
|
12715 EOF
|
|
12716 }
|
|
12717
|
|
12718 else
|
|
12719 echo "configure: failed program was:" >&5
|
|
12720 cat conftest.$ac_ext >&5
|
|
12721 rm -rf conftest*
|
|
12722 echo "$ac_t""no" 1>&6
|
|
12723 fi
|
|
12724 rm -f conftest*
|
149
|
12725 else
|
|
12726 echo "$ac_t""no" 1>&6
|
|
12727 fi
|
|
12728
|
|
12729 else
|
|
12730 echo "$ac_t""no" 1>&6
|
|
12731 fi
|
|
12732
|
|
12733 else
|
|
12734 echo "$ac_t""no" 1>&6
|
|
12735 fi
|
|
12736
|
|
12737
|
|
12738 echo $ac_n "checking for msgget""... $ac_c" 1>&6
|
561
|
12739 echo "configure:12740: checking for msgget" >&5
|
|
12740
|
|
12741 cat > conftest.$ac_ext <<EOF
|
|
12742 #line 12743 "configure"
|
149
|
12743 #include "confdefs.h"
|
|
12744 /* System header to define __stub macros and hopefully few prototypes,
|
|
12745 which can conflict with char msgget(); below. */
|
|
12746 #include <assert.h>
|
|
12747 /* Override any gcc2 internal prototype to avoid an error. */
|
|
12748 /* We use char because int might match the return type of a gcc2
|
|
12749 builtin and then its argument prototype would still apply. */
|
|
12750 char msgget();
|
|
12751
|
|
12752 int main() {
|
|
12753
|
0
|
12754 /* The GNU C library defines this for functions which it implements
|
|
12755 to always fail with ENOSYS. Some functions are actually named
|
|
12756 something starting with __ and the normal name is an alias. */
|
|
12757 #if defined (__stub_msgget) || defined (__stub___msgget)
|
|
12758 choke me
|
|
12759 #else
|
149
|
12760 msgget();
|
0
|
12761 #endif
|
149
|
12762
|
0
|
12763 ; return 0; }
|
|
12764 EOF
|
561
|
12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
12766 rm -rf conftest*
|
|
12767 eval "ac_cv_func_msgget=yes"
|
|
12768 else
|
|
12769 echo "configure: failed program was:" >&5
|
|
12770 cat conftest.$ac_ext >&5
|
|
12771 rm -rf conftest*
|
|
12772 eval "ac_cv_func_msgget=no"
|
|
12773 fi
|
|
12774 rm -f conftest*
|
|
12775
|
|
12776 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
|
|
12777 echo "$ac_t""yes" 1>&6
|
|
12778 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
|
|
12779 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
|
561
|
12780 echo "configure:12781: checking for sys/ipc.h" >&5
|
|
12781
|
|
12782 cat > conftest.$ac_ext <<EOF
|
|
12783 #line 12784 "configure"
|
0
|
12784 #include "confdefs.h"
|
|
12785 #include <sys/ipc.h>
|
|
12786 EOF
|
149
|
12787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12788 { (eval echo configure:12789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12790 if test -z "$ac_err"; then
|
149
|
12791 rm -rf conftest*
|
|
12792 eval "ac_cv_header_$ac_safe=yes"
|
|
12793 else
|
|
12794 echo "$ac_err" >&5
|
|
12795 echo "configure: failed program was:" >&5
|
|
12796 cat conftest.$ac_ext >&5
|
|
12797 rm -rf conftest*
|
|
12798 eval "ac_cv_header_$ac_safe=no"
|
|
12799 fi
|
|
12800 rm -f conftest*
|
|
12801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12802 echo "$ac_t""yes" 1>&6
|
|
12803 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
|
|
12804 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
|
561
|
12805 echo "configure:12806: checking for sys/msg.h" >&5
|
|
12806
|
|
12807 cat > conftest.$ac_ext <<EOF
|
|
12808 #line 12809 "configure"
|
0
|
12809 #include "confdefs.h"
|
|
12810 #include <sys/msg.h>
|
|
12811 EOF
|
149
|
12812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12813 { (eval echo configure:12814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12815 if test -z "$ac_err"; then
|
149
|
12816 rm -rf conftest*
|
|
12817 eval "ac_cv_header_$ac_safe=yes"
|
|
12818 else
|
|
12819 echo "$ac_err" >&5
|
|
12820 echo "configure: failed program was:" >&5
|
|
12821 cat conftest.$ac_ext >&5
|
|
12822 rm -rf conftest*
|
|
12823 eval "ac_cv_header_$ac_safe=no"
|
|
12824 fi
|
|
12825 rm -f conftest*
|
|
12826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12827 echo "$ac_t""yes" 1>&6
|
|
12828 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12829 Defining HAVE_SYSVIPC
|
|
12830 EOF
|
|
12831 cat >> confdefs.h <<\EOF
|
|
12832 #define HAVE_SYSVIPC 1
|
|
12833 EOF
|
|
12834 }
|
|
12835
|
|
12836 else
|
|
12837 echo "$ac_t""no" 1>&6
|
|
12838 fi
|
|
12839
|
|
12840 else
|
|
12841 echo "$ac_t""no" 1>&6
|
|
12842 fi
|
|
12843
|
|
12844 else
|
|
12845 echo "$ac_t""no" 1>&6
|
|
12846 fi
|
|
12847
|
|
12848
|
|
12849 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
|
|
12850 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
|
561
|
12851 echo "configure:12852: checking for dirent.h" >&5
|
|
12852
|
|
12853 cat > conftest.$ac_ext <<EOF
|
|
12854 #line 12855 "configure"
|
0
|
12855 #include "confdefs.h"
|
|
12856 #include <dirent.h>
|
|
12857 EOF
|
149
|
12858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12859 { (eval echo configure:12860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12861 if test -z "$ac_err"; then
|
|
12862 rm -rf conftest*
|
149
|
12863 eval "ac_cv_header_$ac_safe=yes"
|
|
12864 else
|
|
12865 echo "$ac_err" >&5
|
|
12866 echo "configure: failed program was:" >&5
|
|
12867 cat conftest.$ac_ext >&5
|
|
12868 rm -rf conftest*
|
|
12869 eval "ac_cv_header_$ac_safe=no"
|
|
12870 fi
|
|
12871 rm -f conftest*
|
|
12872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12873 echo "$ac_t""yes" 1>&6
|
|
12874 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12875 Defining SYSV_SYSTEM_DIR
|
|
12876 EOF
|
|
12877 cat >> confdefs.h <<\EOF
|
|
12878 #define SYSV_SYSTEM_DIR 1
|
|
12879 EOF
|
|
12880 }
|
|
12881
|
|
12882 else
|
|
12883 echo "$ac_t""no" 1>&6
|
|
12884 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
|
|
12885 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
|
561
|
12886 echo "configure:12887: checking for sys/dir.h" >&5
|
|
12887
|
|
12888 cat > conftest.$ac_ext <<EOF
|
|
12889 #line 12890 "configure"
|
0
|
12890 #include "confdefs.h"
|
|
12891 #include <sys/dir.h>
|
|
12892 EOF
|
149
|
12893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12894 { (eval echo configure:12895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12896 if test -z "$ac_err"; then
|
149
|
12897 rm -rf conftest*
|
|
12898 eval "ac_cv_header_$ac_safe=yes"
|
|
12899 else
|
|
12900 echo "$ac_err" >&5
|
|
12901 echo "configure: failed program was:" >&5
|
|
12902 cat conftest.$ac_ext >&5
|
|
12903 rm -rf conftest*
|
|
12904 eval "ac_cv_header_$ac_safe=no"
|
|
12905 fi
|
|
12906 rm -f conftest*
|
|
12907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12908 echo "$ac_t""yes" 1>&6
|
0
|
12909 :
|
|
12910 else
|
149
|
12911 echo "$ac_t""no" 1>&6
|
|
12912 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12913 Defining NONSYSTEM_DIR_LIBRARY
|
|
12914 EOF
|
|
12915 cat >> confdefs.h <<\EOF
|
|
12916 #define NONSYSTEM_DIR_LIBRARY 1
|
|
12917 EOF
|
|
12918 }
|
|
12919
|
|
12920 fi
|
|
12921
|
|
12922 fi
|
|
12923
|
|
12924
|
|
12925 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
|
|
12926 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
|
561
|
12927 echo "configure:12928: checking for nlist.h" >&5
|
|
12928
|
|
12929 cat > conftest.$ac_ext <<EOF
|
|
12930 #line 12931 "configure"
|
0
|
12931 #include "confdefs.h"
|
|
12932 #include <nlist.h>
|
|
12933 EOF
|
149
|
12934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12935 { (eval echo configure:12936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
12937 if test -z "$ac_err"; then
|
|
12938 rm -rf conftest*
|
149
|
12939 eval "ac_cv_header_$ac_safe=yes"
|
|
12940 else
|
|
12941 echo "$ac_err" >&5
|
|
12942 echo "configure: failed program was:" >&5
|
|
12943 cat conftest.$ac_ext >&5
|
|
12944 rm -rf conftest*
|
|
12945 eval "ac_cv_header_$ac_safe=no"
|
|
12946 fi
|
|
12947 rm -f conftest*
|
|
12948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12949 echo "$ac_t""yes" 1>&6
|
|
12950 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
12951 Defining NLIST_STRUCT
|
|
12952 EOF
|
|
12953 cat >> confdefs.h <<\EOF
|
|
12954 #define NLIST_STRUCT 1
|
|
12955 EOF
|
|
12956 }
|
|
12957
|
|
12958 else
|
|
12959 echo "$ac_t""no" 1>&6
|
|
12960 fi
|
|
12961
|
|
12962
|
0
|
12963
|
149
|
12964 echo "checking "for sound support"" 1>&6
|
561
|
12965 echo "configure:12966: checking "for sound support"" >&5
|
155
|
12966 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
|
|
12967
|
149
|
12968 if test "$with_native_sound" != "no"; then
|
155
|
12969 if test -n "$native_sound_lib"; then
|
|
12970 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
|
|
12971 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
|
561
|
12972 echo "configure:12973: checking for multimedia/audio_device.h" >&5
|
|
12973
|
|
12974 cat > conftest.$ac_ext <<EOF
|
|
12975 #line 12976 "configure"
|
155
|
12976 #include "confdefs.h"
|
|
12977 #include <multimedia/audio_device.h>
|
|
12978 EOF
|
|
12979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
12980 { (eval echo configure:12981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
12981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
12982 if test -z "$ac_err"; then
|
|
12983 rm -rf conftest*
|
|
12984 eval "ac_cv_header_$ac_safe=yes"
|
|
12985 else
|
|
12986 echo "$ac_err" >&5
|
|
12987 echo "configure: failed program was:" >&5
|
|
12988 cat conftest.$ac_ext >&5
|
|
12989 rm -rf conftest*
|
|
12990 eval "ac_cv_header_$ac_safe=no"
|
|
12991 fi
|
|
12992 rm -f conftest*
|
|
12993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
12994 echo "$ac_t""yes" 1>&6
|
|
12995 sound_found=yes sound_cflags=""
|
|
12996 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
12997 echo " xemacs will be linked with \"sunplay.o\""
|
|
12998 fi
|
|
12999 else
|
|
13000 echo "$ac_t""no" 1>&6
|
|
13001 fi
|
|
13002
|
|
13003 fi
|
|
13004
|
|
13005 if test -z "$sound_found" -a -d "/usr/demo/SOUND"; then
|
|
13006 sound_found=yes
|
151
|
13007 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13008 echo " xemacs will be linked with \"sunplay.o\""
|
|
13009 fi
|
149
|
13010 if test -d "/usr/demo/SOUND/include"
|
|
13011 then sound_cflags="-I/usr/demo/SOUND/include"
|
|
13012 else sound_cflags="-I/usr/demo/SOUND"
|
|
13013 fi
|
|
13014 if test -z "$native_sound_lib" ; then
|
|
13015 if test -r "/usr/demo/SOUND/lib/libaudio.a"
|
|
13016 then native_sound_lib="/usr/demo/SOUND/lib/libaudio.a"
|
|
13017 else native_sound_lib="/usr/demo/SOUND/libaudio.a"
|
|
13018 fi
|
|
13019 fi
|
155
|
13020 fi
|
|
13021
|
|
13022 if test -z "$sound_found"; then
|
|
13023 case "$canonical" in
|
149
|
13024 *-sgi-* )
|
155
|
13025 if test -z "$native_sound_lib"; then
|
|
13026
|
149
|
13027 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
|
561
|
13028 echo "configure:13029: checking for ALopenport in -laudio" >&5
|
149
|
13029 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
|
|
13030
|
|
13031 xe_check_libs=" -laudio "
|
|
13032 cat > conftest.$ac_ext <<EOF
|
561
|
13033 #line 13034 "configure"
|
149
|
13034 #include "confdefs.h"
|
|
13035 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13036 /* We use char because int might match the return type of a gcc2
|
|
13037 builtin and then its argument prototype would still apply. */
|
|
13038 char ALopenport();
|
|
13039
|
|
13040 int main() {
|
|
13041 ALopenport()
|
|
13042 ; return 0; }
|
|
13043 EOF
|
561
|
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13045 rm -rf conftest*
|
|
13046 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13047 else
|
|
13048 echo "configure: failed program was:" >&5
|
|
13049 cat conftest.$ac_ext >&5
|
|
13050 rm -rf conftest*
|
|
13051 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13052 fi
|
|
13053 rm -f conftest*
|
|
13054 xe_check_libs=""
|
|
13055
|
151
|
13056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13057 echo "$ac_t""yes" 1>&6
|
|
13058 native_sound_lib="-laudio"
|
|
13059 else
|
|
13060 echo "$ac_t""no" 1>&6
|
|
13061 fi
|
|
13062
|
|
13063
|
155
|
13064 fi
|
|
13065 if test -n "$native_sound_lib"; then
|
|
13066 sound_found=yes sound_cflags=""
|
151
|
13067 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13068 echo " xemacs will be linked with \"sgiplay.o\""
|
|
13069 fi
|
149
|
13070 fi ;;
|
|
13071 hppa*-hp-hpux* )
|
155
|
13072 if test -z "$native_sound_lib"; then
|
|
13073
|
149
|
13074 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
|
561
|
13075 echo "configure:13076: checking for AOpenAudio in -lAlib" >&5
|
149
|
13076 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
|
|
13077
|
|
13078 xe_check_libs=" -lAlib "
|
|
13079 cat > conftest.$ac_ext <<EOF
|
561
|
13080 #line 13081 "configure"
|
149
|
13081 #include "confdefs.h"
|
|
13082 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13083 /* We use char because int might match the return type of a gcc2
|
|
13084 builtin and then its argument prototype would still apply. */
|
|
13085 char AOpenAudio();
|
|
13086
|
|
13087 int main() {
|
|
13088 AOpenAudio()
|
|
13089 ; return 0; }
|
|
13090 EOF
|
561
|
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13092 rm -rf conftest*
|
|
13093 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13094 else
|
|
13095 echo "configure: failed program was:" >&5
|
|
13096 cat conftest.$ac_ext >&5
|
|
13097 rm -rf conftest*
|
|
13098 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13099 fi
|
|
13100 rm -f conftest*
|
|
13101 xe_check_libs=""
|
|
13102
|
151
|
13103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13104 echo "$ac_t""yes" 1>&6
|
|
13105 native_sound_lib="-lAlib"
|
|
13106 else
|
|
13107 echo "$ac_t""no" 1>&6
|
|
13108 fi
|
|
13109
|
|
13110
|
155
|
13111 fi
|
|
13112 if test -n "$native_sound_lib"; then
|
|
13113 sound_found=yes
|
151
|
13114 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13115 echo " xemacs will be linked with \"hpplay.o\""
|
|
13116 fi
|
169
|
13117 if test "$GCC" = "yes" # Kludge city
|
149
|
13118 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples"
|
|
13119 else sound_cflags="+e -I/usr/audio/examples"
|
|
13120 fi
|
|
13121 fi ;;
|
0
|
13122 esac
|
|
13123 fi
|
149
|
13124
|
155
|
13125 if test -z "$sound_found"; then
|
553
|
13126 if test "$with_msw" = "yes"; then
|
|
13127 sound_found=yes
|
|
13128 native_sound_lib=
|
|
13129 fi
|
|
13130 fi
|
|
13131
|
|
13132 if test -z "$sound_found"; then
|
149
|
13133 for dir in "machine" "sys" "linux"; do
|
|
13134 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
|
|
13135 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
|
561
|
13136 echo "configure:13137: checking for ${dir}/soundcard.h" >&5
|
|
13137
|
|
13138 cat > conftest.$ac_ext <<EOF
|
|
13139 #line 13140 "configure"
|
149
|
13140 #include "confdefs.h"
|
|
13141 #include <${dir}/soundcard.h>
|
|
13142 EOF
|
|
13143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13144 { (eval echo configure:13145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
13146 if test -z "$ac_err"; then
|
|
13147 rm -rf conftest*
|
|
13148 eval "ac_cv_header_$ac_safe=yes"
|
|
13149 else
|
|
13150 echo "$ac_err" >&5
|
|
13151 echo "configure: failed program was:" >&5
|
|
13152 cat conftest.$ac_ext >&5
|
|
13153 rm -rf conftest*
|
|
13154 eval "ac_cv_header_$ac_safe=no"
|
|
13155 fi
|
|
13156 rm -f conftest*
|
|
13157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13158 echo "$ac_t""yes" 1>&6
|
|
13159 sound_found=yes
|
426
|
13160 need_miscplay=yes
|
151
|
13161 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then
|
|
13162 echo " xemacs will be linked with \"linuxplay.o\""
|
|
13163 fi
|
149
|
13164 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13165 Defining SOUNDCARD_H_FILE = "${dir}/soundcard.h"
|
|
13166 EOF
|
|
13167 cat >> confdefs.h <<EOF
|
|
13168 #define SOUNDCARD_H_FILE "${dir}/soundcard.h"
|
149
|
13169 EOF
|
|
13170 }
|
|
13171
|
|
13172 break
|
|
13173 else
|
|
13174 echo "$ac_t""no" 1>&6
|
|
13175 fi
|
|
13176
|
|
13177 done
|
100
|
13178 fi
|
149
|
13179
|
|
13180 test "$sound_found" = "yes" && with_native_sound=yes
|
|
13181 fi
|
|
13182
|
|
13183 if test "$with_native_sound" = "yes"; then
|
|
13184 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13185 Defining HAVE_NATIVE_SOUND
|
|
13186 EOF
|
|
13187 cat >> confdefs.h <<\EOF
|
|
13188 #define HAVE_NATIVE_SOUND 1
|
|
13189 EOF
|
|
13190 }
|
|
13191
|
151
|
13192 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
|
13193 fi
|
|
13194
|
432
|
13195 if test "$with_nas_sound" != "no"; then
|
|
13196 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
|
|
13197 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
|
561
|
13198 echo "configure:13199: checking for audio/audiolib.h" >&5
|
|
13199
|
|
13200 cat > conftest.$ac_ext <<EOF
|
|
13201 #line 13202 "configure"
|
432
|
13202 #include "confdefs.h"
|
|
13203 #include <audio/audiolib.h>
|
|
13204 EOF
|
|
13205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13206 { (eval echo configure:13207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
432
|
13207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
13208 if test -z "$ac_err"; then
|
|
13209 rm -rf conftest*
|
|
13210 eval "ac_cv_header_$ac_safe=yes"
|
|
13211 else
|
|
13212 echo "$ac_err" >&5
|
|
13213 echo "configure: failed program was:" >&5
|
|
13214 cat conftest.$ac_ext >&5
|
|
13215 rm -rf conftest*
|
|
13216 eval "ac_cv_header_$ac_safe=no"
|
|
13217 fi
|
|
13218 rm -f conftest*
|
|
13219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13220 echo "$ac_t""yes" 1>&6
|
|
13221
|
|
13222
|
|
13223 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
|
561
|
13224 echo "configure:13225: checking for AuOpenServer in -laudio" >&5
|
432
|
13225 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
|
|
13226
|
|
13227 xe_check_libs=" -laudio "
|
|
13228 cat > conftest.$ac_ext <<EOF
|
561
|
13229 #line 13230 "configure"
|
432
|
13230 #include "confdefs.h"
|
|
13231 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13232 /* We use char because int might match the return type of a gcc2
|
|
13233 builtin and then its argument prototype would still apply. */
|
|
13234 char AuOpenServer();
|
|
13235
|
|
13236 int main() {
|
|
13237 AuOpenServer()
|
|
13238 ; return 0; }
|
|
13239 EOF
|
561
|
13240 if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
13241 rm -rf conftest*
|
|
13242 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13243 else
|
|
13244 echo "configure: failed program was:" >&5
|
|
13245 cat conftest.$ac_ext >&5
|
|
13246 rm -rf conftest*
|
|
13247 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13248 fi
|
|
13249 rm -f conftest*
|
|
13250 xe_check_libs=""
|
|
13251
|
|
13252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13253 echo "$ac_t""yes" 1>&6
|
|
13254 have_nas_sound=yes
|
|
13255 else
|
|
13256 echo "$ac_t""no" 1>&6
|
|
13257 fi
|
|
13258
|
|
13259
|
|
13260 else
|
|
13261 echo "$ac_t""no" 1>&6
|
|
13262 fi
|
|
13263
|
|
13264 if test "$have_nas_sound" = "yes"; then
|
|
13265 with_nas_sound=yes
|
|
13266 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13267 Defining HAVE_NAS_SOUND
|
|
13268 EOF
|
|
13269 cat >> confdefs.h <<\EOF
|
|
13270 #define HAVE_NAS_SOUND 1
|
|
13271 EOF
|
|
13272 }
|
|
13273
|
432
|
13274 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
|
151
|
13275 echo " xemacs will be linked with \"nas.o\""
|
|
13276 fi
|
432
|
13277 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
|
|
13278 cat > conftest.$ac_ext <<EOF
|
561
|
13279 #line 13280 "configure"
|
149
|
13280 #include "confdefs.h"
|
|
13281 #include <audio/Xtutil.h>
|
|
13282 EOF
|
|
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
13284 egrep "AuXtErrorJump" >/dev/null 2>&1; then
|
|
13285 :
|
|
13286 else
|
|
13287 rm -rf conftest*
|
432
|
13288 old_nas=yes; { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
13289 Defining NAS_NO_ERROR_JUMP
|
|
13290 EOF
|
|
13291 cat >> confdefs.h <<\EOF
|
|
13292 #define NAS_NO_ERROR_JUMP 1
|
|
13293 EOF
|
|
13294 }
|
|
13295
|
|
13296 fi
|
|
13297 rm -f conftest*
|
|
13298
|
432
|
13299 else
|
|
13300 test "$with_nas_sound" = "yes" && \
|
|
13301 { echo "Error:" "Required NAS sound support cannot be provided." >&2; exit 1; }
|
|
13302 with_nas_sound=no
|
|
13303 fi
|
|
13304 fi
|
|
13305
|
|
13306 if test "$with_esd_sound" != "no"; then
|
|
13307 # Extract the first word of "esd-config", so it can be a program name with args.
|
426
|
13308 set dummy esd-config; ac_word=$2
|
|
13309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
561
|
13310 echo "configure:13311: checking for $ac_word" >&5
|
426
|
13311
|
|
13312 if test -n "$have_esd_config"; then
|
|
13313 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
|
|
13314 else
|
|
13315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
13316 ac_dummy="$PATH"
|
|
13317 for ac_dir in $ac_dummy; do
|
|
13318 test -z "$ac_dir" && ac_dir=.
|
|
13319 if test -f $ac_dir/$ac_word; then
|
|
13320 ac_cv_prog_have_esd_config="yes"
|
|
13321 break
|
|
13322 fi
|
|
13323 done
|
|
13324 IFS="$ac_save_ifs"
|
|
13325 test -z "$ac_cv_prog_have_esd_config" && ac_cv_prog_have_esd_config="no"
|
|
13326 fi
|
|
13327 have_esd_config="$ac_cv_prog_have_esd_config"
|
|
13328 if test -n "$have_esd_config"; then
|
|
13329 echo "$ac_t""$have_esd_config" 1>&6
|
|
13330 else
|
|
13331 echo "$ac_t""no" 1>&6
|
|
13332 fi
|
|
13333
|
432
|
13334 if test "$have_esd_config" = "yes"; then
|
|
13335 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
|
|
13336 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
|
|
13337 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
|
|
13338 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
|
561
|
13339 echo "configure:13340: checking for esd_play_stream" >&5
|
|
13340
|
|
13341 cat > conftest.$ac_ext <<EOF
|
|
13342 #line 13343 "configure"
|
432
|
13343 #include "confdefs.h"
|
|
13344 /* System header to define __stub macros and hopefully few prototypes,
|
|
13345 which can conflict with char esd_play_stream(); below. */
|
|
13346 #include <assert.h>
|
|
13347 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13348 /* We use char because int might match the return type of a gcc2
|
|
13349 builtin and then its argument prototype would still apply. */
|
|
13350 char esd_play_stream();
|
|
13351
|
|
13352 int main() {
|
|
13353
|
|
13354 /* The GNU C library defines this for functions which it implements
|
|
13355 to always fail with ENOSYS. Some functions are actually named
|
|
13356 something starting with __ and the normal name is an alias. */
|
|
13357 #if defined (__stub_esd_play_stream) || defined (__stub___esd_play_stream)
|
|
13358 choke me
|
|
13359 #else
|
|
13360 esd_play_stream();
|
|
13361 #endif
|
|
13362
|
|
13363 ; return 0; }
|
|
13364 EOF
|
561
|
13365 if { (eval echo configure:13366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
432
|
13366 rm -rf conftest*
|
|
13367 eval "ac_cv_func_esd_play_stream=yes"
|
|
13368 else
|
|
13369 echo "configure: failed program was:" >&5
|
|
13370 cat conftest.$ac_ext >&5
|
|
13371 rm -rf conftest*
|
|
13372 eval "ac_cv_func_esd_play_stream=no"
|
|
13373 fi
|
|
13374 rm -f conftest*
|
|
13375
|
|
13376 if eval "test \"`echo '$ac_cv_func_'esd_play_stream`\" = yes"; then
|
|
13377 echo "$ac_t""yes" 1>&6
|
|
13378 have_esd_sound=yes
|
|
13379 else
|
|
13380 echo "$ac_t""no" 1>&6
|
|
13381 c_switch_site="$save_c_switch_site" LIBS="$save_LIBS"
|
|
13382 fi
|
|
13383
|
|
13384 fi
|
|
13385
|
|
13386 if test "$have_esd_sound" = "yes"; then
|
|
13387 with_esd_sound=yes
|
|
13388 need_miscplay=yes
|
|
13389 extra_objs="$extra_objs esd.o" && if test "$extra_verbose" = "yes"; then
|
|
13390 echo " xemacs will be linked with \"esd.o\""
|
|
13391 fi
|
426
|
13392 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13393 Defining HAVE_ESD_SOUND
|
|
13394 EOF
|
|
13395 cat >> confdefs.h <<\EOF
|
|
13396 #define HAVE_ESD_SOUND 1
|
|
13397 EOF
|
|
13398 }
|
|
13399
|
432
|
13400 else
|
|
13401 test "$with_esd_sound" = "yes" && \
|
|
13402 { echo "Error:" "Required ESD sound support cannot be provided." >&2; exit 1; }
|
|
13403 with_esd_sound=no
|
|
13404 fi
|
|
13405 fi
|
|
13406
|
|
13407 test "$need_miscplay" = "yes" && extra_objs="$extra_objs miscplay.o" && if test "$extra_verbose" = "yes"; then
|
426
|
13408 echo " xemacs will be linked with \"miscplay.o\""
|
|
13409 fi
|
149
|
13410
|
|
13411
|
|
13412 test -z "$with_tty" && with_tty=yes
|
|
13413
|
|
13414 if test "$with_tty" = "yes" ; then
|
151
|
13415 echo "checking for TTY-related features" 1>&6
|
561
|
13416 echo "configure:13417: checking for TTY-related features" >&5
|
149
|
13417 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13418 Defining HAVE_TTY
|
|
13419 EOF
|
|
13420 cat >> confdefs.h <<\EOF
|
|
13421 #define HAVE_TTY 1
|
|
13422 EOF
|
|
13423 }
|
|
13424
|
151
|
13425 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
|
|
13426 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\""
|
|
13427 fi
|
149
|
13428
|
|
13429 if test -z "$with_ncurses"; then
|
70
|
13430
|
151
|
13431 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
|
561
|
13432 echo "configure:13433: checking for tgetent in -lncurses" >&5
|
151
|
13433 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
|
149
|
13434
|
|
13435 xe_check_libs=" -lncurses "
|
|
13436 cat > conftest.$ac_ext <<EOF
|
561
|
13437 #line 13438 "configure"
|
149
|
13438 #include "confdefs.h"
|
|
13439 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13440 /* We use char because int might match the return type of a gcc2
|
|
13441 builtin and then its argument prototype would still apply. */
|
151
|
13442 char tgetent();
|
149
|
13443
|
|
13444 int main() {
|
151
|
13445 tgetent()
|
149
|
13446 ; return 0; }
|
|
13447 EOF
|
561
|
13448 if { (eval echo configure:13449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13449 rm -rf conftest*
|
|
13450 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13451 else
|
|
13452 echo "configure: failed program was:" >&5
|
|
13453 cat conftest.$ac_ext >&5
|
|
13454 rm -rf conftest*
|
|
13455 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13456 fi
|
|
13457 rm -f conftest*
|
|
13458 xe_check_libs=""
|
|
13459
|
151
|
13460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13461 echo "$ac_t""yes" 1>&6
|
|
13462 with_ncurses=yes
|
|
13463 else
|
|
13464 echo "$ac_t""no" 1>&6
|
|
13465 with_ncurses=no
|
|
13466 fi
|
|
13467
|
|
13468
|
|
13469 fi
|
|
13470 if test "$with_ncurses" = "yes"; then
|
|
13471 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13472 Defining HAVE_NCURSES
|
|
13473 EOF
|
|
13474 cat >> confdefs.h <<\EOF
|
|
13475 #define HAVE_NCURSES 1
|
|
13476 EOF
|
|
13477 }
|
|
13478
|
|
13479 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
13480 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
561
|
13481 echo "configure:13482: checking for ncurses/curses.h" >&5
|
|
13482
|
|
13483 cat > conftest.$ac_ext <<EOF
|
|
13484 #line 13485 "configure"
|
149
|
13485 #include "confdefs.h"
|
|
13486 #include <ncurses/curses.h>
|
|
13487 EOF
|
|
13488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13489 { (eval echo configure:13490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
149
|
13491 if test -z "$ac_err"; then
|
|
13492 rm -rf conftest*
|
|
13493 eval "ac_cv_header_$ac_safe=yes"
|
|
13494 else
|
|
13495 echo "$ac_err" >&5
|
|
13496 echo "configure: failed program was:" >&5
|
|
13497 cat conftest.$ac_ext >&5
|
|
13498 rm -rf conftest*
|
|
13499 eval "ac_cv_header_$ac_safe=no"
|
|
13500 fi
|
|
13501 rm -f conftest*
|
|
13502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13503 echo "$ac_t""yes" 1>&6
|
442
|
13504 curses_h_file=ncurses/curses.h
|
149
|
13505 else
|
|
13506 echo "$ac_t""no" 1>&6
|
|
13507 fi
|
|
13508
|
|
13509 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
|
|
13510 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
|
561
|
13511 echo "configure:13512: checking for ncurses/term.h" >&5
|
|
13512
|
|
13513 cat > conftest.$ac_ext <<EOF
|
|
13514 #line 13515 "configure"
|
0
|
13515 #include "confdefs.h"
|
|
13516 #include <ncurses/term.h>
|
|
13517 EOF
|
149
|
13518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13519 { (eval echo configure:13520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13521 if test -z "$ac_err"; then
|
|
13522 rm -rf conftest*
|
149
|
13523 eval "ac_cv_header_$ac_safe=yes"
|
|
13524 else
|
|
13525 echo "$ac_err" >&5
|
|
13526 echo "configure: failed program was:" >&5
|
|
13527 cat conftest.$ac_ext >&5
|
|
13528 rm -rf conftest*
|
|
13529 eval "ac_cv_header_$ac_safe=no"
|
|
13530 fi
|
|
13531 rm -f conftest*
|
|
13532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13533 echo "$ac_t""yes" 1>&6
|
442
|
13534 term_h_file=ncurses/term.h
|
149
|
13535 else
|
|
13536 echo "$ac_t""no" 1>&6
|
|
13537 fi
|
|
13538
|
151
|
13539 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
13540 echo " xemacs will be linked with \"terminfo.o\""
|
|
13541 fi
|
|
13542 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi
|
149
|
13543
|
153
|
13544 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
|
149
|
13545 save_c_switch_site="$c_switch_site"
|
|
13546 c_switch_site="$c_switch_site -I/usr/include/ncurses"
|
|
13547 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
|
|
13548 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
|
561
|
13549 echo "configure:13550: checking for ncurses/curses.h" >&5
|
|
13550
|
|
13551 cat > conftest.$ac_ext <<EOF
|
|
13552 #line 13553 "configure"
|
0
|
13553 #include "confdefs.h"
|
|
13554 #include <ncurses/curses.h>
|
|
13555 EOF
|
149
|
13556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13557 { (eval echo configure:13558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
0
|
13559 if test -z "$ac_err"; then
|
|
13560 rm -rf conftest*
|
149
|
13561 eval "ac_cv_header_$ac_safe=yes"
|
|
13562 else
|
|
13563 echo "$ac_err" >&5
|
|
13564 echo "configure: failed program was:" >&5
|
|
13565 cat conftest.$ac_ext >&5
|
|
13566 rm -rf conftest*
|
|
13567 eval "ac_cv_header_$ac_safe=no"
|
|
13568 fi
|
|
13569 rm -f conftest*
|
|
13570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13571 echo "$ac_t""yes" 1>&6
|
442
|
13572 curses_h_file=ncurses/curses.h
|
149
|
13573 else
|
|
13574 echo "$ac_t""no" 1>&6
|
|
13575 fi
|
|
13576
|
153
|
13577 if test "$ac_cv_header_ncurses_curses_h" = "yes"
|
561
|
13578 then echo "configure: warning: Your system has the bogus ncurses include bug." 1>&2
|
149
|
13579 else c_switch_site="$save_c_switch_site"
|
|
13580 fi
|
|
13581 fi
|
151
|
13582 else if test "$have_terminfo" = "yes"; then
|
|
13583 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then
|
|
13584 echo " xemacs will be linked with \"terminfo.o\""
|
|
13585 fi
|
|
13586 if test -n "$libs_termcap"; then
|
|
13587 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
13588 else
|
|
13589 for lib in curses termlib termcap; do
|
|
13590
|
|
13591 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
|
561
|
13592 echo "configure:13593: checking for tgetent in -l$lib" >&5
|
151
|
13593 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13594
|
|
13595 xe_check_libs=" -l$lib "
|
|
13596 cat > conftest.$ac_ext <<EOF
|
561
|
13597 #line 13598 "configure"
|
149
|
13598 #include "confdefs.h"
|
|
13599 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13600 /* We use char because int might match the return type of a gcc2
|
|
13601 builtin and then its argument prototype would still apply. */
|
151
|
13602 char tgetent();
|
149
|
13603
|
|
13604 int main() {
|
151
|
13605 tgetent()
|
149
|
13606 ; return 0; }
|
|
13607 EOF
|
561
|
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13609 rm -rf conftest*
|
|
13610 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13611 else
|
|
13612 echo "configure: failed program was:" >&5
|
|
13613 cat conftest.$ac_ext >&5
|
|
13614 rm -rf conftest*
|
|
13615 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13616 fi
|
|
13617 rm -f conftest*
|
|
13618 xe_check_libs=""
|
|
13619
|
151
|
13620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13621 echo "$ac_t""yes" 1>&6
|
|
13622 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break
|
|
13623 else
|
|
13624 echo "$ac_t""no" 1>&6
|
|
13625 fi
|
|
13626
|
|
13627
|
|
13628 done
|
|
13629 fi
|
|
13630 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then
|
|
13631 echo " xemacs will be linked with \"tparam.o\""
|
|
13632 fi
|
|
13633 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac
|
|
13634 if test -n "$libs_termcap"; then
|
|
13635 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
|
|
13636 else
|
|
13637
|
|
13638 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
|
561
|
13639 echo "configure:13640: checking for tgetent in -lcurses" >&5
|
151
|
13640 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13641
|
|
13642 xe_check_libs=" -lcurses "
|
|
13643 cat > conftest.$ac_ext <<EOF
|
561
|
13644 #line 13645 "configure"
|
149
|
13645 #include "confdefs.h"
|
|
13646 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13647 /* We use char because int might match the return type of a gcc2
|
|
13648 builtin and then its argument prototype would still apply. */
|
151
|
13649 char tgetent();
|
149
|
13650
|
|
13651 int main() {
|
151
|
13652 tgetent()
|
149
|
13653 ; return 0; }
|
|
13654 EOF
|
561
|
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13656 rm -rf conftest*
|
|
13657 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13658 else
|
|
13659 echo "configure: failed program was:" >&5
|
|
13660 cat conftest.$ac_ext >&5
|
|
13661 rm -rf conftest*
|
|
13662 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13663 fi
|
|
13664 rm -f conftest*
|
|
13665 xe_check_libs=""
|
|
13666
|
151
|
13667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13668 echo "$ac_t""yes" 1>&6
|
|
13669 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
|
|
13670 else
|
|
13671 echo "$ac_t""no" 1>&6
|
|
13672 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
561
|
13673 echo "configure:13674: checking for tgetent in -ltermcap" >&5
|
151
|
13674 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
13675
|
|
13676 xe_check_libs=" -ltermcap "
|
|
13677 cat > conftest.$ac_ext <<EOF
|
561
|
13678 #line 13679 "configure"
|
149
|
13679 #include "confdefs.h"
|
|
13680 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13681 /* We use char because int might match the return type of a gcc2
|
|
13682 builtin and then its argument prototype would still apply. */
|
151
|
13683 char tgetent();
|
149
|
13684
|
|
13685 int main() {
|
151
|
13686 tgetent()
|
149
|
13687 ; return 0; }
|
|
13688 EOF
|
561
|
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13690 rm -rf conftest*
|
|
13691 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13692 else
|
|
13693 echo "configure: failed program was:" >&5
|
|
13694 cat conftest.$ac_ext >&5
|
|
13695 rm -rf conftest*
|
|
13696 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13697 fi
|
|
13698 rm -f conftest*
|
|
13699 xe_check_libs=""
|
|
13700
|
151
|
13701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13702 echo "$ac_t""yes" 1>&6
|
|
13703 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi
|
|
13704 else
|
|
13705 echo "$ac_t""no" 1>&6
|
|
13706 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then
|
|
13707 echo " xemacs will be linked with \"termcap.o\""
|
|
13708 fi
|
|
13709 fi
|
|
13710
|
|
13711
|
|
13712 fi
|
|
13713
|
|
13714
|
0
|
13715 fi
|
|
13716 fi
|
149
|
13717 fi
|
|
13718 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13719 Defining CURSES_H_FILE = "${curses_h_file-curses.h}"
|
|
13720 EOF
|
|
13721 cat >> confdefs.h <<EOF
|
|
13722 #define CURSES_H_FILE "${curses_h_file-curses.h}"
|
149
|
13723 EOF
|
|
13724 }
|
|
13725
|
|
13726 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
13727 Defining TERM_H_FILE = "${term_h_file-term.h}"
|
|
13728 EOF
|
|
13729 cat >> confdefs.h <<EOF
|
|
13730 #define TERM_H_FILE "${term_h_file-term.h}"
|
149
|
13731 EOF
|
|
13732 }
|
|
13733
|
155
|
13734
|
|
13735 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
|
|
13736 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
|
561
|
13737 echo "configure:13738: checking for gpm.h" >&5
|
|
13738
|
|
13739 cat > conftest.$ac_ext <<EOF
|
|
13740 #line 13741 "configure"
|
155
|
13741 #include "confdefs.h"
|
|
13742 #include <gpm.h>
|
|
13743 EOF
|
|
13744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13745 { (eval echo configure:13746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
155
|
13747 if test -z "$ac_err"; then
|
|
13748 rm -rf conftest*
|
|
13749 eval "ac_cv_header_$ac_safe=yes"
|
|
13750 else
|
|
13751 echo "$ac_err" >&5
|
|
13752 echo "configure: failed program was:" >&5
|
|
13753 cat conftest.$ac_ext >&5
|
|
13754 rm -rf conftest*
|
|
13755 eval "ac_cv_header_$ac_safe=no"
|
|
13756 fi
|
|
13757 rm -f conftest*
|
|
13758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13759 echo "$ac_t""yes" 1>&6
|
|
13760 :
|
|
13761 else
|
|
13762 echo "$ac_t""no" 1>&6
|
|
13763 with_gpm=no
|
|
13764 fi
|
|
13765 }
|
|
13766 test -z "$with_gpm" && {
|
|
13767 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
|
561
|
13768 echo "configure:13769: checking for Gpm_Open in -lgpm" >&5
|
155
|
13769 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
|
|
13770
|
|
13771 xe_check_libs=" -lgpm "
|
|
13772 cat > conftest.$ac_ext <<EOF
|
561
|
13773 #line 13774 "configure"
|
155
|
13774 #include "confdefs.h"
|
|
13775 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13776 /* We use char because int might match the return type of a gcc2
|
|
13777 builtin and then its argument prototype would still apply. */
|
|
13778 char Gpm_Open();
|
|
13779
|
|
13780 int main() {
|
|
13781 Gpm_Open()
|
|
13782 ; return 0; }
|
|
13783 EOF
|
561
|
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
155
|
13785 rm -rf conftest*
|
|
13786 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13787 else
|
|
13788 echo "configure: failed program was:" >&5
|
|
13789 cat conftest.$ac_ext >&5
|
|
13790 rm -rf conftest*
|
|
13791 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13792 fi
|
|
13793 rm -f conftest*
|
|
13794 xe_check_libs=""
|
|
13795
|
|
13796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
13797 echo "$ac_t""yes" 1>&6
|
|
13798 with_gpm=yes
|
|
13799 else
|
|
13800 echo "$ac_t""no" 1>&6
|
|
13801 with_gpm=no
|
|
13802 fi
|
|
13803
|
|
13804 }
|
|
13805 if test "$with_gpm" = "yes"; then
|
|
13806 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
13807 Defining HAVE_GPM
|
|
13808 EOF
|
|
13809 cat >> confdefs.h <<\EOF
|
|
13810 #define HAVE_GPM 1
|
|
13811 EOF
|
|
13812 }
|
|
13813
|
|
13814 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then
|
|
13815 echo " xemacs will be linked with \"gpmevent.o\""
|
|
13816 fi
|
|
13817 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
|
|
13818 fi
|
|
13819
|
151
|
13820 else for feature in ncurses gpm; do
|
149
|
13821 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
|
561
|
13822 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
|
149
|
13823 fi
|
|
13824 eval "with_${feature}=no"
|
|
13825 done
|
151
|
13826 fi
|
163
|
13827 test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event-unixoid.o" && if test "$extra_verbose" = "yes"; then
|
|
13828 echo " xemacs will be linked with \"event-unixoid.o\""
|
|
13829 fi
|
|
13830
|
149
|
13831
|
426
|
13832 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
384
|
13833 != "no no no" && echo "checking for database support" 1>&6
|
561
|
13834 echo "configure:13835: checking for database support" >&5
|
426
|
13835
|
|
13836 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
|
384
|
13837 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
|
|
13838 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
|
561
|
13839 echo "configure:13840: checking for ndbm.h" >&5
|
|
13840
|
|
13841 cat > conftest.$ac_ext <<EOF
|
|
13842 #line 13843 "configure"
|
384
|
13843 #include "confdefs.h"
|
|
13844 #include <ndbm.h>
|
265
|
13845 EOF
|
|
13846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
13847 { (eval echo configure:13848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
13848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
265
|
13849 if test -z "$ac_err"; then
|
|
13850 rm -rf conftest*
|
|
13851 eval "ac_cv_header_$ac_safe=yes"
|
|
13852 else
|
|
13853 echo "$ac_err" >&5
|
|
13854 echo "configure: failed program was:" >&5
|
|
13855 cat conftest.$ac_ext >&5
|
|
13856 rm -rf conftest*
|
|
13857 eval "ac_cv_header_$ac_safe=no"
|
|
13858 fi
|
|
13859 rm -f conftest*
|
|
13860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
13861 echo "$ac_t""yes" 1>&6
|
384
|
13862 :
|
|
13863 else
|
|
13864 echo "$ac_t""no" 1>&6
|
|
13865
|
426
|
13866 test "$with_database_gdbm" = "yes" -o \
|
|
13867 "$with_database_dbm" = "yes" && \
|
384
|
13868 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
426
|
13869 with_database_gdbm=no with_database_dbm=no
|
|
13870 fi
|
|
13871
|
|
13872 fi
|
|
13873
|
|
13874 if test "$with_database_gdbm" != "no"; then
|
384
|
13875
|
149
|
13876 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
|
561
|
13877 echo "configure:13878: checking for dbm_open in -lgdbm" >&5
|
149
|
13878 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
13879
|
|
13880 xe_check_libs=" -lgdbm "
|
|
13881 cat > conftest.$ac_ext <<EOF
|
561
|
13882 #line 13883 "configure"
|
149
|
13883 #include "confdefs.h"
|
|
13884 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13885 /* We use char because int might match the return type of a gcc2
|
|
13886 builtin and then its argument prototype would still apply. */
|
|
13887 char dbm_open();
|
|
13888
|
|
13889 int main() {
|
|
13890 dbm_open()
|
|
13891 ; return 0; }
|
|
13892 EOF
|
561
|
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13894 rm -rf conftest*
|
|
13895 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13896 else
|
|
13897 echo "configure: failed program was:" >&5
|
|
13898 cat conftest.$ac_ext >&5
|
|
13899 rm -rf conftest*
|
|
13900 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13901 fi
|
|
13902 rm -f conftest*
|
|
13903 xe_check_libs=""
|
|
13904
|
151
|
13905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13906 echo "$ac_t""yes" 1>&6
|
426
|
13907 with_database_gdbm=yes with_database_dbm=no libdbm=-lgdbm
|
|
13908 else
|
|
13909 echo "$ac_t""no" 1>&6
|
|
13910 if test "$with_database_gdbm" = "yes"; then
|
384
|
13911 { echo "Error:" "Required GNU DBM support cannot be provided." >&2; exit 1; }
|
|
13912 fi
|
426
|
13913 with_database_gdbm=no
|
384
|
13914 fi
|
|
13915
|
|
13916
|
149
|
13917 fi
|
|
13918
|
151
|
13919 if test "$with_database_dbm" != "no"; then
|
149
|
13920 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
561
|
13921 echo "configure:13922: checking for dbm_open" >&5
|
|
13922
|
|
13923 cat > conftest.$ac_ext <<EOF
|
|
13924 #line 13925 "configure"
|
149
|
13925 #include "confdefs.h"
|
|
13926 /* System header to define __stub macros and hopefully few prototypes,
|
|
13927 which can conflict with char dbm_open(); below. */
|
|
13928 #include <assert.h>
|
|
13929 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13930 /* We use char because int might match the return type of a gcc2
|
|
13931 builtin and then its argument prototype would still apply. */
|
|
13932 char dbm_open();
|
|
13933
|
|
13934 int main() {
|
|
13935
|
|
13936 /* The GNU C library defines this for functions which it implements
|
|
13937 to always fail with ENOSYS. Some functions are actually named
|
|
13938 something starting with __ and the normal name is an alias. */
|
|
13939 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
13940 choke me
|
|
13941 #else
|
|
13942 dbm_open();
|
|
13943 #endif
|
|
13944
|
|
13945 ; return 0; }
|
|
13946 EOF
|
561
|
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13948 rm -rf conftest*
|
|
13949 eval "ac_cv_func_dbm_open=yes"
|
|
13950 else
|
|
13951 echo "configure: failed program was:" >&5
|
|
13952 cat conftest.$ac_ext >&5
|
|
13953 rm -rf conftest*
|
|
13954 eval "ac_cv_func_dbm_open=no"
|
|
13955 fi
|
|
13956 rm -f conftest*
|
|
13957
|
|
13958 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
13959 echo "$ac_t""yes" 1>&6
|
384
|
13960 with_database_dbm=yes libdbm=
|
|
13961 else
|
|
13962 echo "$ac_t""no" 1>&6
|
|
13963
|
149
|
13964
|
|
13965 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
561
|
13966 echo "configure:13967: checking for dbm_open in -ldbm" >&5
|
149
|
13967 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
|
|
13968
|
|
13969 xe_check_libs=" -ldbm "
|
|
13970 cat > conftest.$ac_ext <<EOF
|
561
|
13971 #line 13972 "configure"
|
149
|
13972 #include "confdefs.h"
|
|
13973 /* Override any gcc2 internal prototype to avoid an error. */
|
|
13974 /* We use char because int might match the return type of a gcc2
|
|
13975 builtin and then its argument prototype would still apply. */
|
|
13976 char dbm_open();
|
|
13977
|
|
13978 int main() {
|
|
13979 dbm_open()
|
|
13980 ; return 0; }
|
|
13981 EOF
|
561
|
13982 if { (eval echo configure:13983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
13983 rm -rf conftest*
|
|
13984 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
13985 else
|
|
13986 echo "configure: failed program was:" >&5
|
|
13987 cat conftest.$ac_ext >&5
|
|
13988 rm -rf conftest*
|
|
13989 eval "ac_cv_lib_$ac_lib_var=no"
|
|
13990 fi
|
|
13991 rm -f conftest*
|
|
13992 xe_check_libs=""
|
|
13993
|
151
|
13994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
13995 echo "$ac_t""yes" 1>&6
|
384
|
13996 with_database_dbm=yes libdbm=-ldbm
|
|
13997 else
|
|
13998 echo "$ac_t""no" 1>&6
|
|
13999 test "$with_database_dbm" = "yes" && \
|
|
14000 { echo "Error:" "Required DBM support cannot be provided." >&2; exit 1; }
|
|
14001 with_database_dbm=no
|
|
14002 fi
|
|
14003
|
|
14004
|
|
14005 fi
|
|
14006
|
|
14007 fi
|
|
14008
|
|
14009 test -n "$libdbm" && LIBS=""$libdbm" $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libdbm"\" to \$LIBS"; fi
|
426
|
14010 test "$with_database_gdbm" = "yes" -o \
|
|
14011 "$with_database_dbm" = "yes" && \
|
384
|
14012 { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
14013 Defining HAVE_DBM
|
|
14014 EOF
|
|
14015 cat >> confdefs.h <<\EOF
|
|
14016 #define HAVE_DBM 1
|
|
14017 EOF
|
|
14018 }
|
|
14019
|
|
14020
|
|
14021 if test "$with_database_berkdb" != "no"; then
|
298
|
14022 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
|
561
|
14023 echo "configure:14024: checking for Berkeley db.h" >&5
|
442
|
14024 for header in "db/db.h" "db.h"; do
|
298
|
14025 cat > conftest.$ac_ext <<EOF
|
561
|
14026 #line 14027 "configure"
|
442
|
14027 #include "confdefs.h"
|
|
14028
|
|
14029 #include <stdlib.h>
|
|
14030 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
|
298
|
14031 #ifdef HAVE_INTTYPES_H
|
|
14032 #define __BIT_TYPES_DEFINED__
|
|
14033 #include <inttypes.h>
|
|
14034 typedef uint8_t u_int8_t;
|
|
14035 typedef uint16_t u_int16_t;
|
|
14036 typedef uint32_t u_int32_t;
|
|
14037 #ifdef WE_DONT_NEED_QUADS
|
|
14038 typedef uint64_t u_int64_t;
|
|
14039 #endif
|
|
14040 #endif
|
442
|
14041 #endif
|
|
14042 #include <$header>
|
|
14043
|
|
14044 int main() {
|
|
14045
|
|
14046 ; return 0; }
|
|
14047 EOF
|
561
|
14048 if { (eval echo configure:14049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
442
|
14049 rm -rf conftest*
|
|
14050 db_h_file="$header"; break
|
298
|
14051 else
|
|
14052 echo "configure: failed program was:" >&5
|
|
14053 cat conftest.$ac_ext >&5
|
|
14054 fi
|
|
14055 rm -f conftest*
|
|
14056 done
|
442
|
14057 if test -z "$db_h_file"
|
298
|
14058 then echo "$ac_t""no" 1>&6; with_database_berkdb=no
|
442
|
14059 else echo "$ac_t""$db_h_file" 1>&6
|
298
|
14060 fi
|
|
14061
|
|
14062 if test "$with_database_berkdb" != "no"; then
|
|
14063 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
|
561
|
14064 echo "configure:14065: checking for Berkeley DB version" >&5
|
298
|
14065 cat > conftest.$ac_ext <<EOF
|
561
|
14066 #line 14067 "configure"
|
442
|
14067 #include "confdefs.h"
|
|
14068 #include <$db_h_file>
|
298
|
14069 #if DB_VERSION_MAJOR > 1
|
|
14070 yes
|
|
14071 #endif
|
|
14072
|
|
14073 EOF
|
|
14074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14075 egrep "yes" >/dev/null 2>&1; then
|
|
14076 rm -rf conftest*
|
448
|
14077 cat > conftest.$ac_ext <<EOF
|
561
|
14078 #line 14079 "configure"
|
448
|
14079 #include "confdefs.h"
|
|
14080 #include <$db_h_file>
|
|
14081 #if DB_VERSION_MAJOR > 2
|
|
14082 yes
|
|
14083 #endif
|
|
14084
|
|
14085 EOF
|
|
14086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14087 egrep "yes" >/dev/null 2>&1; then
|
|
14088 rm -rf conftest*
|
|
14089 echo "$ac_t""3" 1>&6; dbfunc=db_create
|
|
14090 else
|
|
14091 rm -rf conftest*
|
|
14092
|
|
14093 echo "$ac_t""2" 1>&6; dbfunc=db_open
|
|
14094 fi
|
|
14095 rm -f conftest*
|
|
14096
|
|
14097 else
|
|
14098 rm -rf conftest*
|
|
14099
|
|
14100 echo "$ac_t""1" 1>&6; dbfunc=dbopen
|
298
|
14101 fi
|
|
14102 rm -f conftest*
|
|
14103
|
|
14104 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
|
561
|
14105 echo "configure:14106: checking for $dbfunc" >&5
|
|
14106
|
|
14107 cat > conftest.$ac_ext <<EOF
|
|
14108 #line 14109 "configure"
|
298
|
14109 #include "confdefs.h"
|
149
|
14110 /* System header to define __stub macros and hopefully few prototypes,
|
298
|
14111 which can conflict with char $dbfunc(); below. */
|
149
|
14112 #include <assert.h>
|
|
14113 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14114 /* We use char because int might match the return type of a gcc2
|
|
14115 builtin and then its argument prototype would still apply. */
|
298
|
14116 char $dbfunc();
|
149
|
14117
|
|
14118 int main() {
|
|
14119
|
0
|
14120 /* The GNU C library defines this for functions which it implements
|
|
14121 to always fail with ENOSYS. Some functions are actually named
|
|
14122 something starting with __ and the normal name is an alias. */
|
298
|
14123 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc)
|
0
|
14124 choke me
|
|
14125 #else
|
298
|
14126 $dbfunc();
|
0
|
14127 #endif
|
149
|
14128
|
0
|
14129 ; return 0; }
|
|
14130 EOF
|
561
|
14131 if { (eval echo configure:14132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
298
|
14132 rm -rf conftest*
|
|
14133 eval "ac_cv_func_$dbfunc=yes"
|
|
14134 else
|
|
14135 echo "configure: failed program was:" >&5
|
|
14136 cat conftest.$ac_ext >&5
|
|
14137 rm -rf conftest*
|
|
14138 eval "ac_cv_func_$dbfunc=no"
|
|
14139 fi
|
|
14140 rm -f conftest*
|
|
14141
|
|
14142 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then
|
149
|
14143 echo "$ac_t""yes" 1>&6
|
|
14144 with_database_berkdb=yes need_libdb=no
|
|
14145 else
|
|
14146 echo "$ac_t""no" 1>&6
|
298
|
14147
|
|
14148
|
|
14149 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
|
561
|
14150 echo "configure:14151: checking for $dbfunc in -ldb" >&5
|
298
|
14151 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
|
149
|
14152
|
|
14153 xe_check_libs=" -ldb "
|
|
14154 cat > conftest.$ac_ext <<EOF
|
561
|
14155 #line 14156 "configure"
|
149
|
14156 #include "confdefs.h"
|
0
|
14157 /* Override any gcc2 internal prototype to avoid an error. */
|
149
|
14158 /* We use char because int might match the return type of a gcc2
|
|
14159 builtin and then its argument prototype would still apply. */
|
298
|
14160 char $dbfunc();
|
|
14161
|
|
14162 int main() {
|
|
14163 $dbfunc()
|
|
14164 ; return 0; }
|
|
14165 EOF
|
561
|
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14167 rm -rf conftest*
|
|
14168 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14169 else
|
|
14170 echo "configure: failed program was:" >&5
|
|
14171 cat conftest.$ac_ext >&5
|
|
14172 rm -rf conftest*
|
|
14173 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14174 fi
|
|
14175 rm -f conftest*
|
|
14176 xe_check_libs=""
|
|
14177
|
151
|
14178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14179 echo "$ac_t""yes" 1>&6
|
|
14180 with_database_berkdb=yes need_libdb=yes
|
|
14181 else
|
|
14182 echo "$ac_t""no" 1>&6
|
298
|
14183 fi
|
|
14184
|
|
14185
|
|
14186 fi
|
|
14187
|
|
14188 fi
|
|
14189
|
149
|
14190 if test "$with_database_berkdb" = "yes"; then
|
|
14191 { test "$extra_verbose" = "yes" && cat << EOF
|
442
|
14192 Defining DB_H_FILE = "$db_h_file"
|
|
14193 EOF
|
|
14194 cat >> confdefs.h <<EOF
|
|
14195 #define DB_H_FILE "$db_h_file"
|
149
|
14196 EOF
|
|
14197 }
|
|
14198
|
|
14199 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14200 Defining HAVE_BERKELEY_DB
|
|
14201 EOF
|
|
14202 cat >> confdefs.h <<\EOF
|
|
14203 #define HAVE_BERKELEY_DB 1
|
|
14204 EOF
|
|
14205 }
|
|
14206
|
151
|
14207 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi
|
149
|
14208 else with_database_berkdb=no
|
|
14209 fi
|
|
14210 fi
|
|
14211
|
426
|
14212 if test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
|
272
|
14213 != "no no no"; then
|
149
|
14214 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14215 Defining HAVE_DATABASE
|
|
14216 EOF
|
|
14217 cat >> confdefs.h <<\EOF
|
|
14218 #define HAVE_DATABASE 1
|
|
14219 EOF
|
|
14220 }
|
|
14221
|
151
|
14222 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then
|
|
14223 echo " xemacs will be linked with \"database.o\""
|
|
14224 fi
|
149
|
14225 fi
|
|
14226
|
|
14227 if test "$with_socks" = "yes"; then
|
|
14228
|
|
14229 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
|
561
|
14230 echo "configure:14231: checking for SOCKSinit in -lsocks" >&5
|
149
|
14231 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
|
|
14232
|
|
14233 xe_check_libs=" -lsocks "
|
|
14234 cat > conftest.$ac_ext <<EOF
|
561
|
14235 #line 14236 "configure"
|
149
|
14236 #include "confdefs.h"
|
|
14237 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14238 /* We use char because int might match the return type of a gcc2
|
|
14239 builtin and then its argument prototype would still apply. */
|
|
14240 char SOCKSinit();
|
|
14241
|
|
14242 int main() {
|
|
14243 SOCKSinit()
|
|
14244 ; return 0; }
|
|
14245 EOF
|
561
|
14246 if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
149
|
14247 rm -rf conftest*
|
|
14248 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14249 else
|
|
14250 echo "configure: failed program was:" >&5
|
|
14251 cat conftest.$ac_ext >&5
|
|
14252 rm -rf conftest*
|
|
14253 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14254 fi
|
|
14255 rm -f conftest*
|
|
14256 xe_check_libs=""
|
|
14257
|
151
|
14258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
149
|
14259 echo "$ac_t""yes" 1>&6
|
|
14260 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
14261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
14262 { test "$extra_verbose" = "yes" && cat << EOF
|
|
14263 Defining $ac_tr_lib
|
|
14264 EOF
|
|
14265 cat >> confdefs.h <<EOF
|
|
14266 #define $ac_tr_lib 1
|
|
14267 EOF
|
|
14268 }
|
|
14269
|
151
|
14270 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi
|
149
|
14271
|
|
14272 else
|
|
14273 echo "$ac_t""no" 1>&6
|
|
14274 fi
|
|
14275
|
|
14276
|
|
14277 test -n "$ac_cv_lib_socks_SOCKSinit" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14278 Defining HAVE_SOCKS
|
|
14279 EOF
|
|
14280 cat >> confdefs.h <<\EOF
|
|
14281 #define HAVE_SOCKS 1
|
|
14282 EOF
|
|
14283 }
|
|
14284
|
|
14285 fi
|
|
14286
|
|
14287 if test "$usage_tracking" = "yes"; then
|
|
14288 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
14289 Defining USAGE_TRACKING
|
|
14290 EOF
|
|
14291 cat >> confdefs.h <<\EOF
|
|
14292 #define USAGE_TRACKING 1
|
|
14293 EOF
|
|
14294 }
|
|
14295
|
151
|
14296 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
|
149
|
14297 fi
|
|
14298
|
430
|
14299 if test "$with_modules" != "no"; then
|
|
14300 echo "checking for module support" 1>&6
|
561
|
14301 echo "configure:14302: checking for module support" >&5
|
442
|
14302
|
|
14303 if test "$with_msw" = "yes"; then
|
|
14304 have_dl=yes;
|
|
14305 else
|
|
14306 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
430
|
14307 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
561
|
14308 echo "configure:14309: checking for dlfcn.h" >&5
|
|
14309
|
|
14310 cat > conftest.$ac_ext <<EOF
|
|
14311 #line 14312 "configure"
|
430
|
14312 #include "confdefs.h"
|
|
14313 #include <dlfcn.h>
|
261
|
14314 EOF
|
|
14315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
561
|
14316 { (eval echo configure:14317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
420
|
14317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
261
|
14318 if test -z "$ac_err"; then
|
|
14319 rm -rf conftest*
|
|
14320 eval "ac_cv_header_$ac_safe=yes"
|
|
14321 else
|
|
14322 echo "$ac_err" >&5
|
|
14323 echo "configure: failed program was:" >&5
|
|
14324 cat conftest.$ac_ext >&5
|
|
14325 rm -rf conftest*
|
|
14326 eval "ac_cv_header_$ac_safe=no"
|
|
14327 fi
|
|
14328 rm -f conftest*
|
|
14329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
14330 echo "$ac_t""yes" 1>&6
|
430
|
14331
|
452
|
14332 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
|
561
|
14333 echo "configure:14334: checking for dlopen in -lc" >&5
|
452
|
14334 cat > conftest.$ac_ext <<EOF
|
561
|
14335 #line 14336 "configure"
|
452
|
14336 #include "confdefs.h"
|
|
14337 #include <dlfcn.h>
|
|
14338 int main() {
|
|
14339 dlopen ("", 0);
|
|
14340 ; return 0; }
|
|
14341 EOF
|
561
|
14342 if { (eval echo configure:14343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
452
|
14343 rm -rf conftest*
|
|
14344 have_dl=yes
|
|
14345 else
|
|
14346 echo "configure: failed program was:" >&5
|
|
14347 cat conftest.$ac_ext >&5
|
|
14348 rm -rf conftest*
|
|
14349
|
|
14350 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
561
|
14351 echo "configure:14352: checking for dlopen in -ldl" >&5
|
452
|
14352 ac_save_LIBS="$LIBS"
|
|
14353 LIBS="-ldl $LIBS"
|
|
14354 cat > conftest.$ac_ext <<EOF
|
561
|
14355 #line 14356 "configure"
|
452
|
14356 #include "confdefs.h"
|
|
14357 #include <dlfcn.h>
|
|
14358 int main() {
|
|
14359 dlopen ("", 0);
|
|
14360 ; return 0; }
|
|
14361 EOF
|
561
|
14362 if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
452
|
14363 rm -rf conftest*
|
|
14364 have_dl=yes
|
|
14365 else
|
|
14366 echo "configure: failed program was:" >&5
|
|
14367 cat conftest.$ac_ext >&5
|
|
14368 rm -rf conftest*
|
|
14369 LIBS="$ac_save_LIBS"
|
|
14370 fi
|
|
14371 rm -f conftest*
|
|
14372 ac_save_LIBS=
|
|
14373 fi
|
|
14374 rm -f conftest*
|
430
|
14375 else
|
|
14376 echo "$ac_t""no" 1>&6
|
|
14377 fi
|
|
14378
|
442
|
14379 if test -n "$have_dl"; then
|
|
14380 { test "$extra_verbose" = "yes" && cat << \EOF
|
265
|
14381 Defining HAVE_DLOPEN
|
|
14382 EOF
|
|
14383 cat >> confdefs.h <<\EOF
|
|
14384 #define HAVE_DLOPEN 1
|
|
14385 EOF
|
|
14386 }
|
430
|
14387
|
442
|
14388 else
|
|
14389
|
430
|
14390 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
|
561
|
14391 echo "configure:14392: checking for shl_load in -ldld" >&5
|
430
|
14392 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
|
|
14393
|
|
14394 xe_check_libs=" -ldld "
|
|
14395 cat > conftest.$ac_ext <<EOF
|
561
|
14396 #line 14397 "configure"
|
430
|
14397 #include "confdefs.h"
|
|
14398 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14399 /* We use char because int might match the return type of a gcc2
|
|
14400 builtin and then its argument prototype would still apply. */
|
|
14401 char shl_load();
|
|
14402
|
|
14403 int main() {
|
|
14404 shl_load()
|
|
14405 ; return 0; }
|
|
14406 EOF
|
561
|
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
261
|
14408 rm -rf conftest*
|
|
14409 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14410 else
|
|
14411 echo "configure: failed program was:" >&5
|
|
14412 cat conftest.$ac_ext >&5
|
|
14413 rm -rf conftest*
|
|
14414 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14415 fi
|
|
14416 rm -f conftest*
|
|
14417 xe_check_libs=""
|
|
14418
|
|
14419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14420 echo "$ac_t""yes" 1>&6
|
430
|
14421 libdl=dld have_dl=yes;
|
442
|
14422 { test "$extra_verbose" = "yes" && cat << \EOF
|
430
|
14423 Defining HAVE_SHL_LOAD
|
|
14424 EOF
|
|
14425 cat >> confdefs.h <<\EOF
|
|
14426 #define HAVE_SHL_LOAD 1
|
|
14427 EOF
|
|
14428 }
|
|
14429
|
|
14430 else
|
|
14431 echo "$ac_t""no" 1>&6
|
|
14432
|
|
14433 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
|
561
|
14434 echo "configure:14435: checking for dld_init in -ldld" >&5
|
430
|
14435 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
|
265
|
14436
|
|
14437 xe_check_libs=" -ldld "
|
|
14438 cat > conftest.$ac_ext <<EOF
|
561
|
14439 #line 14440 "configure"
|
430
|
14440 #include "confdefs.h"
|
|
14441 /* Override any gcc2 internal prototype to avoid an error. */
|
|
14442 /* We use char because int might match the return type of a gcc2
|
|
14443 builtin and then its argument prototype would still apply. */
|
|
14444 char dld_init();
|
|
14445
|
|
14446 int main() {
|
|
14447 dld_init()
|
|
14448 ; return 0; }
|
|
14449 EOF
|
561
|
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
265
|
14451 rm -rf conftest*
|
|
14452 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
14453 else
|
|
14454 echo "configure: failed program was:" >&5
|
|
14455 cat conftest.$ac_ext >&5
|
|
14456 rm -rf conftest*
|
|
14457 eval "ac_cv_lib_$ac_lib_var=no"
|
|
14458 fi
|
|
14459 rm -f conftest*
|
|
14460 xe_check_libs=""
|
|
14461
|
|
14462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
|
|
14463 echo "$ac_t""yes" 1>&6
|
430
|
14464 libdl=dld have_dl=yes;
|
442
|
14465 { test "$extra_verbose" = "yes" && cat << \EOF
|
265
|
14466 Defining HAVE_DLD_INIT
|
|
14467 EOF
|
|
14468 cat >> confdefs.h <<\EOF
|
|
14469 #define HAVE_DLD_INIT 1
|
|
14470 EOF
|
|
14471 }
|
430
|
14472
|
|
14473 else
|
|
14474 echo "$ac_t""no" 1>&6
|
|
14475 fi
|
|
14476
|
|
14477
|
|
14478 fi
|
|
14479
|
|
14480
|
442
|
14481 fi
|
|
14482 fi
|
430
|
14483 if test -n "$have_dl"; then
|
|
14484
|
388
|
14485 dll_ld=
|
|
14486 dll_ldflags=
|
|
14487 dll_cflags=
|
|
14488 dll_post=
|
|
14489 dll_ldo="-o"
|
|
14490 ld_dynamic_link_flags=
|
|
14491 xehost=$canonical
|
|
14492 xealias=$internal_configuration
|
|
14493
|
|
14494 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
|
561
|
14495 echo "configure:14496: checking how to build dynamic libraries for ${xehost}" >&5
|
388
|
14496 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
|
|
14497 case "$xehost" in
|
|
14498 *-*-linux-gnu*) ;;
|
|
14499 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
|
14500 esac
|
|
14501
|
|
14502 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
14503 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
14504 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
14505
|
|
14506 case "$xehost_os" in
|
|
14507 aix3*)
|
|
14508 # AIX sometimes has problems with the GCC collect2 program. For some
|
|
14509 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
14510 # vanish in a puff of smoke.
|
|
14511 if test "${COLLECT_NAMES+set}" != set; then
|
|
14512 COLLECT_NAMES=
|
|
14513 export COLLECT_NAMES
|
|
14514 fi
|
|
14515 ;;
|
|
14516 esac
|
|
14517
|
|
14518 # Now see if the compiler is really GCC.
|
|
14519 if test "$GCC" = "yes"; then
|
|
14520 XEGCC=yes
|
|
14521 else
|
|
14522 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
|
561
|
14523 echo "configure:14524: checking checking whether we are using GNU C" >&5
|
388
|
14524 cat > conftest.$ac_ext <<EOF
|
561
|
14525 #line 14526 "configure"
|
388
|
14526 #include "confdefs.h"
|
|
14527
|
|
14528 #ifdef __GNUC__
|
|
14529 yes;
|
|
14530 #endif
|
|
14531
|
|
14532 EOF
|
|
14533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
14534 egrep "yes" >/dev/null 2>&1; then
|
|
14535 rm -rf conftest*
|
|
14536 XEGCC=yes
|
|
14537 else
|
|
14538 rm -rf conftest*
|
|
14539 XEGCC=no
|
|
14540 fi
|
|
14541 rm -f conftest*
|
|
14542
|
|
14543 echo "$ac_t""${XEGCC}" 1>&6
|
|
14544 fi
|
|
14545
|
|
14546 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
|
561
|
14547 echo "configure:14548: checking how to produce PIC code" >&5
|
388
|
14548 wl=
|
|
14549
|
|
14550 can_build_shared=yes
|
|
14551 if test "$XEGCC" = yes; then
|
|
14552 wl='-Wl,'
|
|
14553
|
|
14554 case "$xehost_os" in
|
460
|
14555 aix[3-9]* | irix[5-9]* | osf[3-9])
|
388
|
14556 # PIC is the default for these OSes.
|
|
14557 ;;
|
|
14558
|
460
|
14559 os2*)
|
388
|
14560 # We can build DLLs from non-PIC.
|
|
14561 ;;
|
|
14562 amigaos*)
|
|
14563 # FIXME: we need at least 68020 code to build shared libraries, but
|
|
14564 # adding the `-m68020' flag to GCC prevents building anything better,
|
|
14565 # like `-m68040'.
|
|
14566 dll_cflags='-m68020 -resident32 -malways-restore-a4'
|
|
14567 ;;
|
442
|
14568 *cygwin* | *mingw* )
|
|
14569 # PIC is the default
|
|
14570 ;;
|
388
|
14571 *)
|
|
14572 dll_cflags='-fPIC'
|
|
14573 ;;
|
|
14574 esac
|
|
14575 else
|
|
14576 # PORTME Check for PIC flags for the system compiler.
|
|
14577 case "$xehost_os" in
|
430
|
14578 hpux9* | hpux1[0-9]*)
|
388
|
14579 # Is there a better link_static_flag that works with the bundled CC?
|
|
14580 wl='-Wl,'
|
|
14581 dll_cflags='+Z'
|
|
14582 ;;
|
|
14583
|
460
|
14584 irix[5-9]*)
|
388
|
14585 wl='-Wl,'
|
|
14586 # PIC (with -KPIC) is the default.
|
|
14587 ;;
|
|
14588
|
|
14589 os2*)
|
|
14590 # We can build DLLs from non-PIC.
|
|
14591 ;;
|
|
14592
|
460
|
14593 osf[3-9]*)
|
388
|
14594 # All OSF/1 code is PIC.
|
|
14595 wl='-Wl,'
|
|
14596 ;;
|
|
14597
|
460
|
14598 aix[3-9]*)
|
|
14599 # All AIX code is PIC.
|
|
14600 wl='-Wl,'
|
|
14601 ;;
|
|
14602
|
388
|
14603 sco3.2v5*)
|
|
14604 dll_cflags='-belf -Kpic'
|
|
14605 wl='-Wl,'
|
|
14606 ;;
|
|
14607
|
|
14608 unixware*)
|
|
14609 dll_cflags="-KPIC"
|
|
14610 wl="-Wl,"
|
|
14611 ;;
|
|
14612
|
|
14613 sysv4*)
|
|
14614 dll_cflags="-KPIC"
|
|
14615 wl="-Wl,"
|
|
14616 ;;
|
|
14617
|
|
14618 sysv5*)
|
|
14619 dll_cflags="-KPIC"
|
|
14620 wl="-Wl,"
|
|
14621 ;;
|
|
14622
|
|
14623 solaris2*)
|
|
14624 dll_cflags='-KPIC'
|
|
14625 wl='-Wl,'
|
|
14626 ;;
|
|
14627
|
|
14628 sunos4*)
|
|
14629 dll_cflags='-PIC'
|
|
14630 wl='-Qoption ld '
|
|
14631 ;;
|
|
14632
|
|
14633 uts4*)
|
|
14634 dll_cflags='-pic'
|
|
14635 ;;
|
|
14636
|
|
14637 *)
|
|
14638 can_build_shared=no
|
|
14639 ;;
|
|
14640 esac
|
|
14641 fi
|
|
14642
|
|
14643 if test -n "$dll_cflags"; then
|
|
14644 echo "$ac_t""${dll_cflags}" 1>&6
|
442
|
14645
|
388
|
14646 # Check to make sure the dll_cflags actually works.
|
|
14647 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
|
561
|
14648 echo "configure:14649: checking if PIC flag ${dll_cflags} really works" >&5
|
388
|
14649 save_CFLAGS="$CFLAGS"
|
|
14650 CFLAGS="$CFLAGS $dll_cflags -DPIC"
|
|
14651 cat > conftest.$ac_ext <<EOF
|
561
|
14652 #line 14653 "configure"
|
388
|
14653 #include "confdefs.h"
|
|
14654
|
|
14655 int main() {
|
|
14656 int x=0;
|
|
14657 ; return 0; }
|
|
14658 EOF
|
561
|
14659 if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
388
|
14660 rm -rf conftest*
|
|
14661
|
|
14662 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
|
|
14663 # reports no error. So, we need to grep stderr for (Bundled).
|
|
14664 if grep '(Bundled)' config.log >/dev/null; then
|
|
14665 echo "$ac_t""no" 1>&6
|
|
14666 can_build_shared=no
|
|
14667 dll_cflags=
|
|
14668 else
|
|
14669 echo "$ac_t""yes" 1>&6
|
|
14670 fi
|
|
14671 else
|
|
14672 echo "configure: failed program was:" >&5
|
|
14673 cat conftest.$ac_ext >&5
|
|
14674 rm -rf conftest*
|
|
14675 echo "$ac_t""no" 1>&6
|
|
14676 can_build_shared=no
|
|
14677 dll_cflags=
|
|
14678 fi
|
|
14679 rm -f conftest*
|
|
14680 CFLAGS="$save_CFLAGS"
|
|
14681 else
|
|
14682 echo "$ac_t""none" 1>&6
|
|
14683 fi
|
|
14684
|
|
14685 if test "$can_build_shared" = "yes"; then
|
|
14686 cc_produces_so=no
|
|
14687 xldf=
|
|
14688 xcldf=
|
|
14689 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
|
561
|
14690 echo "configure:14691: checking if C compiler can produce shared libraries" >&5
|
388
|
14691 if test "$XEGCC" = yes; then
|
|
14692 xcldf="-shared"
|
|
14693 xldf="-shared"
|
|
14694 else # Not using GCC
|
|
14695 case "$xehost_os" in
|
460
|
14696 aix[3-9]*)
|
388
|
14697 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
|
|
14698 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
|
|
14699 ;;
|
|
14700
|
|
14701 freebsd2* | netbsd* | openbsd*)
|
|
14702 xldf="-Bshareable"
|
|
14703 xcldf="${wl}-Bshareable"
|
|
14704 ;;
|
|
14705
|
|
14706 freebsd3*)
|
|
14707 xcldf="-shared"
|
|
14708 ;;
|
|
14709
|
|
14710 hpux*)
|
|
14711 xldf="-b +s"
|
|
14712 xcldf="${wl}-b ${wl}+s"
|
|
14713 ;;
|
|
14714
|
460
|
14715 irix[5-9]* | osf[3-9]*)
|
388
|
14716 xcldf="${wl}-shared"
|
|
14717 xldf="-shared"
|
|
14718 ;;
|
|
14719
|
|
14720 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
|
|
14721 xcldf="-G"
|
|
14722 xldf="-G"
|
|
14723 ;;
|
|
14724
|
|
14725 sunos4*)
|
|
14726 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
|
|
14727 xldf="-assert pure-text -Bstatic"
|
|
14728 ;;
|
|
14729 esac
|
|
14730 fi # End if if we are using gcc
|
|
14731
|
|
14732 if test -n "$xcldf"; then
|
|
14733 save_LDFLAGS=$LDFLAGS
|
|
14734 save_LIBS=$LIBS
|
|
14735 save_xe_libs=$xe_libs
|
|
14736 LDFLAGS="$xcldf $LDFLAGS"
|
|
14737 LIBS=
|
|
14738 xe_libs=
|
|
14739 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
14740 cat > conftest.$ac_ext <<EOF
|
561
|
14741 #line 14742 "configure"
|
388
|
14742 #include "confdefs.h"
|
|
14743
|
|
14744 int main() {
|
|
14745 int x=0;
|
|
14746 ; return 0; }
|
|
14747 EOF
|
561
|
14748 if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
388
|
14749 rm -rf conftest*
|
|
14750 cc_produces_so=yes
|
|
14751 else
|
|
14752 echo "configure: failed program was:" >&5
|
|
14753 cat conftest.$ac_ext >&5
|
|
14754 rm -rf conftest*
|
|
14755 cc_produces_so=no
|
|
14756 fi
|
|
14757 rm -f conftest*
|
|
14758 LDFLAGS=$save_LDFLAGS
|
|
14759 LIBS=$save_LIBS
|
|
14760 xe_libs=$save_xe_libs
|
|
14761 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
|
|
14762 else
|
|
14763 cc_produces_so=no
|
|
14764 fi
|
|
14765 echo "$ac_t""${cc_produces_so}" 1>&6
|
|
14766
|
|
14767 LTLD=$LD
|
|
14768 if test -z "$LTLD"; then
|
|
14769 ac_prog=ld
|
|
14770 if test "$XEGCC" = yes; then
|
|
14771 # Check if gcc -print-prog-name=ld gives a path.
|
|
14772 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
561
|
14773 echo "configure:14774: checking for ld used by GCC" >&5
|
388
|
14774 ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
14775 case "$ac_prog" in
|
|
14776 # Accept absolute paths.
|
|
14777 /*)
|
|
14778 if test -z "$LTLD"; then
|
|
14779 case "$ac_prog" in
|
|
14780 *gcc-lib*) LTLD="$CC"
|
|
14781 ;;
|
|
14782 *) LTLD="$ac_prog"
|
|
14783 ;;
|
|
14784 esac
|
|
14785 fi
|
|
14786 ;;
|
|
14787 "")
|
|
14788 # If it fails, then pretend we aren't using GCC.
|
|
14789 ac_prog=ld
|
|
14790 ;;
|
|
14791 *)
|
|
14792 # If it is relative, then search for the first ld in PATH.
|
|
14793 with_gnu_ld=unknown
|
|
14794 ;;
|
|
14795 esac
|
|
14796 else
|
|
14797 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
561
|
14798 echo "configure:14799: checking for GNU ld" >&5
|
388
|
14799 fi
|
|
14800
|
|
14801 if test -z "$LTLD"; then
|
|
14802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
14803 for ac_dir in $PATH; do
|
|
14804 test -z "$ac_dir" && ac_dir=.
|
|
14805 if test -f "$ac_dir/$ac_prog"; then
|
|
14806 LTLD="$ac_dir/$ac_prog"
|
|
14807 # Check to see if the program is GNU ld. I'd rather use --version,
|
|
14808 # but apparently some GNU ld's only accept -v.
|
|
14809 # Break only if it was the GNU/non-GNU ld that we prefer.
|
|
14810 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
14811 xe_gnu_ld=yes
|
|
14812 else
|
|
14813 xe_gnu_ld=no
|
|
14814 fi
|
|
14815 fi
|
|
14816 done
|
|
14817 IFS="$ac_save_ifs"
|
|
14818 fi
|
|
14819
|
|
14820 if test -n "$LTLD"; then
|
|
14821 echo "$ac_t""${LTLD}" 1>&6
|
|
14822 else
|
|
14823 echo "$ac_t""no" 1>&6
|
|
14824 fi
|
|
14825
|
|
14826 if test -z "$LTLD" -a "$cc_produces_so" = no; then
|
|
14827 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
|
|
14828 exit 1
|
|
14829 fi
|
|
14830 fi
|
|
14831
|
|
14832 ld_dynamic_link_flags=
|
|
14833
|
|
14834 # Check to see if it really is or isn't GNU ld.
|
|
14835 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
|
561
|
14836 echo "configure:14837: checking if the linker is GNU ld" >&5
|
388
|
14837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
14838 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
14839 xe_gnu_ld=yes
|
|
14840 else
|
|
14841 xe_gnu_ld=no
|
|
14842 fi
|
|
14843 echo "$ac_t""${xe_gnu_ld}" 1>&6
|
|
14844
|
|
14845 case "$xehost_os" in
|
|
14846 amigaos* | sunos4*)
|
|
14847 # On these operating systems, we should treat GNU ld like the system ld.
|
|
14848 gnu_ld_acts_native=yes
|
|
14849 ;;
|
|
14850 *)
|
|
14851 gnu_ld_acts_native=no
|
|
14852 ;;
|
|
14853 esac
|
|
14854
|
|
14855 if test "$cc_produces_so" = "yes"; then
|
|
14856 dll_ld=$CC
|
|
14857 dll_ldflags=$xcldf
|
|
14858 can_build_shared=yes
|
442
|
14859 ld_shlibs=yes
|
388
|
14860 else
|
|
14861 # OK - only NOW do we futz about with ld.
|
|
14862 # See if the linker supports building shared libraries.
|
|
14863 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
|
561
|
14864 echo "configure:14865: checking whether the linker supports shared libraries" >&5
|
388
|
14865 dll_ld=$CC
|
|
14866 dll_ldflags=$LDFLAGS
|
|
14867 ld_shlibs=yes
|
|
14868 can_build_shared=yes
|
|
14869 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
|
|
14870 # See if GNU ld supports shared libraries.
|
|
14871 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
|
14872 dll_ld=$CC
|
|
14873 dll_ldflags="-shared"
|
|
14874 ld_shlibs=yes
|
|
14875 else
|
|
14876 ld_shlibs=no
|
|
14877 fi
|
|
14878 else
|
|
14879 # PORTME fill in a description of your system's linker (not GNU ld)
|
|
14880 case "$xehost_os" in
|
|
14881 aix3*)
|
|
14882 dll_ld=$LTLD
|
|
14883 dll_ldflags=$xldf
|
|
14884 ;;
|
|
14885
|
460
|
14886 aix[4-9]*)
|
388
|
14887 dll_ldflags=$xcldf
|
|
14888 ;;
|
|
14889
|
|
14890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
14891 # support. Future versions do this automatically, but an explicit c++rt0.o
|
|
14892 # doesn't break anything, and helps significantly (at the cost of a little
|
|
14893 # extra space).
|
|
14894 freebsd2.2*)
|
|
14895 dll_ld=$LTLD
|
|
14896 dll_ldflags=$xldf
|
|
14897 dll_post="/usr/lib/c++rt0.o"
|
|
14898 ;;
|
|
14899
|
|
14900 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
|
|
14901 freebsd2*)
|
|
14902 dll_ld=$LTLD
|
|
14903 dll_ldflags="-Bshareable"
|
|
14904 ;;
|
|
14905
|
|
14906 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
|
|
14907 freebsd3*)
|
|
14908 dll_ldflags="-shared"
|
|
14909 ;;
|
|
14910
|
|
14911 hpux*)
|
|
14912 dll_ld=$LTLD
|
|
14913 dll_ldflags=$xldf
|
|
14914 ;;
|
|
14915
|
460
|
14916 irix[5-9]*)
|
388
|
14917 dll_ld=$LTLD
|
|
14918 dll_ldflags=$xldf
|
|
14919 ;;
|
|
14920
|
|
14921 netbsd*)
|
|
14922 # Tested with NetBSD 1.2 ld
|
|
14923 dll_ld=$LTLD
|
|
14924 dll_ldflags=$xldf
|
|
14925 ;;
|
|
14926
|
|
14927 openbsd*)
|
|
14928 dll_ld=$LTLD
|
|
14929 dll_ldflags=$xldf
|
|
14930 ;;
|
|
14931
|
|
14932 osf3* | osf4*)
|
|
14933 dll_ld=$LTLD
|
|
14934 dll_ldflags=$xldf
|
|
14935 ;;
|
|
14936
|
|
14937 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
|
|
14938 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
|
|
14939 dll_ld=$LTLD
|
|
14940 case "$dll_ld" in
|
|
14941 *gcc*) dll_ldflags="-shared"
|
|
14942 dll_ld=$CC
|
|
14943 ;;
|
|
14944 *) dll_ldflags="-G"
|
|
14945 ;;
|
|
14946 esac
|
|
14947 ;;
|
|
14948
|
|
14949 sunos4*)
|
|
14950 if test "$XEGCC" = yes; then
|
|
14951 dll_ld=$CC
|
|
14952 else
|
|
14953 dll_ld=$LTLD
|
|
14954 fi
|
|
14955 dll_ldflags=$xldf
|
|
14956 ;;
|
|
14957
|
|
14958 uts4*)
|
|
14959 dll_ld=$LTLD
|
|
14960 dll_ldflags="-G"
|
|
14961 ;;
|
|
14962
|
|
14963 bsdi*)
|
|
14964 dll_ldflags="-r"
|
|
14965 dll_ld="shlicc2"
|
|
14966 ;;
|
|
14967
|
|
14968 *)
|
|
14969 ld_shlibs=no
|
|
14970 can_build_shared=no
|
|
14971 ;;
|
|
14972 esac
|
|
14973 fi
|
|
14974 echo "$ac_t""${ld_shlibs}" 1>&6
|
|
14975 if test "$ld_shlibs" = "no"; then
|
|
14976 can_build_shared=no
|
|
14977 fi
|
|
14978 fi # End of if cc_produces_so = no
|
|
14979
|
|
14980
|
|
14981 if test "$xe_gnu_ld" = yes; then
|
|
14982 if test "$ld_shlibs" = yes; then
|
|
14983 ld_dynamic_link_flags="${wl}-export-dynamic"
|
|
14984 fi
|
|
14985 fi
|
|
14986
|
|
14987 if test -z "$ld_dynamic_link_flags"; then
|
|
14988 case "$xehost_os" in
|
460
|
14989 aix[3-9]*)
|
388
|
14990 ld_dynamic_link_flags=
|
|
14991 ;;
|
|
14992
|
|
14993 freebsd2.2*)
|
|
14994 ld_dynamic_link_flags=
|
|
14995 ;;
|
|
14996
|
|
14997 freebsd2*)
|
|
14998 ld_dynamic_link_flags=
|
|
14999 ;;
|
|
15000
|
|
15001 freebsd3*)
|
|
15002 ld_dynamic_link_flags=
|
|
15003 ;;
|
|
15004
|
|
15005 hpux*)
|
|
15006 ld_dynamic_link_flags="${wl}-E"
|
|
15007 ;;
|
|
15008
|
460
|
15009 irix[5-9]*)
|
388
|
15010 ld_dynamic_link_flags=
|
|
15011 ;;
|
|
15012
|
|
15013 netbsd*)
|
|
15014 ld_dynamic_link_flags=
|
|
15015 ;;
|
|
15016
|
|
15017 openbsd*)
|
|
15018 ld_dynamic_link_flags=
|
|
15019 ;;
|
|
15020
|
|
15021 osf3* | osf4*)
|
|
15022 ld_dynamic_link_flags=
|
|
15023 ;;
|
|
15024
|
398
|
15025 solaris2* | solaris7*)
|
426
|
15026 ld_dynamic_link_flags=
|
398
|
15027 ;;
|
|
15028
|
|
15029 sco3.2v5* | unixware* | sysv5* | sysv4*)
|
388
|
15030 ld_dynamic_link_flags="${wl}-Bexport"
|
|
15031 ;;
|
|
15032
|
|
15033 sunos4*)
|
|
15034 ld_dynamic_link_flags=
|
|
15035 ;;
|
|
15036
|
|
15037 uts4*)
|
|
15038 ld_dynamic_link_flags=
|
|
15039 ;;
|
|
15040
|
|
15041 bsdi*)
|
|
15042 ld_dynamic_link_flags=
|
|
15043 ;;
|
|
15044
|
|
15045 esac
|
|
15046 fi # End of if -z ld_dynamic_link_flags
|
|
15047 fi # End of if test "$can_build_shared" = "yes"
|
|
15048
|
|
15049
|
|
15050
|
|
15051
|
|
15052
|
|
15053
|
|
15054
|
|
15055
|
430
|
15056 fi
|
|
15057
|
388
|
15058 if test "$can_build_shared" = "yes"; then
|
|
15059 { test "$extra_verbose" = "yes" && cat << \EOF
|
261
|
15060 Defining HAVE_SHLIB
|
|
15061 EOF
|
|
15062 cat >> confdefs.h <<\EOF
|
|
15063 #define HAVE_SHLIB 1
|
|
15064 EOF
|
|
15065 }
|
|
15066
|
430
|
15067 extra_objs="$extra_objs sysdll.o emodules.o" && if test "$extra_verbose" = "yes"; then
|
|
15068 echo " xemacs will be linked with \"sysdll.o emodules.o\""
|
261
|
15069 fi
|
388
|
15070 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
|
430
|
15071 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
|
388
|
15072 for ac_func in dlerror _dlerror
|
276
|
15073 do
|
|
15074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
561
|
15075 echo "configure:15076: checking for $ac_func" >&5
|
|
15076
|
|
15077 cat > conftest.$ac_ext <<EOF
|
|
15078 #line 15079 "configure"
|
276
|
15079 #include "confdefs.h"
|
|
15080 /* System header to define __stub macros and hopefully few prototypes,
|
|
15081 which can conflict with char $ac_func(); below. */
|
|
15082 #include <assert.h>
|
|
15083 /* Override any gcc2 internal prototype to avoid an error. */
|
|
15084 /* We use char because int might match the return type of a gcc2
|
|
15085 builtin and then its argument prototype would still apply. */
|
|
15086 char $ac_func();
|
|
15087
|
|
15088 int main() {
|
|
15089
|
|
15090 /* The GNU C library defines this for functions which it implements
|
|
15091 to always fail with ENOSYS. Some functions are actually named
|
|
15092 something starting with __ and the normal name is an alias. */
|
|
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
15094 choke me
|
|
15095 #else
|
|
15096 $ac_func();
|
|
15097 #endif
|
|
15098
|
|
15099 ; return 0; }
|
|
15100 EOF
|
561
|
15101 if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
276
|
15102 rm -rf conftest*
|
|
15103 eval "ac_cv_func_$ac_func=yes"
|
|
15104 else
|
|
15105 echo "configure: failed program was:" >&5
|
|
15106 cat conftest.$ac_ext >&5
|
|
15107 rm -rf conftest*
|
|
15108 eval "ac_cv_func_$ac_func=no"
|
|
15109 fi
|
|
15110 rm -f conftest*
|
|
15111
|
|
15112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
15113 echo "$ac_t""yes" 1>&6
|
|
15114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
15115 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15116 Defining $ac_tr_func
|
|
15117 EOF
|
|
15118 cat >> confdefs.h <<EOF
|
|
15119 #define $ac_tr_func 1
|
|
15120 EOF
|
|
15121 }
|
|
15122
|
|
15123 else
|
|
15124 echo "$ac_t""no" 1>&6
|
|
15125 fi
|
|
15126 done
|
|
15127
|
430
|
15128 with_modules=yes
|
388
|
15129 else
|
430
|
15130 if test "$with_modules" = "yes"; then
|
|
15131 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
|
|
15132 else
|
561
|
15133 echo "configure: warning: Module support cannot be provided." 1>&2
|
430
|
15134 fi
|
422
|
15135 with_modules=no
|
|
15136 fi
|
|
15137 fi
|
|
15138
|
|
15139 cat > conftest.$ac_ext <<EOF
|
561
|
15140 #line 15141 "configure"
|
272
|
15141 #include "confdefs.h"
|
|
15142 int main(int c,char *v[]){return 0;}
|
|
15143 EOF
|
561
|
15144 if { (eval echo configure:15145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
|
272
|
15145 then
|
|
15146 :
|
|
15147 else
|
373
|
15148 conftest_rc="$?"
|
272
|
15149 echo "configure: failed program was:" >&5
|
|
15150 cat conftest.$ac_ext >&5
|
|
15151 rm -fr conftest*
|
|
15152
|
|
15153 echo ""
|
|
15154 echo "*** PANIC *** The C compiler can no longer build working executables."
|
|
15155 echo "*** PANIC *** Please examine the tail of config.log for runtime errors."
|
|
15156 echo "*** PANIC *** The most likely reason for this problem is that configure"
|
|
15157 echo "*** PANIC *** links with shared libraries, but those libraries cannot be"
|
|
15158 echo "*** PANIC *** found at run time."
|
|
15159 echo "*** PANIC ***"
|
|
15160 echo "*** PANIC *** On a Linux system, edit /etc/ld.so.conf and re-run ldconfig."
|
|
15161 echo "*** PANIC *** On other systems, try telling configure where to find the"
|
|
15162 echo "*** PANIC *** shared libraries using the --site-runtime-libraries option"
|
|
15163 echo "*** PANIC ***"
|
|
15164 echo "*** PANIC *** Another way to shoot yourself in the foot is to specify"
|
|
15165 echo "*** PANIC *** --with-FEATURE when FEATURE is not actually installed"
|
|
15166 echo "*** PANIC *** on your system. Don't do that."
|
|
15167 exit 1
|
|
15168 fi
|
|
15169 rm -fr conftest*
|
|
15170
|
398
|
15171 if test "$win32_processes" = "yes"; then
|
|
15172 extra_objs="$extra_objs process-nt.o" && if test "$extra_verbose" = "yes"; then
|
|
15173 echo " xemacs will be linked with \"process-nt.o\""
|
|
15174 fi
|
|
15175 else
|
|
15176 { test "$extra_verbose" = "yes" && cat << \EOF
|
263
|
15177 Defining HAVE_UNIX_PROCESSES
|
|
15178 EOF
|
|
15179 cat >> confdefs.h <<\EOF
|
|
15180 #define HAVE_UNIX_PROCESSES 1
|
|
15181 EOF
|
|
15182 }
|
|
15183
|
398
|
15184 extra_objs="$extra_objs process-unix.o" && if test "$extra_verbose" = "yes"; then
|
263
|
15185 echo " xemacs will be linked with \"process-unix.o\""
|
|
15186 fi
|
398
|
15187 fi
|
261
|
15188
|
155
|
15189
|
|
15190
|
|
15191 T=""
|
175
|
15192 for W in $CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15193 CFLAGS="$T"
|
|
15194
|
|
15195
|
|
15196 T=""
|
155
|
15197 for W in $extra_objs; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15198 extra_objs="$T"
|
|
15199
|
|
15200
|
|
15201 T=""
|
|
15202 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
|
|
15203 c_switch_general="$T"
|
|
15204
|
|
15205
|
|
15206 T=""
|
462
|
15207 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15208 c_switch_window_system="$T"
|
|
15209
|
|
15210
|
|
15211 T=""
|
|
15212 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15213 c_switch_all="$T"
|
|
15214
|
|
15215
|
|
15216 T=""
|
|
15217 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
|
|
15218 ld_switch_general="$T"
|
|
15219
|
|
15220
|
|
15221 T=""
|
|
15222 for W in $ld_switch_x_site; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15223 ld_switch_window_system="$T"
|
|
15224
|
|
15225
|
|
15226 T=""
|
|
15227 for W in $ld_switch_general $ld_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15228 ld_switch_all="$T"
|
|
15229
|
|
15230
|
|
15231 T=""
|
|
15232 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15233 ld_libs_general="$T"
|
|
15234
|
|
15235
|
|
15236 T=""
|
462
|
15237 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15238 ld_libs_window_system="$T"
|
|
15239
|
|
15240
|
|
15241 T=""
|
|
15242 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15243 ld_libs_all="$T"
|
|
15244
|
149
|
15245
|
151
|
15246
|
|
15247 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
|
380
|
15248 internal_makefile_list="Makefile.in"
|
149
|
15249 SUBDIR_MAKEFILES=''
|
151
|
15250 test -d lock || mkdir lock
|
149
|
15251 for dir in $MAKE_SUBDIR; do
|
167
|
15252 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
|
|
15253 test -d "$d" || mkdir "$d"; cd "$d"
|
|
15254 done ) ;;
|
|
15255 * ) test -d "$dir" || mkdir "$dir" ;;
|
|
15256 esac
|
155
|
15257
|
|
15258 T=""
|
384
|
15259 for W in $SUBDIR_MAKEFILES $dir/Makefile $dir/GNUmakefile; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
155
|
15260 SUBDIR_MAKEFILES="$T"
|
|
15261
|
|
15262
|
|
15263 T=""
|
|
15264 for W in $internal_makefile_list $dir/Makefile.in; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15265 internal_makefile_list="$T"
|
|
15266
|
149
|
15267 done
|
|
15268
|
|
15269
|
|
15270
|
167
|
15271
|
157
|
15272 for dir in src/s src/m; do
|
|
15273 if test ! -d "$dir" ; then
|
|
15274 echo Making symbolic link to "$srcdir/$dir"
|
|
15275 ${LN_S} "$srcdir/$dir" "$dir"
|
|
15276 fi
|
|
15277 done
|
|
15278
|
149
|
15279 if test "$extra_verbose" = "yes"; then
|
151
|
15280 echo ""
|
163
|
15281 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
|
15282 echo ""
|
|
15283 fi
|
|
15284
|
438
|
15285
|
|
15286 if test -f "$srcdir/src/.gdbinit" -a ! -f "src/.gdbinit"; then
|
|
15287 test "$extra_verbose" = "yes" && echo "creating src/.gdbinit"
|
|
15288 echo "source $srcdir/src/.gdbinit" > "src/.gdbinit"
|
|
15289 fi
|
|
15290
|
|
15291 if test -f "$srcdir/src/.dbxrc" -a ! -f "src/.dbxrc"; then
|
|
15292 test "$extra_verbose" = "yes" && echo "creating src/.dbxrc"
|
|
15293 echo ". $srcdir/src/.dbxrc" > "src/.dbxrc"
|
|
15294 fi
|
|
15295
|
|
15296 if test -f "$srcdir/TAGS" -a ! -f "TAGS"; then
|
|
15297 test "$extra_verbose" = "yes" && echo "creating TAGS"
|
|
15298 echo "
|
|
15299 $srcdir/TAGS,include" > "TAGS"
|
151
|
15300 fi
|
|
15301
|
373
|
15302 if test "$__SUNPRO_C" = "yes"; then
|
438
|
15303 test "$extra_verbose" = "yes" && echo "creating .sbinit"
|
157
|
15304 ( echo "# For use with Sun WorkShop's Source browser."
|
|
15305 echo "# See sbquery(1) and sbinit(4) for more information"
|
|
15306 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
|
|
15307 ) > .sbinit
|
|
15308 fi
|
151
|
15309
|
|
15310 rm -f core
|
|
15311
|
149
|
15312
|
|
15313
|
|
15314
|
|
15315
|
|
15316
|
|
15317
|
|
15318
|
|
15319
|
|
15320
|
|
15321
|
|
15322
|
|
15323
|
|
15324
|
|
15325
|
280
|
15326
|
420
|
15327
|
422
|
15328
|
|
15329
|
452
|
15330
|
278
|
15331 PREFIX=$prefix
|
|
15332 while true; do
|
|
15333 case "$PREFIX" in
|
|
15334 *\$* ) eval "PREFIX=$PREFIX" ;;
|
|
15335 *) break ;;
|
|
15336 esac
|
|
15337 done
|
|
15338
|
|
15339
|
|
15340
|
420
|
15341
|
278
|
15342 EXEC_PREFIX=$exec_prefix
|
|
15343 while true; do
|
|
15344 case "$EXEC_PREFIX" in
|
|
15345 *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
|
|
15346 *) break ;;
|
|
15347 esac
|
|
15348 done
|
|
15349
|
149
|
15350
|
|
15351
|
|
15352
|
274
|
15353 INFODIR=$infodir
|
|
15354 while true; do
|
|
15355 case "$INFODIR" in
|
|
15356 *\$* ) eval "INFODIR=$INFODIR" ;;
|
|
15357 *) break ;;
|
|
15358 esac
|
|
15359 done
|
|
15360
|
|
15361
|
|
15362
|
|
15363
|
|
15364 INFOPATH=$infopath
|
|
15365 while true; do
|
|
15366 case "$INFOPATH" in
|
|
15367 *\$* ) eval "INFOPATH=$INFOPATH" ;;
|
|
15368 *) break ;;
|
|
15369 esac
|
|
15370 done
|
|
15371
|
|
15372
|
|
15373
|
|
15374
|
|
15375 PACKAGE_PATH=$package_path
|
|
15376 while true; do
|
|
15377 case "$PACKAGE_PATH" in
|
|
15378 *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
|
|
15379 *) break ;;
|
|
15380 esac
|
|
15381 done
|
|
15382
|
|
15383
|
|
15384
|
|
15385
|
|
15386 LISPDIR=$lispdir
|
|
15387 while true; do
|
|
15388 case "$LISPDIR" in
|
|
15389 *\$* ) eval "LISPDIR=$LISPDIR" ;;
|
|
15390 *) break ;;
|
|
15391 esac
|
|
15392 done
|
|
15393
|
|
15394
|
|
15395
|
|
15396
|
388
|
15397 MODULEDIR=$moduledir
|
|
15398 while true; do
|
|
15399 case "$MODULEDIR" in
|
|
15400 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
|
|
15401 *) break ;;
|
|
15402 esac
|
|
15403 done
|
|
15404
|
|
15405
|
|
15406
|
|
15407
|
|
15408 SITELISPDIR=$sitelispdir
|
|
15409 while true; do
|
|
15410 case "$SITELISPDIR" in
|
|
15411 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
|
|
15412 *) break ;;
|
|
15413 esac
|
|
15414 done
|
|
15415
|
|
15416
|
|
15417
|
|
15418
|
|
15419 SITEMODULEDIR=$sitemoduledir
|
|
15420 while true; do
|
|
15421 case "$SITEMODULEDIR" in
|
|
15422 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
|
|
15423 *) break ;;
|
|
15424 esac
|
|
15425 done
|
|
15426
|
|
15427
|
|
15428
|
274
|
15429
|
|
15430 ETCDIR=$etcdir
|
|
15431 while true; do
|
|
15432 case "$ETCDIR" in
|
|
15433 *\$* ) eval "ETCDIR=$ETCDIR" ;;
|
|
15434 *) break ;;
|
|
15435 esac
|
|
15436 done
|
|
15437
|
|
15438
|
|
15439
|
|
15440
|
420
|
15441 DOCDIR=$docdir
|
|
15442 while true; do
|
|
15443 case "$DOCDIR" in
|
|
15444 *\$* ) eval "DOCDIR=$DOCDIR" ;;
|
|
15445 *) break ;;
|
|
15446 esac
|
|
15447 done
|
|
15448
|
|
15449
|
|
15450
|
|
15451
|
274
|
15452 ARCHLIBDIR=$archlibdir
|
|
15453 while true; do
|
|
15454 case "$ARCHLIBDIR" in
|
|
15455 *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
|
|
15456 *) break ;;
|
|
15457 esac
|
|
15458 done
|
149
|
15459
|
|
15460
|
|
15461
|
|
15462
|
|
15463
|
|
15464
|
|
15465
|
|
15466
|
|
15467
|
|
15468
|
|
15469
|
|
15470
|
|
15471
|
|
15472
|
|
15473
|
|
15474
|
203
|
15475
|
207
|
15476
|
263
|
15477
|
267
|
15478
|
173
|
15479 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
|
|
15480
|
|
15481
|
|
15482
|
|
15483
|
|
15484
|
|
15485
|
|
15486
|
380
|
15487 : ${XEMACS_CC:=$CC}
|
|
15488
|
|
15489
|
420
|
15490 if test "$with_prefix" = "yes"; then
|
|
15491 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15492 Defining PREFIX_USER_DEFINED
|
|
15493 EOF
|
|
15494 cat >> confdefs.h <<\EOF
|
|
15495 #define PREFIX_USER_DEFINED 1
|
|
15496 EOF
|
|
15497 }
|
|
15498
|
|
15499 fi
|
380
|
15500
|
267
|
15501 if test "$with_site_lisp" = "no"; then
|
|
15502 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15503 Defining INHIBIT_SITE_LISP
|
|
15504 EOF
|
|
15505 cat >> confdefs.h <<\EOF
|
|
15506 #define INHIBIT_SITE_LISP 1
|
|
15507 EOF
|
|
15508 }
|
|
15509
|
|
15510 fi
|
388
|
15511 if test "$with_site_modules" = "no"; then
|
|
15512 { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15513 Defining INHIBIT_SITE_MODULES
|
|
15514 EOF
|
|
15515 cat >> confdefs.h <<\EOF
|
|
15516 #define INHIBIT_SITE_MODULES 1
|
|
15517 EOF
|
|
15518 }
|
|
15519
|
|
15520 fi
|
155
|
15521
|
207
|
15522
|
|
15523 T=""
|
|
15524 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
|
|
15525 ac_configure_args="$T"
|
|
15526
|
149
|
15527 { test "$extra_verbose" = "yes" && cat << EOF
|
424
|
15528 Defining EMACS_CONFIGURATION = "$configuration"
|
149
|
15529 EOF
|
|
15530 cat >> confdefs.h <<EOF
|
424
|
15531 #define EMACS_CONFIGURATION "$configuration"
|
149
|
15532 EOF
|
|
15533 }
|
|
15534
|
|
15535 { test "$extra_verbose" = "yes" && cat << EOF
|
207
|
15536 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
|
173
|
15537 EOF
|
|
15538 cat >> confdefs.h <<EOF
|
207
|
15539 #define EMACS_CONFIG_OPTIONS "$ac_configure_args"
|
173
|
15540 EOF
|
|
15541 }
|
|
15542
|
149
|
15543
|
|
15544
|
|
15545 null_string=""
|
|
15546 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15547 Defining LD_SWITCH_X_SITE = $null_string
|
|
15548 EOF
|
|
15549 cat >> confdefs.h <<EOF
|
|
15550 #define LD_SWITCH_X_SITE $null_string
|
|
15551 EOF
|
|
15552 }
|
|
15553
|
|
15554 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15555 Defining LD_SWITCH_X_SITE_AUX = $null_string
|
|
15556 EOF
|
|
15557 cat >> confdefs.h <<EOF
|
|
15558 #define LD_SWITCH_X_SITE_AUX $null_string
|
|
15559 EOF
|
|
15560 }
|
|
15561
|
|
15562 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15563 Defining C_SWITCH_X_SITE = $null_string
|
|
15564 EOF
|
|
15565 cat >> confdefs.h <<EOF
|
|
15566 #define C_SWITCH_X_SITE $null_string
|
|
15567 EOF
|
|
15568 }
|
|
15569
|
|
15570 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15571 Defining LD_SWITCH_SITE = $null_string
|
|
15572 EOF
|
|
15573 cat >> confdefs.h <<EOF
|
|
15574 #define LD_SWITCH_SITE $null_string
|
|
15575 EOF
|
|
15576 }
|
|
15577
|
|
15578 { test "$extra_verbose" = "yes" && cat << EOF
|
|
15579 Defining C_SWITCH_SITE = $null_string
|
|
15580 EOF
|
|
15581 cat >> confdefs.h <<EOF
|
|
15582 #define C_SWITCH_SITE $null_string
|
|
15583 EOF
|
|
15584 }
|
|
15585
|
|
15586
|
|
15587
|
181
|
15588 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15589 Defining GNU_MALLOC
|
|
15590 EOF
|
|
15591 cat >> confdefs.h <<\EOF
|
|
15592 #define GNU_MALLOC 1
|
|
15593 EOF
|
|
15594 }
|
|
15595
|
181
|
15596 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15597 Defining USE_SYSTEM_MALLOC
|
|
15598 EOF
|
|
15599 cat >> confdefs.h <<\EOF
|
|
15600 #define USE_SYSTEM_MALLOC 1
|
|
15601 EOF
|
|
15602 }
|
|
15603
|
181
|
15604 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15605 Defining USE_DEBUG_MALLOC
|
|
15606 EOF
|
|
15607 cat >> confdefs.h <<\EOF
|
|
15608 #define USE_DEBUG_MALLOC 1
|
|
15609 EOF
|
|
15610 }
|
|
15611
|
181
|
15612 { test "$extra_verbose" = "yes" && cat << \EOF
|
177
|
15613 Defining USE_SYSTEM_MALLOC
|
|
15614 EOF
|
|
15615 cat >> confdefs.h <<\EOF
|
|
15616 #define USE_SYSTEM_MALLOC 1
|
|
15617 EOF
|
|
15618 }
|
|
15619
|
149
|
15620 fi
|
|
15621 test "$with_i18n3" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15622 Defining I18N3
|
|
15623 EOF
|
|
15624 cat >> confdefs.h <<\EOF
|
|
15625 #define I18N3 1
|
|
15626 EOF
|
|
15627 }
|
|
15628
|
169
|
15629 test "$GCC" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
149
|
15630 Defining USE_GCC
|
|
15631 EOF
|
|
15632 cat >> confdefs.h <<\EOF
|
|
15633 #define USE_GCC 1
|
|
15634 EOF
|
|
15635 }
|
|
15636
|
|
15637 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15638 Defining EXTERNAL_WIDGET
|
|
15639 EOF
|
|
15640 cat >> confdefs.h <<\EOF
|
|
15641 #define EXTERNAL_WIDGET 1
|
|
15642 EOF
|
|
15643 }
|
|
15644
|
442
|
15645 test "$quick_build" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15646 Defining QUICK_BUILD
|
|
15647 EOF
|
|
15648 cat >> confdefs.h <<\EOF
|
|
15649 #define QUICK_BUILD 1
|
149
|
15650 EOF
|
|
15651 }
|
|
15652
|
380
|
15653 test "$with_purify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15654 Defining PURIFY
|
|
15655 EOF
|
|
15656 cat >> confdefs.h <<\EOF
|
|
15657 #define PURIFY 1
|
|
15658 EOF
|
|
15659 }
|
|
15660
|
149
|
15661 test "$with_quantify" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15662 Defining QUANTIFY
|
|
15663 EOF
|
|
15664 cat >> confdefs.h <<\EOF
|
|
15665 #define QUANTIFY 1
|
|
15666 EOF
|
|
15667 }
|
|
15668
|
|
15669 test "$with_pop" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15670 Defining MAIL_USE_POP
|
|
15671 EOF
|
|
15672 cat >> confdefs.h <<\EOF
|
|
15673 #define MAIL_USE_POP 1
|
|
15674 EOF
|
|
15675 }
|
|
15676
|
|
15677 test "$with_kerberos" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15678 Defining KERBEROS
|
|
15679 EOF
|
|
15680 cat >> confdefs.h <<\EOF
|
|
15681 #define KERBEROS 1
|
|
15682 EOF
|
|
15683 }
|
|
15684
|
|
15685 test "$with_hesiod" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15686 Defining HESIOD
|
|
15687 EOF
|
|
15688 cat >> confdefs.h <<\EOF
|
|
15689 #define HESIOD 1
|
|
15690 EOF
|
|
15691 }
|
|
15692
|
272
|
15693 test "$use_union_type" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15694 Defining USE_UNION_TYPE
|
|
15695 EOF
|
|
15696 cat >> confdefs.h <<\EOF
|
|
15697 #define USE_UNION_TYPE 1
|
149
|
15698 EOF
|
0
|
15699 }
|
70
|
15700
|
424
|
15701 test "$pdump" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
|
|
15702 Defining PDUMP
|
|
15703 EOF
|
|
15704 cat >> confdefs.h <<\EOF
|
|
15705 #define PDUMP 1
|
|
15706 EOF
|
|
15707 }
|
|
15708
|
70
|
15709
|
0
|
15710
|
118
|
15711 (
|
149
|
15712 if test -f /etc/osversion; then echo "osversion: `cat /etc/osversion`"
|
|
15713 else
|
|
15714 echo "uname -a: `uname -a`"
|
|
15715 fi
|
|
15716 echo ""
|
|
15717 echo "$0 $quoted_arguments"
|
261
|
15718 ) > Installation
|
|
15719
|
414
|
15720 if test ! -z ${emacs_beta_version} ; then
|
|
15721 if test -z "${emacs_is_beta}" ; then
|
|
15722 xemacs_betaname=".${emacs_beta_version}"
|
|
15723 else
|
|
15724 xemacs_betaname="-b${emacs_beta_version}"
|
|
15725 fi
|
|
15726 else
|
430
|
15727 xemacs_betaname=""
|
414
|
15728 fi
|
149
|
15729
|
116
|
15730 (
|
0
|
15731 echo "
|
|
15732
|
261
|
15733 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'.
|
442
|
15734 "
|
|
15735 echo "
|
|
15736 Compilation / Installation:"
|
|
15737 echo " Source code location: $srcdir"
|
|
15738 echo " Installation prefix: $prefix"
|
70
|
15739 if test -n "$site_includes"; then
|
442
|
15740 echo " Additional header files: $site_includes"
|
149
|
15741 fi
|
|
15742 if test -n "$site_libraries"; then
|
442
|
15743 echo " Additional libraries: $site_libraries"
|
149
|
15744 fi
|
209
|
15745 if test -n "$site_prefixes"; then
|
442
|
15746 echo " Additional prefixes: $site_prefixes"
|
209
|
15747 fi
|
149
|
15748 if test -n "$runpath"; then
|
442
|
15749 echo " Runtime library search path: $runpath"
|
|
15750 fi
|
|
15751
|
|
15752 if test -n "$opsysfile"
|
|
15753 then echo " Operating system description file: \`$opsysfile'"
|
|
15754 else echo " Not using any operating system description file"
|
|
15755 fi
|
|
15756 if test -n "$machfile"
|
|
15757 then echo " Machine description file: \`$machfile'"
|
|
15758 else echo " Not using any machine description file"
|
|
15759 fi
|
|
15760
|
|
15761 echo " Compiler: $CC $CFLAGS"
|
|
15762 echo " Relocating allocator for buffers: $rel_alloc"
|
|
15763 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
|
|
15764
|
|
15765 echo "
|
|
15766 Window System:"
|
|
15767 if test "$with_msw" = "yes"; then
|
|
15768 echo " Compiling in support for the Microsoft window system."
|
|
15769 fi
|
|
15770 if test "$with_x11" = "yes"; then
|
|
15771 echo " Compiling in support for the X window system:"
|
|
15772 echo " - X Windows headers location: $x_includes"
|
|
15773 echo " - X Windows libraries location: $x_libraries"
|
|
15774 if test "$with_xauth" != yes; then
|
|
15775 echo " - Xau (X authority) not available."
|
|
15776 fi
|
|
15777 if test "$with_xmu" != yes; then
|
|
15778 echo " - Xmu library not available; substituting equivalent routines."
|
|
15779 fi
|
|
15780 if test "$with_wmcommand" != no; then
|
|
15781 echo " - Handling WM_COMMAND properly."
|
|
15782 fi
|
|
15783 fi
|
|
15784 if test "$need_athena" = "yes"; then
|
|
15785 echo " Compiling in support for the Athena widget set:"
|
|
15786 echo " - Athena headers location: $athena_h_path"
|
|
15787 echo " - Athena library to link: $athena_lib"
|
|
15788 fi
|
|
15789 case "$with_menubars" in
|
462
|
15790 gtk ) echo " Using GTK menubars." ;;
|
442
|
15791 lucid ) echo " Using Lucid menubars." ;;
|
|
15792 motif ) echo " Using Motif menubars."
|
|
15793 echo " *WARNING* The Motif menubar implementation is currently buggy."
|
|
15794 echo " We recommend using the Lucid menubar instead."
|
|
15795 echo " Re-run configure with --with-menubars='lucid'." ;;
|
|
15796 msw ) echo " Using MS-Windows menubars." ;;
|
|
15797 esac
|
|
15798 case "$with_scrollbars" in
|
462
|
15799 gtk ) echo " Using GTK scrollbars." ;;
|
442
|
15800 lucid ) echo " Using Lucid scrollbars." ;;
|
|
15801 motif ) echo " Using Motif scrollbars." ;;
|
|
15802 athena ) echo " Using Athena scrollbars." ;;
|
|
15803 msw ) echo " Using MS-Windows scrollbars." ;;
|
|
15804 esac
|
|
15805 case "$with_dialogs" in
|
462
|
15806 gtk ) echo " Using GTK dialog boxes." ;;
|
442
|
15807 motif ) echo " Using Motif dialog boxes."
|
|
15808 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
|
|
15809 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
|
|
15810 echo " We recommend using the Athena dialog boxes instead."
|
|
15811 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
|
|
15812 echo " Read the PROBLEMS file for more information."
|
|
15813 fi; fi ;;
|
|
15814 athena ) echo " Using Athena dialog boxes." ;;
|
|
15815 msw ) echo " Using MS-Windows dialog boxes." ;;
|
|
15816 esac
|
|
15817 case "$with_widgets" in
|
462
|
15818 gtk ) echo " Using GTK native widgets." ;;
|
442
|
15819 motif ) echo " Using Motif native widgets." ;;
|
|
15820 athena ) echo " Using Athena native widgets." ;;
|
|
15821 msw ) echo " Using MS-Windows native widgets." ;;
|
|
15822 esac
|
|
15823 if test "$with_dragndrop" = yes; then
|
|
15824 echo " Compiling in support for Drag'n'Drop (EXPERIMENTAL)."
|
|
15825 echo " - Drag'n'Drop prototype: $dragndrop_proto."
|
|
15826 fi
|
|
15827
|
|
15828 echo "
|
|
15829 TTY:"
|
|
15830 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
|
|
15831 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)."
|
|
15832
|
|
15833 echo "
|
|
15834 Images:"
|
|
15835 test "$with_gif" = yes && echo " Compiling in support for GIF images (builtin)."
|
153
|
15836 if test "$with_xpm" = yes; then
|
442
|
15837 echo " Compiling in support for XPM images."
|
175
|
15838 elif test "$with_x11" = yes; then
|
442
|
15839 echo " WARNING: -----------------------------------------------------------"
|
|
15840 echo " WARNING: Compiling without XPM image support."
|
373
|
15841 if test "$xpm_problem" != ""; then
|
|
15842 echo " Reason: $xpm_problem"
|
|
15843 fi
|
|
15844 echo " WARNING: You should strongly consider installing XPM."
|
151
|
15845 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal."
|
373
|
15846 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15847 echo " WARNING: -----------------------------------------------------------"
|
371
|
15848 fi
|
373
|
15849 if test "$with_png" = yes; then
|
442
|
15850 echo " Compiling in support for PNG images."
|
373
|
15851 elif test "$window_system" != "none"; then
|
442
|
15852 echo " WARNING: -----------------------------------------------------------"
|
373
|
15853 echo " WARNING: Compiling without PNG image support."
|
|
15854 if test "$png_problem" != ""; then
|
|
15855 echo " Reason: $png_problem"
|
|
15856 fi
|
|
15857 echo " WARNING: You should strongly consider installing the PNG libraries."
|
|
15858 echo " WARNING: Otherwise certain images and glyphs may not display."
|
|
15859 echo " WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)"
|
442
|
15860 echo " WARNING: -----------------------------------------------------------"
|
|
15861 fi
|
|
15862 test "$with_jpeg" = yes && echo " Compiling in support for JPEG images."
|
|
15863 test "$with_tiff" = yes && echo " Compiling in support for TIFF images."
|
310
|
15864 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers."
|
432
|
15865
|
442
|
15866 echo "
|
|
15867 Sound:"
|
|
15868 test "$with_native_sound" = yes && echo " Compiling in support for sound (native)."
|
|
15869 test "$with_nas_sound" = yes && echo " Compiling in support for NAS (network audio system)."
|
|
15870 test "$old_nas" = yes && echo " - NAS library lacks error trapping; will play synchronously."
|
|
15871 test "$with_esd_sound" = yes && echo " Compiling in support for ESD (Enlightened Sound Daemon)."
|
|
15872
|
|
15873 echo "
|
|
15874 Databases:"
|
|
15875 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley database."
|
116
|
15876 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
|
426
|
15877 test "$with_database_gdbm" = yes && echo " Compiling in support for GNU DBM."
|
442
|
15878 test "$with_ldap" = yes && echo " Compiling in support for LDAP."
|
|
15879 if test "$with_postgresql" = yes; then
|
|
15880 echo " Compiling in support for PostgreSQL."
|
|
15881 echo " - Using PostgreSQL header file: $libpq_fe_h_file"
|
|
15882 test "$with_postgresqlv7" = yes && echo " - Using PostgreSQL V7 bindings."
|
|
15883 fi
|
|
15884
|
|
15885 echo "
|
|
15886 Internationalization:"
|
|
15887 test "$with_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
|
|
15888 test "$with_file_coding" = yes && echo " Compiling in support for file coding."
|
|
15889 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
|
|
15890 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
|
|
15891 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
|
|
15892 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
|
|
15893 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
|
120
|
15894 if test "$with_wnn" = yes; then
|
|
15895 echo " Compiling in support for the WNN input method on Mule."
|
442
|
15896 test "$with_wnn6" = yes && echo " - Using WNN version 6."
|
|
15897 fi
|
|
15898 test "$with_i18n3" = yes && echo " Compiling in support for I18N level 3 (doesn't currently work)."
|
|
15899
|
|
15900 echo "
|
|
15901 Mail:"
|
|
15902 test "$with_pop" = yes && echo " Compiling in support for POP mail retrieval."
|
|
15903 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication."
|
|
15904 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access."
|
|
15905 test -n "$mail_locking" && echo " Compiling in support for \"$mail_locking\" mail spool file locking method."
|
|
15906
|
|
15907 echo "
|
|
15908 Other Features:"
|
116
|
15909 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
|
149
|
15910 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
|
442
|
15911 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
|
|
15912 test "$with_dnet" = yes && echo " Compiling in support for DNET."
|
|
15913 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules."
|
|
15914 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
|
|
15915 test "$pdump" = yes && echo " Using the new portable dumper."
|
|
15916 test "$debug" = yes && echo " Compiling in support for extra debugging code."
|
|
15917 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
|
|
15918 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc $error_check_glyphs" \
|
|
15919 != "no no no no no no"; then
|
151
|
15920 echo " WARNING: ---------------------------------------------------------"
|
|
15921 echo " WARNING: Compiling in support for runtime error checking."
|
|
15922 echo " WARNING: XEmacs will run noticeably more slowly as a result."
|
|
15923 echo " WARNING: Error checking is on by default for XEmacs beta releases."
|
|
15924 echo " WARNING: ---------------------------------------------------------"
|
|
15925 fi
|
118
|
15926 echo ""
|
116
|
15927 ) | tee -a Installation
|
118
|
15928 echo ""
|
|
15929
|
70
|
15930
|
0
|
15931 # Remove any trailing slashes in these variables.
|
149
|
15932 test -n "$prefix" &&
|
159
|
15933 prefix=`echo '' "$prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15934 test -n "$exec_prefix" &&
|
159
|
15935 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
|
149
|
15936
|
|
15937
|
272
|
15938 for file in $internal_makefile_list; do
|
|
15939 test "$file" = src/Makefile.in && \
|
|
15940 file="src/Makefile.in:src/Makefile.in.in:src/depend"
|
430
|
15941 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
|
272
|
15942 done
|
276
|
15943 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
|
430
|
15944 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
|
272
|
15945
|
149
|
15946 trap '' 1 2 15
|
|
15947
|
|
15948 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
15949
|
|
15950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
15951 # Let make expand exec_prefix.
|
|
15952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
0
|
15953
|
|
15954 # Any assignment to VPATH causes Sun make to only execute
|
|
15955 # the first set of double-colon rules, so remove it if not needed.
|
|
15956 # If there is a colon in the path, we need to keep it.
|
|
15957 if test "x$srcdir" = x.; then
|
|
15958 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
15959 fi
|
|
15960
|
149
|
15961 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
15962
|
|
15963 DEFS=-DHAVE_CONFIG_H
|
|
15964
|
|
15965 # Without the "./", some shells look in PATH for config.status.
|
|
15966 : ${CONFIG_STATUS=./config.status}
|
|
15967
|
|
15968 echo creating $CONFIG_STATUS
|
|
15969 rm -f $CONFIG_STATUS
|
|
15970 cat > $CONFIG_STATUS <<EOF
|
|
15971 #! /bin/sh
|
0
|
15972 # Generated automatically by configure.
|
|
15973 # Run this file to recreate the current configuration.
|
|
15974 # This directory was configured as follows,
|
|
15975 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
15976 #
|
149
|
15977 # $0 $ac_configure_args
|
|
15978 #
|
|
15979 # Compiler output produced by configure, useful for debugging
|
|
15980 # configure, is in ./config.log if it exists.
|
|
15981
|
|
15982 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
0
|
15983 for ac_option
|
|
15984 do
|
|
15985 case "\$ac_option" in
|
|
15986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
149
|
15987 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
15988 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
0
|
15989 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
420
|
15990 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
0
|
15991 exit 0 ;;
|
|
15992 -help | --help | --hel | --he | --h)
|
|
15993 echo "\$ac_cs_usage"; exit 0 ;;
|
|
15994 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
15995 esac
|
|
15996 done
|
|
15997
|
|
15998 ac_given_srcdir=$srcdir
|
149
|
15999 ac_given_INSTALL="$INSTALL"
|
|
16000
|
276
|
16001 trap 'rm -fr `echo "$ac_output_files src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
149
|
16002 EOF
|
|
16003 cat >> $CONFIG_STATUS <<EOF
|
|
16004
|
|
16005 # Protect against being on the right side of a sed subst in config.status.
|
|
16006 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
16007 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
0
|
16008 $ac_vpsub
|
|
16009 $extrasub
|
420
|
16010 s%@SHELL@%$SHELL%g
|
149
|
16011 s%@CFLAGS@%$CFLAGS%g
|
|
16012 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
16013 s%@CXXFLAGS@%$CXXFLAGS%g
|
420
|
16014 s%@FFLAGS@%$FFLAGS%g
|
149
|
16015 s%@DEFS@%$DEFS%g
|
|
16016 s%@LDFLAGS@%$LDFLAGS%g
|
|
16017 s%@LIBS@%$LIBS%g
|
|
16018 s%@exec_prefix@%$exec_prefix%g
|
|
16019 s%@prefix@%$prefix%g
|
|
16020 s%@program_transform_name@%$program_transform_name%g
|
|
16021 s%@bindir@%$bindir%g
|
|
16022 s%@sbindir@%$sbindir%g
|
|
16023 s%@libexecdir@%$libexecdir%g
|
|
16024 s%@datadir@%$datadir%g
|
|
16025 s%@sysconfdir@%$sysconfdir%g
|
|
16026 s%@sharedstatedir@%$sharedstatedir%g
|
|
16027 s%@localstatedir@%$localstatedir%g
|
|
16028 s%@libdir@%$libdir%g
|
|
16029 s%@includedir@%$includedir%g
|
|
16030 s%@oldincludedir@%$oldincludedir%g
|
|
16031 s%@infodir@%$infodir%g
|
|
16032 s%@mandir@%$mandir%g
|
0
|
16033 s%@LN_S@%$LN_S%g
|
181
|
16034 s%@blddir@%$blddir%g
|
0
|
16035 s%@CC@%$CC%g
|
|
16036 s%@CPP@%$CPP%g
|
207
|
16037 s%@start_flags@%$start_flags%g
|
163
|
16038 s%@ld_switch_shared@%$ld_switch_shared%g
|
|
16039 s%@start_files@%$start_files%g
|
|
16040 s%@ld@%$ld%g
|
|
16041 s%@lib_gcc@%$lib_gcc%g
|
0
|
16042 s%@RANLIB@%$RANLIB%g
|
|
16043 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
420
|
16044 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
0
|
16045 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
16046 s%@YACC@%$YACC%g
|
|
16047 s%@SET_MAKE@%$SET_MAKE%g
|
462
|
16048 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
149
|
16049 s%@X_CFLAGS@%$X_CFLAGS%g
|
|
16050 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
|
16051 s%@X_LIBS@%$X_LIBS%g
|
|
16052 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
276
|
16053 s%@install_pp@%$install_pp%g
|
159
|
16054 s%@libs_xauth@%$libs_xauth%g
|
274
|
16055 s%@dnd_objs@%$dnd_objs%g
|
157
|
16056 s%@lwlib_objs@%$lwlib_objs%g
|
0
|
16057 s%@ALLOCA@%$ALLOCA%g
|
426
|
16058 s%@have_esd_config@%$have_esd_config%g
|
265
|
16059 s%@dll_ld@%$dll_ld%g
|
|
16060 s%@dll_cflags@%$dll_cflags%g
|
388
|
16061 s%@dll_ldflags@%$dll_ldflags%g
|
|
16062 s%@dll_post@%$dll_post%g
|
|
16063 s%@dll_ldo@%$dll_ldo%g
|
|
16064 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
|
151
|
16065 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
|
167
|
16066 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
|
149
|
16067 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
|
|
16068 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
|
280
|
16069 s%@PROGNAME@%$PROGNAME%g
|
0
|
16070 s%@version@%$version%g
|
|
16071 s%@configuration@%$configuration%g
|
|
16072 s%@canonical@%$canonical%g
|
422
|
16073 s%@inststaticdir@%$inststaticdir%g
|
|
16074 s%@instvardir@%$instvardir%g
|
0
|
16075 s%@srcdir@%$srcdir%g
|
155
|
16076 s%@pkgdir@%$pkgdir%g
|
0
|
16077 s%@statedir@%$statedir%g
|
452
|
16078 s%@extra_includes@%$extra_includes%g
|
420
|
16079 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
|
278
|
16080 s%@PREFIX@%$PREFIX%g
|
420
|
16081 s%@EXEC_PREFIX_USER_DEFINED@%$EXEC_PREFIX_USER_DEFINED%g
|
278
|
16082 s%@EXEC_PREFIX@%$EXEC_PREFIX%g
|
274
|
16083 s%@INFODIR_USER_DEFINED@%$INFODIR_USER_DEFINED%g
|
|
16084 s%@INFODIR@%$INFODIR%g
|
203
|
16085 s%@infopath@%$infopath%g
|
274
|
16086 s%@INFOPATH_USER_DEFINED@%$INFOPATH_USER_DEFINED%g
|
|
16087 s%@INFOPATH@%$INFOPATH%g
|
269
|
16088 s%@package_path@%$package_path%g
|
274
|
16089 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
|
|
16090 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
|
0
|
16091 s%@lispdir@%$lispdir%g
|
274
|
16092 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
|
|
16093 s%@LISPDIR@%$LISPDIR%g
|
388
|
16094 s%@moduledir@%$moduledir%g
|
|
16095 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
|
|
16096 s%@MODULEDIR@%$MODULEDIR%g
|
|
16097 s%@sitelispdir@%$sitelispdir%g
|
|
16098 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
|
|
16099 s%@SITELISPDIR@%$SITELISPDIR%g
|
|
16100 s%@sitemoduledir@%$sitemoduledir%g
|
|
16101 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
|
|
16102 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
|
0
|
16103 s%@etcdir@%$etcdir%g
|
274
|
16104 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
|
|
16105 s%@ETCDIR@%$ETCDIR%g
|
420
|
16106 s%@docdir@%$docdir%g
|
|
16107 s%@DOCDIR_USER_DEFINED@%$DOCDIR_USER_DEFINED%g
|
|
16108 s%@DOCDIR@%$DOCDIR%g
|
0
|
16109 s%@archlibdir@%$archlibdir%g
|
274
|
16110 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
|
|
16111 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
|
0
|
16112 s%@bitmapdir@%$bitmapdir%g
|
149
|
16113 s%@extra_objs@%$extra_objs%g
|
0
|
16114 s%@machfile@%$machfile%g
|
|
16115 s%@opsysfile@%$opsysfile%g
|
149
|
16116 s%@c_switch_general@%$c_switch_general%g
|
|
16117 s%@c_switch_window_system@%$c_switch_window_system%g
|
|
16118 s%@c_switch_all@%$c_switch_all%g
|
|
16119 s%@ld_switch_general@%$ld_switch_general%g
|
|
16120 s%@ld_switch_window_system@%$ld_switch_window_system%g
|
|
16121 s%@ld_switch_all@%$ld_switch_all%g
|
|
16122 s%@ld_libs_general@%$ld_libs_general%g
|
|
16123 s%@ld_libs_window_system@%$ld_libs_window_system%g
|
|
16124 s%@ld_libs_all@%$ld_libs_all%g
|
173
|
16125 s%@RECURSIVE_MAKE@%$RECURSIVE_MAKE%g
|
149
|
16126 s%@native_sound_lib@%$native_sound_lib%g
|
|
16127 s%@sound_cflags@%$sound_cflags%g
|
0
|
16128 s%@dynodump_arch@%$dynodump_arch%g
|
380
|
16129 s%@XEMACS_CC@%$XEMACS_CC%g
|
0
|
16130 s%@internal_makefile_list@%$internal_makefile_list%g
|
149
|
16131
|
|
16132 CEOF
|
|
16133 EOF
|
|
16134
|
|
16135 cat >> $CONFIG_STATUS <<\EOF
|
|
16136
|
|
16137 # Split the substitutions into bite-sized pieces for seds with
|
|
16138 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
16139 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
16140 ac_file=1 # Number of current file.
|
|
16141 ac_beg=1 # First line for current file.
|
|
16142 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
16143 ac_more_lines=:
|
|
16144 ac_sed_cmds=""
|
|
16145 while $ac_more_lines; do
|
|
16146 if test $ac_beg -gt 1; then
|
|
16147 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16148 else
|
|
16149 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
16150 fi
|
|
16151 if test ! -s conftest.s$ac_file; then
|
|
16152 ac_more_lines=false
|
|
16153 rm -f conftest.s$ac_file
|
|
16154 else
|
|
16155 if test -z "$ac_sed_cmds"; then
|
|
16156 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
16157 else
|
|
16158 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
16159 fi
|
|
16160 ac_file=`expr $ac_file + 1`
|
|
16161 ac_beg=$ac_end
|
|
16162 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
16163 fi
|
|
16164 done
|
|
16165 if test -z "$ac_sed_cmds"; then
|
|
16166 ac_sed_cmds=cat
|
|
16167 fi
|
|
16168 EOF
|
|
16169
|
|
16170 cat >> $CONFIG_STATUS <<EOF
|
|
16171
|
272
|
16172 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_files"}
|
149
|
16173 EOF
|
|
16174 cat >> $CONFIG_STATUS <<\EOF
|
|
16175 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
16176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16177 case "$ac_file" in
|
|
16178 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16179 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16180 *) ac_file_in="${ac_file}.in" ;;
|
|
16181 esac
|
|
16182
|
|
16183 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
16184
|
|
16185 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16186 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16187 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16188 # The file is in a subdirectory.
|
|
16189 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16190 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
16191 # A "../" for each directory in $ac_dir_suffix.
|
|
16192 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
16193 else
|
|
16194 ac_dir_suffix= ac_dots=
|
|
16195 fi
|
|
16196
|
|
16197 case "$ac_given_srcdir" in
|
|
16198 .) srcdir=.
|
|
16199 if test -z "$ac_dots"; then top_srcdir=.
|
|
16200 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
16201 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
16202 *) # Relative path.
|
|
16203 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
16204 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
16205 esac
|
|
16206
|
|
16207 case "$ac_given_INSTALL" in
|
|
16208 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
16209 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
16210 esac
|
|
16211
|
|
16212 echo creating "$ac_file"
|
|
16213 rm -f "$ac_file"
|
|
16214 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
16215 case "$ac_file" in
|
|
16216 *Makefile*) ac_comsub="1i\\
|
|
16217 # $configure_input" ;;
|
|
16218 *) ac_comsub= ;;
|
|
16219 esac
|
|
16220
|
|
16221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16222 sed -e "$ac_comsub
|
|
16223 s%@configure_input@%$configure_input%g
|
|
16224 s%@srcdir@%$srcdir%g
|
0
|
16225 s%@top_srcdir@%$top_srcdir%g
|
149
|
16226 s%@INSTALL@%$INSTALL%g
|
|
16227 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
0
|
16228 fi; done
|
149
|
16229 rm -f conftest.s*
|
|
16230
|
|
16231 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
16232 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
0
|
16233 #
|
|
16234 # ac_d sets the value in "#define NAME VALUE" lines.
|
149
|
16235 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
16236 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
0
|
16237 ac_dC='\3'
|
149
|
16238 ac_dD='%g'
|
0
|
16239 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
149
|
16240 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16241 ac_uB='\([ ]\)%\1#\2define\3'
|
0
|
16242 ac_uC=' '
|
149
|
16243 ac_uD='\4%g'
|
0
|
16244 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
149
|
16245 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
16246 ac_eB='$%\1#\2define\3'
|
0
|
16247 ac_eC=' '
|
149
|
16248 ac_eD='%g'
|
|
16249
|
|
16250 if test "${CONFIG_HEADERS+set}" != set; then
|
|
16251 EOF
|
|
16252 cat >> $CONFIG_STATUS <<EOF
|
276
|
16253 CONFIG_HEADERS="src/config.h lwlib/config.h"
|
149
|
16254 EOF
|
|
16255 cat >> $CONFIG_STATUS <<\EOF
|
|
16256 fi
|
|
16257 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
16258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
16259 case "$ac_file" in
|
|
16260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
16261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
16262 *) ac_file_in="${ac_file}.in" ;;
|
|
16263 esac
|
|
16264
|
|
16265 echo creating $ac_file
|
|
16266
|
|
16267 rm -f conftest.frag conftest.in conftest.out
|
|
16268 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
16269 cat $ac_file_inputs > conftest.in
|
|
16270
|
|
16271 EOF
|
|
16272
|
|
16273 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
16274 # the proper values into config.h.in to produce config.h. And first:
|
|
16275 # Protect against being on the right side of a sed subst in config.status.
|
|
16276 # Protect against being in an unquoted here document in config.status.
|
|
16277 rm -f conftest.vals
|
|
16278 cat > conftest.hdr <<\EOF
|
|
16279 s/[\\&%]/\\&/g
|
|
16280 s%[\\$`]%\\&%g
|
|
16281 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
16282 s%ac_d%ac_u%gp
|
|
16283 s%ac_u%ac_e%gp
|
|
16284 EOF
|
|
16285 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
16286 rm -f conftest.hdr
|
|
16287
|
|
16288 # This sed command replaces #undef with comments. This is necessary, for
|
|
16289 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
16290 # on some systems where configure will not decide to define it.
|
|
16291 cat >> conftest.vals <<\EOF
|
|
16292 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
16293 EOF
|
|
16294
|
|
16295 # Break up conftest.vals because some shells have a limit on
|
|
16296 # the size of here documents, and old seds have small limits too.
|
|
16297
|
|
16298 rm -f conftest.tail
|
0
|
16299 while :
|
|
16300 do
|
149
|
16301 ac_lines=`grep -c . conftest.vals`
|
|
16302 # grep -c gives empty output for an empty file on some AIX systems.
|
0
|
16303 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
149
|
16304 # Write a limited-size here document to conftest.frag.
|
|
16305 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
16306 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
16307 echo 'CEOF
|
|
16308 sed -f conftest.frag conftest.in > conftest.out
|
|
16309 rm -f conftest.in
|
|
16310 mv conftest.out conftest.in
|
|
16311 ' >> $CONFIG_STATUS
|
|
16312 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
16313 rm -f conftest.vals
|
|
16314 mv conftest.tail conftest.vals
|
0
|
16315 done
|
149
|
16316 rm -f conftest.vals
|
|
16317
|
|
16318 cat >> $CONFIG_STATUS <<\EOF
|
|
16319 rm -f conftest.frag conftest.h
|
0
|
16320 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
149
|
16321 cat conftest.in >> conftest.h
|
|
16322 rm -f conftest.in
|
0
|
16323 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
16324 echo "$ac_file is unchanged"
|
|
16325 rm -f conftest.h
|
|
16326 else
|
149
|
16327 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
16328 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
16329 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
16330 # The file is in a subdirectory.
|
|
16331 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
16332 fi
|
0
|
16333 rm -f $ac_file
|
|
16334 mv conftest.h $ac_file
|
|
16335 fi
|
|
16336 fi; done
|
149
|
16337
|
|
16338 EOF
|
|
16339 cat >> $CONFIG_STATUS <<EOF
|
|
16340 CPP="$CPP"
|
|
16341 top_srcdir="$srcdir"
|
|
16342 MAKE_SUBDIR="$MAKE_SUBDIR"
|
|
16343
|
|
16344 EOF
|
|
16345 cat >> $CONFIG_STATUS <<\EOF
|
380
|
16346 for dir in . $MAKE_SUBDIR; do
|
151
|
16347 (
|
149
|
16348 cd $dir
|
|
16349 rm -f junk.c
|
163
|
16350 < Makefile.in \
|
165
|
16351 sed -e '/^# Generated/d' \
|
163
|
16352 -e 's%/\*\*/#.*%%' \
|
165
|
16353 -e 's/^ *# */#/' \
|
163
|
16354 -e '/^##/d' \
|
|
16355 -e '/^#/ {
|
|
16356 p
|
|
16357 d
|
380
|
16358 }' \
|
|
16359 -e '/./ {
|
163
|
16360 s/\([\"]\)/\\\1/g
|
|
16361 s/^/"/
|
|
16362 s/$/"/
|
|
16363 }' > junk.c;
|
380
|
16364
|
|
16365
|
|
16366
|
|
16367 echo creating $dir/Makefile
|
|
16368 $CPP -I. -I${top_srcdir}/src junk.c \
|
|
16369 | sed -e 's/^\#.*//' \
|
|
16370 -e 's/^[ ][ ]*$//'\
|
|
16371 -e 's/^ / /' \
|
442
|
16372 -e '/^[ ]*$/d' \
|
|
16373 -e '/^\"/ {
|
380
|
16374 s/\\\([\"]\)/\1/g
|
|
16375 s/^[ ]*\"//
|
|
16376 s/\"[ ]*$//
|
|
16377 }' > Makefile.new
|
149
|
16378 chmod 444 Makefile.new
|
|
16379 mv -f Makefile.new Makefile
|
380
|
16380
|
|
16381 echo creating $dir/GNUmakefile
|
|
16382 $CPP -I. -I${top_srcdir}/src -DUSE_GNU_MAKE junk.c \
|
|
16383 | sed -e 's/^\#.*//' \
|
|
16384 -e 's/^[ ][ ]*$//'\
|
|
16385 -e 's/^ / /' \
|
442
|
16386 -e '/^[ ]*$/d' \
|
|
16387 -e '/^\"/ {
|
380
|
16388 s/\\\([\"]\)/\1/g
|
|
16389 s/^[ ]*\"//
|
|
16390 s/\"[ ]*$//
|
|
16391 }' > Makefile.new
|
|
16392 chmod 444 Makefile.new
|
|
16393 mv -f Makefile.new GNUmakefile
|
|
16394
|
|
16395 rm -f junk.c
|
|
16396 )
|
149
|
16397 done
|
0
|
16398
|
181
|
16399 sed < config.status >> lib-src/config.values \
|
|
16400 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
|
|
16401 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
|
|
16402 -e 's/^\([^ ]*\) $/\1 ""/' \
|
|
16403 -e 's/ 1$/ t/'
|
175
|
16404
|
|
16405
|
0
|
16406 exit 0
|
|
16407 EOF
|
149
|
16408 chmod +x $CONFIG_STATUS
|
|
16409 rm -fr confdefs* $ac_clean_files
|
|
16410 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|